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

15 lines
501 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, api
class AccountMove(models.Model):
_inherit = "account.move"
@api.depends("l10n_latam_document_type_id")
def _compute_l10n_br_is_service_transaction(self):
"""Override."""
for move in self:
move.l10n_br_is_service_transaction = (
move._l10n_br_is_avatax() and move.l10n_latam_document_type_id == self.env.ref("l10n_br.dt_SE")
)