[IMP] l10n_it_edi_sdicoop: Cannot delete already sent attached files
If an invoice is send to the Tax Agency, we should block the fact that the user can delete it. In that case, we can have issues when the tax agency sends back notifications. Task link: https://www.odoo.com/web#id=3192962&model=project.task Task-3192962 closes odoo/odoo#114872 X-original-commit: c11a512af4e467068c6b228bf55225e5e43d7811 Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Paolo Gatti (pgi) <pgi@odoo.com>
This commit is contained in:
@@ -21,7 +21,7 @@ class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
l10n_it_edi_transaction = fields.Char(copy=False, string="FatturaPA Transaction")
|
||||
l10n_it_edi_attachment_id = fields.Many2one('ir.attachment', copy=False, string="FatturaPA Attachment")
|
||||
l10n_it_edi_attachment_id = fields.Many2one('ir.attachment', copy=False, string="FatturaPA Attachment", ondelete="restrict")
|
||||
|
||||
l10n_it_stamp_duty = fields.Float(default=0, string="Dati Bollo", readonly=True, states={'draft': [('readonly', False)]})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user