Files
odoo_source/addons
vlst f1dbd84e9d [FIX] point_of_sale: fix MoneyDetailsPopup
The MoneyDetailsPopup accepts the prop `total`. This popup is used to
keep track of the bills selected by the user and it's total should
thus simply be computed from the given bills information.

Passing the `total` prop and using it as `state` serves no purpose
and leads to bugs, such as the one addressed in this task.

Steps to reproduce:
1. Click on "Close Session".
2. Input a value in the "counted" field
3. Open the "MoneyDetailsPopup"
4. Observe the fact that the "Total" value is the one from the "counted"
   field, instead of "0".

This is caused because the `ClosePosPopup` has to also independently keep
track of this `total`, in order to be able to pass it to the
`MoneyDetailsPopup` on future calls.

In order to fix this problem from the root cause, we completely remove
the prop `total` and instead allow the popup to compute it from it's
information about the selected bills. This simplifies the code, preventing
future similar bugs.

Task: 3499242
Part-of: odoo/odoo#131171
2023-09-13 09:38:58 +00:00
..
2023-09-13 07:04:39 +00:00
2023-09-06 16:19:51 +00:00
2023-09-11 19:13:59 +00:00
…
2023-09-11 19:13:59 +00:00
2023-09-12 22:12:54 +00:00
2023-09-12 07:12:37 +00:00
2023-09-06 11:51:00 +00:00
2023-09-11 19:13:59 +00:00
2023-09-12 17:16:23 +00:00
…
…