odoo/odoo#192042

Created by fw-bot
Merged at 0c705056603bf8f8b2577c8ab8f8c1413c598337

Statuses:

label
odoo-dev:master-17.0-opw-4161408-discoutn_disappear_changing_table-roen-Fobq-fw
head
2890782ac78f9b3c40ad4bac88160183d368df87
merged
10 months ago by Bugfix, Robin Engels (roen)
odoo/odoo
17.0 #183949
saas-17.2 #190546
saas-17.4 #191197
18.0 #191444
saas-18.1 #191693
saas-18.2
saas-18.3
saas-18.4
19.0
master #192042

[FW][FIX] pos_restaurant: keep rewards when leaving table

When adding a reward to an order on a table, if you leave the table and come back to it the reward would be gone

Steps to reproduce:

  • Setup a promotion program that give 10% discount
  • Open a PoS restaurant open a table and add some products
  • The 10% discount should be applied
  • Leave the table and come back to it
    > Observation: The reward is gone

Why the fix:

We make sure to update the rewards when selecting the table, because when opening the table we use the one saved on the server.

opw-4161408

I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #191693
Forward-Port-Of: #183949