Browse Source
[ADD]Add res_bank_account module: add the title bank account, observation and active boolean fields.It allows to manage several bank accounts for each contact
pull/19/head
[ADD]Add res_bank_account module: add the title bank account, observation and active boolean fields.It allows to manage several bank accounts for each contact
pull/19/head
committed by
Sandy Carter
6 changed files with 278 additions and 0 deletions
-
25res_bank_account/__init__.py
-
52res_bank_account/__openerp__.py
-
52res_bank_account/i18n/fr.po
-
52res_bank_account/i18n/res_bank_account.pot
-
36res_bank_account/res_bank.py
-
61res_bank_account/res_bank_view.xml
@ -0,0 +1,25 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2013 Savoir-faire Linux |
|||
# (<http://www.savoirfairelinux.com>). |
|||
# |
|||
# 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 . import res_bank |
|||
|
|||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
@ -0,0 +1,52 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2013 Savoir-faire Linux |
|||
# (<http://www.savoirfairelinux.com>). |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
{ |
|||
'name': 'Bank Account', |
|||
'version': '0.1', |
|||
'author': 'Savoir-faire Linux', |
|||
'maintainer': 'Savoir-faire Linux', |
|||
'website': 'http://www.savoirfairelinux.com', |
|||
'category': 'MISC', |
|||
'description': """ |
|||
Bank Account |
|||
============ |
|||
|
|||
|
|||
Contributors |
|||
------------ |
|||
* El Hadji Dem (elhadji.dem@savoirfairelinux.com) |
|||
""", |
|||
'depends': [ |
|||
'account', |
|||
], |
|||
'external_dependencies': {}, |
|||
'data': [ |
|||
'res_bank_view.xml', |
|||
], |
|||
'demo': [], |
|||
'test': [], |
|||
'installable': True, |
|||
'active': False, |
|||
} |
|||
|
|||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
@ -0,0 +1,52 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# * res_bank_account |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2014-01-03 07:26+0000\n" |
|||
"PO-Revision-Date: 2014-01-03 02:26-0500\n" |
|||
"Last-Translator: EL Hadji DEM <elhadji.dem@savoirfairelinux.com>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"Plural-Forms: \n" |
|||
"X-Generator: Poedit 1.5.4\n" |
|||
|
|||
#. module: res_bank_account |
|||
#: field:res.partner.bank,observation:0 |
|||
msgid "Observation" |
|||
msgstr "Remarque" |
|||
|
|||
#. module: res_bank_account |
|||
#: help:res.partner.bank,active:0 |
|||
msgid "Active/Inactive." |
|||
msgstr "Actif/Inactif." |
|||
|
|||
#. module: res_bank_account |
|||
#: model:ir.model,name:res_bank_account.model_res_partner_bank |
|||
msgid "Bank Accounts" |
|||
msgstr "Comptes bancaires" |
|||
|
|||
#. module: res_bank_account |
|||
#: help:res.partner.bank,observation:0 |
|||
msgid "Observation." |
|||
msgstr "Remarque." |
|||
|
|||
#. module: res_bank_account |
|||
#: field:res.partner.bank,title_bank_account:0 |
|||
msgid "Title bank account" |
|||
msgstr "Intitulé du compte bancaire" |
|||
|
|||
#. module: res_bank_account |
|||
#: field:res.partner.bank,active:0 |
|||
msgid "Active" |
|||
msgstr "Active" |
|||
|
|||
#. module: res_bank_account |
|||
#: help:res.partner.bank,title_bank_account:0 |
|||
msgid "Title bank account." |
|||
msgstr "Intitulé du compte bancaire." |
@ -0,0 +1,52 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# * res_bank_account |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2014-01-03 07:25+0000\n" |
|||
"PO-Revision-Date: 2014-01-03 02:25-0500\n" |
|||
"Last-Translator: EL Hadji DEM <elhadji.dem@savoirfairelinux.com>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"Plural-Forms: \n" |
|||
"X-Generator: Poedit 1.5.4\n" |
|||
|
|||
#. module: res_bank_account |
|||
#: field:res.partner.bank,observation:0 |
|||
msgid "Observation" |
|||
msgstr "" |
|||
|
|||
#. module: res_bank_account |
|||
#: help:res.partner.bank,active:0 |
|||
msgid "Active/Inactive." |
|||
msgstr "" |
|||
|
|||
#. module: res_bank_account |
|||
#: model:ir.model,name:res_bank_account.model_res_partner_bank |
|||
msgid "Bank Accounts" |
|||
msgstr "" |
|||
|
|||
#. module: res_bank_account |
|||
#: help:res.partner.bank,observation:0 |
|||
msgid "Observation." |
|||
msgstr "" |
|||
|
|||
#. module: res_bank_account |
|||
#: field:res.partner.bank,title_bank_account:0 |
|||
msgid "Title bank account" |
|||
msgstr "" |
|||
|
|||
#. module: res_bank_account |
|||
#: field:res.partner.bank,active:0 |
|||
msgid "Active" |
|||
msgstr "" |
|||
|
|||
#. module: res_bank_account |
|||
#: help:res.partner.bank,title_bank_account:0 |
|||
msgid "Title bank account." |
|||
msgstr "" |
@ -0,0 +1,36 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2013 Savoir-faire Linux |
|||
# (<http://www.savoirfairelinux.com>). |
|||
# |
|||
# 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.osv import orm, fields |
|||
|
|||
|
|||
class res_partner_bank(orm.Model): |
|||
_inherit = 'res.partner.bank' |
|||
|
|||
_columns = { |
|||
'title_bank_account': fields.char('Title bank account', size=256, |
|||
help="Title bank account."), |
|||
'observation': fields.text('Observation', help="Observation."), |
|||
'active': fields.boolean('Active', help="Active/Inactive."), |
|||
} |
|||
|
|||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
@ -0,0 +1,61 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<!-- Adds title_bank_account,observation and active fields in res.bank form view --> |
|||
<record id="view_partner_bank_inherit_add_form" model="ir.ui.view"> |
|||
<field name="name">res.partner.bank.inherit.add.form</field> |
|||
<field name="model">res.partner.bank</field> |
|||
<field name="inherit_id" ref="base.view_partner_bank_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="state" position="before"> |
|||
<field name="title_bank_account"/> |
|||
</field> |
|||
<field name="acc_number" position="after"> |
|||
<field name="active"/> |
|||
</field> |
|||
<xpath expr="//form[@string='Bank account']/group[2]" |
|||
position="after"> |
|||
<group> |
|||
<field name="observation"/> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<!--Add active field in tree view--> |
|||
<record id="view_partner_bank_inherit_active_tree" model="ir.ui.view"> |
|||
<field name="name">res.partner.bank.inherit.active.tree</field> |
|||
<field name="model">res.partner.bank</field> |
|||
<field name="inherit_id" ref="base.view_partner_bank_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="state" position="before"> |
|||
<field name="active"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
<!--redefine bank_ids tree--> |
|||
<record id="view_partner_property_bank_form" model="ir.ui.view"> |
|||
<field name="name">res.partner.property.bank.inherit.bank.form</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="account.view_partner_property_form"/> |
|||
<field name="arch" type="xml"> |
|||
<!--redefine bank_ids tree--> |
|||
<field name="bank_ids" position="replace"> |
|||
<field name="bank_ids" |
|||
context="{'default_partner_id': active_id, 'form_view_ref': 'base.view_partner_bank_form'}"> |
|||
<tree string="Bank Details"> |
|||
<field name="active"/> |
|||
<field name="state" invisible="1"/> |
|||
<field name="sequence" invisible="1"/> |
|||
<field name="acc_number"/> |
|||
<field name="bank_name"/> |
|||
<field name="owner_name"/> |
|||
</tree> |
|||
</field> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue