Feedback 1337: Portalkontakte können selbst Unternehmen sein
							parent
							
								
									e1e99d38d5
								
							
						
					
					
						commit
						edda5283c6
					
				|  | @ -35,6 +35,9 @@ class PartnerEventListener(Component): | ||||||
| 
 | 
 | ||||||
|     def on_record_write(self, record, fields=None): |     def on_record_write(self, record, fields=None): | ||||||
|         if record.active and record.portal_id: |         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: |             if 'property_product_pricelist' in fields: | ||||||
|                 for contact in record.child_ids: |                 for contact in record.child_ids: | ||||||
|                     if contact.type != 'delivery': |                     if contact.type != 'delivery': | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue