[FIX] sale: unable to install module sale

When you have another module installed before sale, and ever changed
some settings, a record of res_config_settings exists and when you
install sale, it cannot set a value for the required new column
'sale_show_tax' for existing records.

To fix this, we have set back the default values on the required field
'sale_show_tax' that has been removed in commit: https://github.com/odoo/odoo/commit/71e5c8b0b5bb10f571030a25875e33b25cda073d
This commit is contained in:
Pierre Masereel
2017-11-13 15:52:39 +01:00
parent 7606878a78
commit 9afa83bb6a
+1 -1
View File
@@ -47,7 +47,7 @@ class ResConfigSettings(models.TransientModel):
sale_show_tax = fields.Selection([
('subtotal', 'Tax-Excluded Prices'),
('total', 'Tax-Included Prices')], string="Tax Display",
required=True)
default='subtotal', required=True)
default_invoice_policy = fields.Selection([
('order', 'Invoice what is ordered'),
('delivery', 'Invoice what is delivered')