odoo/odoo#159279

Created by POS IoT, David Monnom (moda)
label
odoo-dev:master-self_order_fix-moda
head
392a34906b5ad57f0cf1cb8cf6b7b6acfc34c1d5
target
master
merged
1 month ago by POS IoT, Joseph Caburnay (jcb)

[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.

taskId: 3829268

---

### 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.