Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] pos_restaurant: prevent traceback on added table #162636

Conversation

lse-odoo
Copy link
Contributor

@lse-odoo lse-odoo commented Apr 19, 2024

To reproduce (v16):

  1. Install PoS Restaurant
  2. Open the restaurant in a device D1
  3. Open the restaurant in a device D2
  4. From D1 create a new table

=> Traceback will keep appearing on D2:
cannot read propoertied of undefined (reading 'id')

This is a consequence of trying to set the order count on a table which is not synced (and will never be in 16 until a refresh)

After this commit:
A console warning is logged and the POS proceed ignoring this missing tables

opw-3850899

@robodoo
Copy link
Contributor

robodoo commented Apr 19, 2024

@lse-odoo
Copy link
Contributor Author

lse-odoo commented Apr 19, 2024

Note: it was not reproducible in 17 (because of websocket probably).

Checking the highest version with the issue...
=> does not reproduce in 16.3 (16.2 & 16.1 not supported anymore)

So need to be r+ only in version 16 :)

@C3POdoo C3POdoo requested review from a team and caburj and removed request for a team April 19, 2024 13:40
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Apr 19, 2024
@lse-odoo lse-odoo force-pushed the 16.0-pos_restaurant_warn_missing_table-lse branch 3 times, most recently from ba566c8 to f83a0c6 Compare April 19, 2024 14:09
To reproduce (v16):
 1. Install PoS Restaurant
 2. Open the restaurant in a device D1
 3. Open the restaurant in a device D2
 4. From D1 create a new table
=> Traceback will keep appearing on D2:
`cannot read propoertied of undefined (reading 'id')`

This is a consequence of trying to set the order count on a table
which is not synced (and will never be in 16 until a refresh)

After this commit:
This tables will be ignored and a warning in the console will appear

opw-3850899
@lse-odoo lse-odoo force-pushed the 16.0-pos_restaurant_warn_missing_table-lse branch from f83a0c6 to 765bf75 Compare April 19, 2024 14:09
@caburj
Copy link
Contributor

caburj commented Apr 19, 2024

fw-bot ignore

@fw-bot
Copy link
Contributor

fw-bot commented Apr 19, 2024

Forward-port disabled.

@caburj
Copy link
Contributor

caburj commented Apr 19, 2024

robodoo delegate+

@lse-odoo
Copy link
Contributor Author

@robodoo r+

robodoo pushed a commit that referenced this pull request Apr 19, 2024
To reproduce (v16):
 1. Install PoS Restaurant
 2. Open the restaurant in a device D1
 3. Open the restaurant in a device D2
 4. From D1 create a new table
=> Traceback will keep appearing on D2:
`cannot read propoertied of undefined (reading 'id')`

This is a consequence of trying to set the order count on a table
which is not synced (and will never be in 16 until a refresh)

After this commit:
This tables will be ignored and a warning in the console will appear

opw-3850899

closes #162636

Signed-off-by: Loan Sens (lse) <lse@odoo.com>
@robodoo robodoo closed this Apr 19, 2024
MohammedBasioni pushed a commit to odoo-dev/odoo that referenced this pull request Apr 29, 2024
To reproduce (v16):
 1. Install PoS Restaurant
 2. Open the restaurant in a device D1
 3. Open the restaurant in a device D2
 4. From D1 create a new table
=> Traceback will keep appearing on D2:
`cannot read propoertied of undefined (reading 'id')`

This is a consequence of trying to set the order count on a table
which is not synced (and will never be in 16 until a refresh)

After this commit:
This tables will be ignored and a warning in the console will appear

opw-3850899

closes odoo#162636

Signed-off-by: Loan Sens (lse) <lse@odoo.com>
@fw-bot fw-bot deleted the 16.0-pos_restaurant_warn_missing_table-lse branch May 3, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants