Skip to content

Commit

Permalink
fixup! [REF] pos_customer_wallet: Use ORM instead of SQL queries
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Sep 7, 2023
1 parent d692b06 commit c0535de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pos_customer_wallet/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_wallet_balance_pos_order_line(self, all_partner_ids):
]
)
):
pre_result[line.partner_id.id] -= line.price_subtotal
pre_result[line.order_id.partner_id.id] -= line.price_subtotal
return [
{"partner_id": partner_id, "total": total}
for partner_id, total in pre_result.items()
Expand Down

0 comments on commit c0535de

Please sign in to comment.