From ced9ed6bd823c23d55ce75ecc6c0575b0018684e Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Wed, 19 Feb 2020 15:37:21 +0000 Subject: [PATCH] [FIX] sale: demo installation order The product demo file marks a lot of product as 'invoice on delivery' (the default is invoice on order), but the invoice status and amount to invoice on order lines is _not_ recomputed when the product's invoice policy changes (this is a conscious choice, as it would trigger recomputation on past orders). This means that the demo for products must be loaded _before_ the orders demo, otherwise the computation for what is to invoice or not will seem to make no sense on a demo db (even though the computation is in fact correct): a lot of orders where marked as 'to invoice' while the products where not delivered; invoice those and the system will again mark them as 'to invoice' and will immediately want to generate a refund... closes odoo/odoo#45778 X-original-commit: e10f473fa2aba411755b76a0c1af7ff107cde5de Signed-off-by: Damien Bouvy (dbo) --- addons/sale/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/__manifest__.py b/addons/sale/__manifest__.py index 5ed9042790a..abe0dd27887 100644 --- a/addons/sale/__manifest__.py +++ b/addons/sale/__manifest__.py @@ -39,8 +39,8 @@ This module contains all the common features of Sales Management and eCommerce. 'wizard/sale_payment_link_views.xml', ], 'demo': [ - 'data/sale_demo.xml', 'data/product_product_demo.xml', + 'data/sale_demo.xml', ], 'installable': True, 'auto_install': False