You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
615 B

  1. # Copyright 2019 Tecnativa - Vicent Cubells
  2. # Copyright 2019 Eficent Business and IT Consulting Services, S.L.
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from odoo import fields, models
  5. class AccountJournal(models.Model):
  6. _inherit = "account.journal"
  7. statement_import_txt_map_id = fields.Many2one(
  8. comodel_name='account.bank.statement.import.map',
  9. string='Statement Import Txt Map',
  10. )
  11. def _get_bank_statements_available_import_formats(self):
  12. res = super()._get_bank_statements_available_import_formats()
  13. res.append('Txt')
  14. return res