summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-06-27 11:47:10 +0000
committerNicolas Martinelli <nim@odoo.com>2019-06-27 11:55:01 +0000
commit90c2e0c75e00306d6e60c16561a6b26a2ee23ff4 (patch)
treebc1eb53b2f73af036a0258d961afca1655674097 /addons/web_editor/static/src/xml
parentb1d43cc80e2dd5d6efeea60e9c74490fe2f70014 (diff)
[FIX] pos_discount: change customer
- Enable general discounts for POS - Create a POS session - Add a product - Create a general discount of 10% - Change the customer The discount is reset to the product price. When changing the customer, the prices are reset: https://github.com/odoo/odoo/blob/3b1699e02d4483913159681bf7e10839e6493244/addons/point_of_sale/static/src/js/screens.js#L1251 In the case of a global discount, the price is therefore reset to the product price in: https://github.com/odoo/odoo/blob/3b1699e02d4483913159681bf7e10839e6493244/addons/point_of_sale/static/src/js/models.js#L2304 To avoid this, we set the price as manually set. Conceptually, this is indeed the case since we manually chose the percentage, therefore the price. opw-2009761 closes odoo/odoo#34418 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/xml')
0 files changed, 0 insertions, 0 deletions