| 1 |
from odoo import models |
| 2 |
|
| 3 |
|
| 4 |
class AccountEdiCommon(models.AbstractModel): |
| 5 |
_inherit = 'account.edi.common' |
| 6 |
|
| 7 |
def _add_logs_import_invoice_ubl_cii(self, invoice, invoice_logs=None): |
| 8 |
|
| 9 |
logs = super()._add_logs_import_invoice_ubl_cii(invoice, invoice_logs=invoice_logs) |
| 10 |
if uuid := invoice.peppol_message_uuid: |
| 11 |
logs = [self.env._("Peppol document UUID: %s", uuid)] + logs |
| 12 |
return logs |
| 13 |
|
| 14 |
def _log_import_invoice_ubl_cii(self, invoice, title_logs=None, invoice_logs=None, attachments=None): |
| 15 |
|
| 16 |
if invoice.peppol_message_uuid: |
| 17 |
title_logs = self.env._("Peppol invoice received") |
| 18 |
super()._log_import_invoice_ubl_cii(invoice, title_logs=title_logs, invoice_logs=invoice_logs, attachments=attachments) |