Skip to content

Commit

Permalink
[ADD] l10n_it_riba: aggiunta PR OCA#3828
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed Jan 10, 2024
1 parent 2b9dd47 commit 96eb1ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l10n_it_riba/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ def action_post(self):
# ---- Apply Collection Fees on invoice only on first due date of the month
# ---- Get Date of first due date
move_line = self.env["account.move.line"].search(
[("partner_id", "=", invoice.partner_id.id)]
[
("partner_id", "=", invoice.partner_id.id),
("id", "not in", invoice.line_ids.ids),
]
)
if not any(line.due_cost_line for line in move_line):
move_line = self.env["account.move.line"]
Expand Down

0 comments on commit 96eb1ce

Please sign in to comment.