mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-24 16:22:03 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -0,0 +1,13 @@
|
|||
from odoo import api, models
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = "account.move"
|
||||
|
||||
@api.ondelete(at_uninstall=False)
|
||||
def unlink_snailmail_letters(self):
|
||||
snailmail_letters = self.env['snailmail.letter'].search([
|
||||
('model', '=', 'account.move'),
|
||||
('res_id', 'in', self.ids),
|
||||
])
|
||||
snailmail_letters.unlink()
|
||||
Loading…
Add table
Add a link
Reference in a new issue