summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2020-02-19 15:37:21 +0000
committerDamien Bouvy <dbo@odoo.com>2020-02-20 09:00:29 +0000
commitced9ed6bd823c23d55ce75ecc6c0575b0018684e (patch)
tree5fc49fdfcb1311bc5a4ce11aff69c7050c53e944 /addons/web/static/src/js/views/basic/basic_controller.js
parent4822e6875e019c86a1297b2be71cd605fea078d0 (diff)
[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>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions