Skip to content

Commit

Permalink
[IMP] account_move_accrual_entry: don't add and accounting account to…
Browse files Browse the repository at this point in the history
… notes and sections
  • Loading branch information
FrankC013 authored and eantones committed Jan 14, 2025
1 parent dcdd9f2 commit 026d8e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account_move_accrual_entry/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class AccountMoveLine(models.Model):
def _onchange_accrual_entry_account_id(self):
for line in self:
if (
line.move_id.move_type in ("out_invoice", "out_refund")
line.display_type not in ("line_section", "line_note")
and line.move_id.move_type in ("out_invoice", "out_refund")
and line.move_id.accrual_date
):
if not line.accrual_account_id:
Expand Down

0 comments on commit 026d8e2

Please sign in to comment.