Skip to content
Snippets Groups Projects
Commit 89be55d2 authored by pedrambiria's avatar pedrambiria
Browse files

[FIX] point_of_sale: show the promotion line for the refund


Before this commit: if you wanted to refund an order that contains a
promotion line, it did not show the promotion line to refund. The
problem was that, during the initialization of an order from JSON, it
calls `set_partner` and `set_pricelist`. It causes a call to
`_updateRewards()` inside the `pos_loyalty`, which will remove the
promotion line. But it doesn't need to update the rewards when it
creates the order object from JSON.

The solution is to prevent calling `set_partner` and `set_pricelist`
when it creates the order object from the JSON.

opw-3111578

closes odoo/odoo#114982

Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
parent 11f817e8
No related branches found
No related tags found
No related merge requests found
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