[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) <dbo@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user