1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_pe_edi/models/account_journal.py
2024-12-10 09:04:09 +07:00

15 lines
430 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class AccountJournal(models.Model):
_inherit = 'account.journal'
@api.depends('l10n_latam_use_documents')
def _compute_edi_format_ids(self):
# Add the dependency to l10n_latam_use_documents used by '_is_compatible_with_journal'
return super()._compute_edi_format_ids()