fix in interface imos2odoo

develop
Andreas Osim 2019-02-22 08:55:36 +01:00
parent 79990ae76c
commit 3e3825640c
1 changed files with 5 additions and 5 deletions

View File

@ -339,22 +339,22 @@ class Partner(models.Model):
@api.model
def _get_specified_fields(self):
common_list = ['street', 'street2', 'zip', 'city', 'country_id', 'fax', 'phone', 'mobile',
'endkunde', 'line_ids', 'lang', 'portal_id', 'email', 'opt_out']
'endkunde', 'line_ids', 'lang', 'portal_id', 'email', 'opt_out', 'property_product_pricelist']
if self.env.context.get('sst_1', False):
common_list.extend(['name', 'name2', 'info_kundennr', 'info_uid', 'comment', 'retail_partner_id', 'property_product_pricelist'])
common_list.extend(['name', 'name2', 'info_kundennr', 'info_uid', 'comment', 'retail_partner_id'])
return common_list
elif self.env.context.get('sst_11', False):
common_list.extend(
['name', 'ref', 'partner_sector_id', 'info_uid', 'comment', 'vat', 'property_payment_term_id',
'date_vat_check', 'active', 'property_product_pricelist', 'retail_partner_id',
'date_vat_check', 'active', 'retail_partner_id',
'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', 'property_product_pricelist']
common_list = ['firstname', 'lastname', 'midname', 'email', 'company_odoo_id', 'portal_id', 'opt_out']
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', 'property_product_pricelist']
'phone', 'mobile', 'email', 'portal_id']
return common_list
else:
return super(Partner, self)._get_specified_fields()