Andrea
6 years ago
8 changed files with 127 additions and 3 deletions
-
14account_bank_statement_import_camt_oca/README.rst
-
3account_bank_statement_import_camt_oca/__manifest__.py
-
2account_bank_statement_import_camt_oca/models/__init__.py
-
6account_bank_statement_import_camt_oca/models/parser.py
-
10account_bank_statement_import_camt_oca/models/res_company.py
-
10account_bank_statement_import_camt_oca/models/res_config_settings.py
-
61account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py
-
24account_bank_statement_import_camt_oca/views/res_config_settings.xml
@ -0,0 +1,10 @@ |
|||
# Copyright 2018 Onestein (<http://www.onestein.eu>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import fields, models |
|||
|
|||
|
|||
class ResCompany(models.Model): |
|||
_inherit = 'res.company' |
|||
|
|||
camt_import_batch = fields.Boolean() |
@ -0,0 +1,10 @@ |
|||
# Copyright 2018 Onestein (<http://www.onestein.eu>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import fields, models |
|||
|
|||
|
|||
class ResConfigSettings(models.TransientModel): |
|||
_inherit = 'res.config.settings' |
|||
|
|||
camt_import_batch = fields.Boolean(related='company_id.camt_import_batch') |
@ -0,0 +1,24 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<record id="res_config_settings_view_form" model="ir.ui.view"> |
|||
<field name="inherit_id" ref="account.res_config_settings_view_form"/> |
|||
<field name="model">res.config.settings</field> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//div[@id='bank_cash']" position="inside"> |
|||
<div class="col-xs-12 col-md-6 o_setting_box"> |
|||
<div class="o_setting_left_pane"> |
|||
<field name="camt_import_batch"/> |
|||
</div> |
|||
<div class="o_setting_right_pane"> |
|||
<label string="CAMT (OCA) Import Batch"/> |
|||
<div class="text-muted"> |
|||
Import batches of CAMT bank statements (do not import single detailed lines). |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue