From e6184aeb37a3b6665a3c252f4e98f9b3cd4f614d Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Sat, 18 Jun 2016 00:09:13 +0200 Subject: [PATCH] [FIX] sale: set B2B as default mode at installation Before this fix, you was in an 'unknow' mode before to have selected the mode in the sale res config after the install of sale. Side effect: Empty value in ecommerce Missing column subtotal in 'sale.order' and related report Now, with fix, mode B2B is set by default (was the only mode in old version) Using same behavior that the method execute of class resConfigSetting. Usability: set the default option as the first choice in the res config. --- addons/sale/res_config.py | 4 ++-- addons/sale/security/sale_security.xml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/addons/sale/res_config.py b/addons/sale/res_config.py index 5027f89cf86..ce123f8dcfc 100644 --- a/addons/sale/res_config.py +++ b/addons/sale/res_config.py @@ -72,8 +72,8 @@ class sale_configuration(osv.TransientModel): 'group_show_price_subtotal': fields.boolean("Show subtotal", implied_group='sale.group_show_price_subtotal', group='base.group_portal,base.group_user,base.group_public'), 'group_show_price_total': fields.boolean("Show total", implied_group='sale.group_show_price_total', group='base.group_portal,base.group_user,base.group_public'), 'sale_show_tax': fields.selection([ - ('total', 'Show line subtotals with taxes included (B2C)'), - ('subtotal', 'Show line subtotals without taxes (except if unit price includes taxes) (B2B)')], "Tax Display", + ('subtotal', 'Show line subtotals without taxes (B2B)'), + ('total', 'Show line subtotals with taxes included (B2C)')], "Tax Display", required=True), 'default_invoice_policy': fields.selection([ ('order', 'Invoice ordered quantities'), diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml index 2bb41b4fb5b..e3126ce43f1 100644 --- a/addons/sale/security/sale_security.xml +++ b/addons/sale/security/sale_security.xml @@ -25,6 +25,18 @@ Show line subtotals with taxes included (B2C) + + + + + + + + + + + + Properties on lines