Feedback 1372: Kunden-Änderungen an Portal
parent
e6f654bc38
commit
76b9e27212
|
|
@ -37,9 +37,11 @@ class PartnerEventListener(Component):
|
|||
if record.active and record.portal_id:
|
||||
if 'property_product_pricelist' in fields:
|
||||
for contact in record.child_ids:
|
||||
self.env['res.partner'].with_delay().job_export_portal_price(contact)
|
||||
if contact.type != 'delivery':
|
||||
self.env['res.partner'].with_delay().job_export_portal_price(contact)
|
||||
if 'parent_id' in fields:
|
||||
self.env['res.partner'].with_delay().job_export_portal_price(record)
|
||||
if record.type != 'delivery':
|
||||
self.env['res.partner'].with_delay().job_export_portal_price(record)
|
||||
|
||||
|
||||
class Partner(models.Model):
|
||||
|
|
@ -207,7 +209,8 @@ class Partner(models.Model):
|
|||
def cron_export_portal_prices(self):
|
||||
partners = self.search([('portal_export_pending', '=', True), ('company_id', '=', self.env.user.company_id.id)])
|
||||
for partner in partners:
|
||||
self.with_delay().job_export_portal_price(partner)
|
||||
if partner.type != 'delivery':
|
||||
self.with_delay().job_export_portal_price(partner)
|
||||
partner.portal_export_pending = False
|
||||
|
||||
@api.multi
|
||||
|
|
|
|||
Loading…
Reference in New Issue