Debian Codegraph @

addons/l10n_latam_invoice_document/report/invoice_report.py

raw
1 # Part of Odoo. See LICENSE file for full copyright and licensing details.
2 from odoo import models, fields
3 from odoo.tools import SQL
4
5
6 class AccountInvoiceReport(models.Model):
7 _inherit = 'account.invoice.report'
8
9 l10n_latam_document_type_id = fields.Many2one('l10n_latam.document.type', 'Document Type', index=True)
10 _depends = {'account.move': ['l10n_latam_document_type_id'],}
11
12 def _select(self) -> SQL:
13 return SQL("%s, move.l10n_latam_document_type_id as l10n_latam_document_type_id",
14 super()._select())