Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] pos_loyalty: underterministic error
An indeterministic error was present in the pos_loyalty module. This was due to the fact that when the user changed the partner a request to retrieve the loyaltyCards already existing for this partner was made by a different series of function calls. In fine, the call was not awaited, so when another method wanted to retrieve the loyaltyCards for the same partner, a new card was created and then overridden to null by the result of the call to the server. To correct this error, the call to the server to retrieve the cards is made when the partner is changed. At this point the request is awaited. Runbot Error: 57047 closes odoo#171226 Signed-off-by: Adrien Guilliams (adgu) <[email protected]>
- Loading branch information