From f0c44897c9d2e1416c790855ff35ab8c7eacf4ff Mon Sep 17 00:00:00 2001 From: bbh-odoo Date: Tue, 20 Apr 2021 14:16:36 +0000 Subject: [PATCH] [IMP] sale: change default invoicing policy to 'ordered' Currently, the default invoicing policy is based in `delivered` quantity since commit: https://github.com/odoo/odoo/commit/3ad4abe171e8e7e86ed0e7b7f000e734d8a2ad92 but due to that onboarding flow is often broken/very complex. hopefully the statement 'in countries with anglosaxon accounting, that's mandatory' is exagerated. So in this commit, Default invoice policy is set (back) to 'Ordered quantity' closes odoo/odoo#69825 Taskid: 2443371 Signed-off-by: Victor Feyens (vfe) --- addons/sale/data/sale_data.xml | 2 -- addons/sale/models/res_config_settings.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/sale/data/sale_data.xml b/addons/sale/data/sale_data.xml index 1d21771538d..0f3abd5937b 100644 --- a/addons/sale/data/sale_data.xml +++ b/addons/sale/data/sale_data.xml @@ -16,7 +16,5 @@ sale.default_confirmation_template - - diff --git a/addons/sale/models/res_config_settings.py b/addons/sale/models/res_config_settings.py index 61620dcdbac..33d7d343d85 100644 --- a/addons/sale/models/res_config_settings.py +++ b/addons/sale/models/res_config_settings.py @@ -21,7 +21,7 @@ class ResConfigSettings(models.TransientModel): ('order', 'Invoice what is ordered'), ('delivery', 'Invoice what is delivered') ], 'Invoicing Policy', - default='delivery', + default='order', default_model='product.template') deposit_default_product_id = fields.Many2one( 'product.product',