| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | from odoo import models |
| 3 | |
| 4 | |
| 5 | class AccountMove(models.Model): |
| 6 | _inherit = 'account.move' |
| 7 | |
| 8 | def _get_name_invoice_report(self): |
| 9 | if self.company_id.account_fiscal_country_id.code == 'ZM': |
| 10 | return 'l10n_zm_account.report_invoice_document' |
| 11 | return super()._get_name_invoice_report() |