Skip to content
Snippets Groups Projects
Commit 36fdb2ff authored by Romain Derie's avatar Romain Derie Committed by Jeremy Kersten
Browse files

[FIX] website_sale: restore possibility to remove promo code pricelist

Since 5c9cea4e, 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
parent 160b7c87
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment