mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
19 lines
530 B
Python
19 lines
530 B
Python
# Copyright 2019 Tecnativa - Vicent Cubells
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class AccountJournal(models.Model):
|
|
_inherit = "account.journal"
|
|
|
|
paypal_map_id = fields.Many2one(
|
|
comodel_name='account.bank.statement.import.paypal.map',
|
|
string='Paypal Map',
|
|
)
|
|
|
|
def _get_bank_statements_available_import_formats(self):
|
|
res = super()._get_bank_statements_available_import_formats()
|
|
res.append('Paypal')
|
|
return res
|