From cd85a5c6b0dda0f18eea31e14953dd105a1eb36f Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Thu, 21 Feb 2019 13:50:09 +0100 Subject: [PATCH] adapt SST_14 with 'property_product_pricelist' --- ext/custom-addons/dp_custom/models/res_partner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/custom-addons/dp_custom/models/res_partner.py b/ext/custom-addons/dp_custom/models/res_partner.py index f506a354..c845f36e 100644 --- a/ext/custom-addons/dp_custom/models/res_partner.py +++ b/ext/custom-addons/dp_custom/models/res_partner.py @@ -350,11 +350,11 @@ class Partner(models.Model): 'is_retailer', 'name2', 'carrier_id', 'collective_bill', 'fiscal_position', 'partner_flash']) return common_list elif self.env.context.get('sst_14', False): - common_list = ['firstname', 'lastname', 'midname', 'email', 'company_odoo_id', 'portal_id', 'opt_out'] + common_list = ['firstname', 'lastname', 'midname', 'email', 'company_odoo_id', 'portal_id', 'opt_out', 'property_product_pricelist'] return common_list elif self.env.context.get('delivery_partner', False): common_list = ['firstname', 'lastname', 'midname', 'street', 'street2', 'zip', 'city', 'country_id', 'fax', - 'phone', 'mobile', 'email', 'portal_id'] + 'phone', 'mobile', 'email', 'portal_id', 'property_product_pricelist'] return common_list else: return super(Partner, self)._get_specified_fields()