From 57e477e8e34192ca1ba57cb79499f807d397c333 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 19 Mar 2020 10:11:46 +0000 Subject: [PATCH] [FIX] product: the pricelist discount_policy should be required --- addons/product/models/product_pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product_pricelist.py b/addons/product/models/product_pricelist.py index c25dd35581e..3f865ba1637 100644 --- a/addons/product/models/product_pricelist.py +++ b/addons/product/models/product_pricelist.py @@ -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]