add "track_visibility='onchange'" to portal_managed_pricelist & property_portal_pricelist

develop
Andreas Osim 2020-03-18 13:25:45 +01:00
parent 1ffc1290c6
commit 4e80dcdea8
1 changed files with 3 additions and 2 deletions

View File

@ -95,9 +95,10 @@ class Partner(models.Model):
property_product_pricelist = fields.Many2one(
'product.pricelist', 'Sale Pricelist', compute='_compute_product_pricelist', store=True, default=1,
inverse="_inverse_product_pricelist", company_dependent=False, # NOT A REAL PROPERTY
help="This pricelist will be used, instead of the default one, for sales to the current partner")
help="This pricelist will be used, instead of the default one, for sales to the current partner",
track_visibility='onchange')
portal_managed_pricelist = fields.Boolean(string='Preisliste im Portal verwaltet', default=False)
portal_managed_pricelist = fields.Boolean(string='Preisliste im Portal verwaltet', default=False, track_visibility='onchange')
_sql_constraints = [
('ref_uniq', 'unique(ref)', 'Die Interne Referenz muss eindeutig sein'),