[FIX] product: the pricelist discount_policy should be required

This commit is contained in:
Victor Feyens
2020-03-26 10:27:57 +00:00
parent f3f681a408
commit 57e477e8e3
+1 -1
View File
@@ -32,7 +32,7 @@ class Pricelist(models.Model):
discount_policy = fields.Selection([
('with_discount', 'Discount included in the price'),
('without_discount', 'Show public price & discount to the customer')],
default='with_discount')
default='with_discount', required=True)
def name_get(self):
return [(pricelist.id, '%s (%s)' % (pricelist.name, pricelist.currency_id.name)) for pricelist in self]