Skip to content

Commit

Permalink
Ticket OCA#554 FSM Location Chatter
Browse files Browse the repository at this point in the history
  • Loading branch information
osi-scampbell authored and brian10048 committed Nov 17, 2023
1 parent 59613d9 commit 6436a10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fieldservice/models/fsm_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class FSMLocation(models.Model):
_name = 'fsm.location'
_inherits = {'res.partner': 'partner_id'}
_inherit = ['mail.thread', 'mail.activity.mixin']
_description = 'Field Service Location'

ref = fields.Char(string='Internal Reference', copy=False)
Expand All @@ -20,7 +21,8 @@ class FSMLocation(models.Model):
auto_join=True)
customer_id = fields.Many2one('res.partner', string='Billed Customer',
required=True, ondelete='restrict',
auto_join=True)
auto_join=True,
track_visibility='onchange')
contact_id = fields.Many2one('res.partner', string='Primary Contact',
domain="[('is_company', '=', False),"
" ('fsm_location', '=', False)]",
Expand Down

0 comments on commit 6436a10

Please sign in to comment.