mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[ADD] configuration section on accounting page
[REN] move files around to conform directory convention
This commit is contained in:
@@ -1,4 +1 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
from . import models
|
||||||
|
|
||||||
from . import res_partner_bank
|
|
||||||
from . import account_bank_statement_import
|
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
'website': 'https://github.com/OCA/bank-statement-import',
|
'website': 'https://github.com/OCA/bank-statement-import',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': [
|
'data': [
|
||||||
'account_bank_statement_import_view.xml',
|
"views/account_config_settings.xml",
|
||||||
|
'views/account_bank_statement_import_view.xml',
|
||||||
],
|
],
|
||||||
'demo': [
|
'demo': [
|
||||||
'demo/fiscalyear_period.xml',
|
'demo/fiscalyear_period.xml',
|
||||||
|
|||||||
5
account_bank_statement_import/models/__init__.py
Normal file
5
account_bank_statement_import/models/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import res_partner_bank
|
||||||
|
from . import account_bank_statement_import
|
||||||
|
from . import account_config_settings
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# This module copyright (C) 2015 Therp BV (<http://therp.nl>).
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
from openerp import models, fields
|
||||||
|
|
||||||
|
|
||||||
|
class AccountConfigSettings(models.Model):
|
||||||
|
_inherit = 'account.config.settings'
|
||||||
|
|
||||||
|
module_base_bank_account_number_unique = fields.Boolean(
|
||||||
|
'Enforce unique account numbers on bank accounts')
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
<record id="view_account_config_settings" model="ir.ui.view">
|
||||||
|
<field name="model">account.config.settings</field>
|
||||||
|
<field name="inherit_id" ref="account.view_account_config_settings" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="." position="inside">
|
||||||
|
<separator name="account_bank_statement_import" string="Bank statement import" />
|
||||||
|
<group>
|
||||||
|
<field name="module_base_bank_account_number_unique" />
|
||||||
|
</group>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
Reference in New Issue
Block a user