[FIX] sale_timesheet: Field Invoicing Policy in Product Variants not saved correctly
When a product variant from Catalog > Product variant was created with invoice policy = 'delivery', it was set as 'order'. opw:815112
This commit is contained in:
@@ -39,7 +39,7 @@ class ProductTemplate(models.Model):
|
||||
def _inverse_service_policy(self):
|
||||
for product in self:
|
||||
policy = product.service_policy
|
||||
if not policy:
|
||||
if not policy and not product.invoice_policy =='delivery':
|
||||
product.invoice_policy = 'order'
|
||||
product.service_type = 'manual'
|
||||
elif policy == 'ordered_timesheet':
|
||||
|
||||
Reference in New Issue
Block a user