| 1 |
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 |
from odoo import api, models |
| 3 |
|
| 4 |
|
| 5 |
class AccountMoveSend(models.AbstractModel): |
| 6 |
_inherit = 'account.move.send' |
| 7 |
|
| 8 |
# ------------------------------------------------------------------------- |
| 9 |
# ATTACHMENTS |
| 10 |
# ------------------------------------------------------------------------- |
| 11 |
|
| 12 |
@api.model |
| 13 |
def _get_invoice_extra_attachments(self, move): |
| 14 |
""" Sharing the XML file may be a requirement, as it doesn't hurt we will do so. """ |
| 15 |
# EXTENDS 'account' |
| 16 |
return ( |
| 17 |
super()._get_invoice_extra_attachments(move) |
| 18 |
+ move._get_active_myinvois_document().myinvois_file_id |
| 19 |
) |