adapt SST_14 with 'property_product_pricelist'

develop
Andreas Osim 2019-02-21 13:50:09 +01:00
parent f8a95767ad
commit cd85a5c6b0
1 changed files with 2 additions and 2 deletions

View File

@ -350,11 +350,11 @@ class Partner(models.Model):
'is_retailer', 'name2', 'carrier_id', 'collective_bill', 'fiscal_position', 'partner_flash']) 'is_retailer', 'name2', 'carrier_id', 'collective_bill', 'fiscal_position', 'partner_flash'])
return common_list return common_list
elif self.env.context.get('sst_14', False): 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 return common_list
elif self.env.context.get('delivery_partner', False): elif self.env.context.get('delivery_partner', False):
common_list = ['firstname', 'lastname', 'midname', 'street', 'street2', 'zip', 'city', 'country_id', 'fax', 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 return common_list
else: else:
return super(Partner, self)._get_specified_fields() return super(Partner, self)._get_specified_fields()