mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 01:42:00 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
12
odoo-bringout-oca-ocb-l10n_it/l10n_it/models/account_move.py
Normal file
12
odoo-bringout-oca-ocb-l10n_it/l10n_it/models/account_move.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
def _message_set_main_attachment_id(self, attachments, force=False, filter_xml=True):
|
||||
if self.message_main_attachment_id.mimetype == "application/pkcs7-mime":
|
||||
force = True
|
||||
super()._message_set_main_attachment_id(attachments, force, filter_xml)
|
||||
Loading…
Add table
Add a link
Reference in a new issue