Skip to content

[FIX]hr_payroll_account: Incorrect user error due to line variable - #135

Merged
odoomates merged 1 commit into
odoomates:17.0from
ezoer-elementure:17.0
Sep 18, 2026
Merged

odoomates merged 1 commit into
odoomates:17.0from
ezoer-elementure:17.0

Conversation

@ezoer-elementure

Copy link
Copy Markdown

not initialized

It looks like this code was copied from a few lines below where the line variable was initialised through the for loop. This suggestion works but the original code may be better because the code no longer checks if all lines have valid debit and credit accounts.

odoomates added a commit that referenced this pull request Sep 18, 2026
…heck and journal xpath

om_hr_payroll_account
- Confirming a payslip raised "Missing Debit Or Credit Account in Salary Rule"
  whenever no single salary rule carried both accounts, even though the debit
  and the credit side may legitimately come from two different rules. The check
  now looks at the accounts of the whole payslip. Reported in PR #135.

om_account_accountant
- The journal xpath required the payment method fields to sit directly inside a
  <list>, so it broke as soon as another module wrapped or altered it. Reported
  in PR #198.
odoomates added a commit that referenced this pull request Sep 18, 2026
…heck and journal xpath

om_hr_payroll_account
- Confirming a payslip raised "Missing Debit Or Credit Account in Salary Rule"
  whenever no single salary rule carried both accounts, even though the debit
  and the credit side may legitimately come from two different rules. The check
  now looks at the accounts of the whole payslip. Reported in PR #135.

om_account_accountant
- The journal xpath required the payment method fields to sit directly inside a
  <list>, so it broke as soon as another module wrapped or altered it. Reported
  in PR #198.
odoomates added a commit that referenced this pull request Sep 18, 2026
…heck and journal xpath

om_hr_payroll_account
- Confirming a payslip raised "Missing Debit Or Credit Account in Salary Rule"
  whenever no single salary rule carried both accounts, even though the debit
  and the credit side may legitimately come from two different rules. The check
  now looks at the accounts of the whole payslip. Reported in PR #135.

om_account_accountant
- The journal xpath required the payment method fields to sit directly inside a
  <list>, so it broke as soon as another module wrapped or altered it. Reported
  in PR #198.
@odoomates
odoomates merged commit d5241d8 into odoomates:17.0 Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants