Skip to content

Commit

Permalink
Merge PR #264 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by Saran440
  • Loading branch information
OCA-git-bot committed Aug 15, 2024
2 parents 738332c + a5fdace commit 04aa0d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hr_expense_advance_clearing/models/hr_expense_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ def _compute_clearing_residual(self):
emp_advance = sheet._get_product_advance()
residual_company = 0.0
if emp_advance:
property_account_expense_id = emp_advance.with_company(
sheet.company_id
).property_account_expense_id
for line in sheet.sudo().account_move_id.line_ids:
if line.account_id == emp_advance.property_account_expense_id:
if line.account_id == property_account_expense_id:
residual_company += line.amount_residual
sheet.clearing_residual = residual_company

Expand Down

0 comments on commit 04aa0d8

Please sign in to comment.