Debian Codegraph @

addons/l10n_dk_oioubl/models/account_move.py

raw symbols SCIP
1 from odoo import models
2
3
4 class AccountMove(models.Model):
5 _inherit = 'account.move'
6
7 def _get_import_file_type(self, file_data):
8 """ Identify OIOUBL files. """
9 # EXTENDS 'account'
10 if (
11 file_data['xml_tree'] is not None
12 and (customization_id := file_data['xml_tree'].findtext('{*}CustomizationID'))
13 and customization_id == 'OIOUBL-2.01'
14 ):
15 return 'account.edi.xml.oioubl_201'
16
17 return super()._get_import_file_type(file_data)