diff options
| author | Romain Derie <rde@odoo.com> | 2019-07-09 18:09:10 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2019-07-24 11:31:57 +0200 |
| commit | 36fdb2ff499136b8f5a6c1c1d842251c5e6e2c5b (patch) | |
| tree | 65f2af04610d3f0f1dc2d30990d2538deb04079c /addons/theme_bootswatch/static/src | |
| parent | 160b7c87bb1a4eb02f323b96a8c223bdae213ea2 (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/theme_bootswatch/static/src')
0 files changed, 0 insertions, 0 deletions
