Browse Source

[ADD] configuration section on accounting page

[REN] move files around to conform directory convention
pull/31/head
Holger Brunn 10 years ago
parent
commit
93539e6632
  1. 5
      account_bank_statement_import/__init__.py
  2. 3
      account_bank_statement_import/__openerp__.py
  3. 5
      account_bank_statement_import/models/__init__.py
  4. 0
      account_bank_statement_import/models/account_bank_statement_import.py
  5. 27
      account_bank_statement_import/models/account_config_settings.py
  6. 0
      account_bank_statement_import/models/res_partner_bank.py
  7. 0
      account_bank_statement_import/views/account_bank_statement_import_view.xml
  8. 17
      account_bank_statement_import/views/account_config_settings.xml

5
account_bank_statement_import/__init__.py

@ -1,4 +1 @@
# -*- encoding: utf-8 -*-
from . import res_partner_bank
from . import account_bank_statement_import
from . import models

3
account_bank_statement_import/__openerp__.py

@ -8,7 +8,8 @@
'website': 'https://github.com/OCA/bank-statement-import',
'depends': ['account'],
'data': [
'account_bank_statement_import_view.xml',
"views/account_config_settings.xml",
'views/account_bank_statement_import_view.xml',
],
'demo': [
'demo/fiscalyear_period.xml',

5
account_bank_statement_import/models/__init__.py

@ -0,0 +1,5 @@
# -*- encoding: utf-8 -*-
from . import res_partner_bank
from . import account_bank_statement_import
from . import account_config_settings

0
account_bank_statement_import/account_bank_statement_import.py → account_bank_statement_import/models/account_bank_statement_import.py

27
account_bank_statement_import/models/account_config_settings.py

@ -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
account_bank_statement_import/res_partner_bank.py → account_bank_statement_import/models/res_partner_bank.py

0
account_bank_statement_import/account_bank_statement_import_view.xml → account_bank_statement_import/views/account_bank_statement_import_view.xml

17
account_bank_statement_import/views/account_config_settings.xml

@ -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>
Loading…
Cancel
Save