account_invoice_update_wizard: purge existing pdf in attachment after update
This commit is contained in:
committed by
Florian da Costa
parent
9fc47065ff
commit
6d855f4397
@@ -227,6 +227,9 @@ class AccountMoveUpdate(models.TransientModel):
|
|||||||
inv.message_post(body=_(
|
inv.message_post(body=_(
|
||||||
'Non-legal fields of invoice updated via the Invoice Update '
|
'Non-legal fields of invoice updated via the Invoice Update '
|
||||||
'wizard.'))
|
'wizard.'))
|
||||||
|
# Purge existing PDF
|
||||||
|
report = self.env.ref("account.account_invoices")
|
||||||
|
report.retrieve_attachment(inv).unlink()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user