Skip to content

Commit

Permalink
Merge pull request #229 from ursais/sc_bug_fix_rc12
Browse files Browse the repository at this point in the history
[FIX] fieldservice: FSM Location Chatter (PM #554)
  • Loading branch information
max3903 authored May 30, 2019
2 parents eddbdd7 + d885685 commit 7a30c00
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 7a30c00

Please sign in to comment.