summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-07-09 18:09:10 +0200
committerJeremy Kersten <jke@odoo.com>2019-07-24 11:31:57 +0200
commit36fdb2ff499136b8f5a6c1c1d842251c5e6e2c5b (patch)
tree65f2af04610d3f0f1dc2d30990d2538deb04079c /addons/web/static/src/js/views/basic
parent160b7c87bb1a4eb02f323b96a8c223bdae213ea2 (diff)
[FIX] website_sale: restore possibility to remove promo code pricelist
Since 5c9cea4ee7e, it was not possible to remove an applied promo code pricelist by adding an empty promo code on checkout (eg removing the one shown in the promo code input). Indeed, when sending an empty promo code, the `search()` done in the controller would not find any pricelist as promo would be en empty string. For the rest, check code on mentionned commit. See `sale_get_order()` method docstring about `code` param: "If empty, it's a special case to reset the pricelist with the first available else the default.". Fixes #34633
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions