Skip to content

Commit bfd1971

Browse files
committed
[FIX] the method _check_pos_session_balance is deleted in point_of_sale
1 parent c7b097d commit bfd1971

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pos_payment_change/wizards/pos_payment_change_wizard.py

-6
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,6 @@ def button_change_payment(self):
8989

9090
orders = order.change_payment(new_payments)
9191

92-
# Note. Because of the poor design of the closing session process
93-
# in Odoo, we call _check_pos_session_balance() that sets
94-
# balance_end_real with balance_end for "non cash" journals
95-
if order.session_id.state == "closing_control":
96-
order.session_id._check_pos_session_balance()
97-
9892
if len(orders) == 1:
9993
# if policy is 'update', only close the pop up
10094
action = {"type": "ir.actions.act_window_close"}

0 commit comments

Comments
 (0)