odoo/odoo#159279
Created by POS IoT, David Monnom (moda)
Merged
at 82838a252d98ffc6644aae51e0b7468dcc1aba0b
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-self_order_fix-moda
- head
- 392a34906b5ad57f0cf1cb8cf6b7b6acfc34c1d5
- merged
- 2 years ago by POS IoT, Joseph Caburnay (jcb)
| odoo/odoo | |
|---|---|
| master | #159279 |
[FIX] pos_self_order,pos_self_order: load self orders in restaurant
Commit 1
Before, orders from the self order were not loaded in the restaurant. This was due to a typo in the context table_ids variable. The context contains table_ids and the backend attempts to have table_id
This commit fixes the typo and adds the missing table_ids in the context when loading the orders from the self order.
Other fix:
- The order widget always showing 0 for the total amount of the order, this was due to a wrong variable name price_unit when price was intended.
Commit 2:
When syncing a table to get new self orders from the server, the PoS
was overriding the server's order with the local one, which was
incorrect. This commit fixes this issue by only updating the local
order with the server's one.