Skip to content

Commit

Permalink
Merge PR #4226 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by TheMule71
  • Loading branch information
OCA-git-bot committed Jun 25, 2024
2 parents 9d4a9af + 3305939 commit dc2e3e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions l10n_it_delivery_note/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ def unlink(self):
dn.state = "confirm"
return res

def button_cancel(self): # pylint: disable=missing-return
super().button_cancel()
dn_lines = (
self.invoice_line_ids.sale_line_ids.delivery_note_line_ids
| self.delivery_note_ids.line_ids
)
dn_lines.sync_invoice_status()
dn_lines.delivery_note_id._compute_invoice_status()
dn_lines.delivery_note_id.state = "confirm"


class AccountInvoiceLine(models.Model):
_inherit = "account.move.line"
Expand Down

0 comments on commit dc2e3e7

Please sign in to comment.