Feedback 1337: Portalkontakte können selbst Unternehmen sein

develop
Roman Widmann 2018-02-07 16:22:14 +01:00
parent e1e99d38d5
commit edda5283c6
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ class PartnerEventListener(Component):
def on_record_write(self, record, fields=None):
if record.active and record.portal_id:
if 'company_type' in fields:
if record.company_type == 'company' and record.type != 'delivery':
self.env['res.partner'].with_delay().job_export_portal_price(record)
if 'property_product_pricelist' in fields:
for contact in record.child_ids:
if contact.type != 'delivery':