mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[MIG] account_bank_statement_import_qif: Migration to 12.0
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import models
|
||||
from . import wizards
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
{
|
||||
"name": "Import QIF Bank Statements",
|
||||
"category": "Accounting",
|
||||
"version": "11.0.1.0.1",
|
||||
"version": "12.0.1.0.0",
|
||||
"author": "OpenERP SA," "Tecnativa," "Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/bank-statement-import",
|
||||
"depends": ["account_bank_statement_import",],
|
||||
"data": ["wizards/account_bank_statement_import_qif_view.xml",],
|
||||
"depends": ["account_bank_statement_import"],
|
||||
"data": ["wizards/account_bank_statement_import_qif_view.xml"],
|
||||
"installable": True,
|
||||
"license": "AGPL-3",
|
||||
}
|
||||
|
||||
3
account_statement_import_qif/models/__init__.py
Normal file
3
account_statement_import_qif/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import account_journal
|
||||
14
account_statement_import_qif/models/account_journal.py
Normal file
14
account_statement_import_qif/models/account_journal.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import _, models
|
||||
|
||||
|
||||
class AccountJournal(models.Model):
|
||||
_inherit = "account.journal"
|
||||
|
||||
def _get_bank_statements_available_import_formats(self):
|
||||
res = super(
|
||||
AccountJournal, self
|
||||
)._get_bank_statements_available_import_formats()
|
||||
res.extend([_(".qif")])
|
||||
return res
|
||||
Reference in New Issue
Block a user