-
-
Notifications
You must be signed in to change notification settings - Fork 309
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] fiscal_epos_print: new order lines not saved when changing table on Point of sale when restaurant tables are enabled #4623
base: 16.0
Are you sure you want to change the base?
Conversation
Hi @eLBati, |
8891de5
to
ced600a
Compare
Errore della build unrelated EDIT: ho incluso un commit che fixa anche i test che falliscono su l10n_it_account_stamp |
0f66053
to
f0a8be9
Compare
LGTM |
…e on Point of sale when restaurant tables are enabled
f0a8be9
to
cf8f798
Compare
rebased per applicare #4529, ora dovrebbe essere apposto ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ho solo una domanda prima di mergiare, mi sfugge in base a quale meccanismo fixa la issue #4624 Vedo che impatta un flag ( Non capisco come le due cose siano collegate. |
E' molto strano come bug, se in quella funzione fa la find per verificare se c'è un reso , successivamente pusha al server sempre e solo le righe inserite inizialmente . E' come se lato js, dopo aver acceduto alle lines per fare la find, nel momento del push delle righe al server accedesse sempre alla cache appena inizializzata delle orderlines e non alle righe effettivamente inserite. (infatti nei logs si vedono delle pos.order.line eliminate quando si cambia tavolo) Per essere certo che sia quella la parte di codice incriminata, inizialmente avevo provato a forzare has_refund = True cosi non facendogli fare la find e il problema non si presentava . Con some, comunque, personalmente ritengo sia anche molto più elegante oltre che risolvere il problema |
This PR has the |
Si può mergiare ? |
This PR fixes an issue on Point of sale using tables and restaurant
It improves also the code using "some" instead of "find"
Fixes #4624