[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:
Goffin Simon
2018-02-19 10:24:36 +01:00
parent 59202d5e8c
commit 5c1f025a42
+1 -1
View File
@@ -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':