Add ICS in account settings page

This commit is contained in:
Alexis de Lattre
2016-05-11 23:33:29 +02:00
parent 69264e5885
commit fb6f93c351
4 changed files with 35 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
'data': [
'views/account_banking_mandate_view.xml',
'views/res_company_view.xml',
'views/res_config.xml',
'views/account_payment_mode.xml',
'data/mandate_expire_cron.xml',
'data/account_payment_method.xml',

View File

@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from . import res_company
from . import res_config
from . import account_banking_mandate
from . import bank_payment_line
from . import account_payment_mode

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class AccountConfigSettings(models.TransientModel):
_inherit = 'account.config.settings'
sepa_creditor_identifier = fields.Char(
related='company_id.sepa_creditor_identifier')

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_account_config_settings" model="ir.ui.view">
<field name="name">sepa_direct_debit.account_config_settings.form</field>
<field name="model">account.config.settings</field>
<field name="inherit_id" ref="account.view_account_config_settings"/>
<field name="arch" type="xml">
<div name="payment_acquirer" position="before">
<div name="sepa_direct_debit">
<label for="sepa_creditor_identifier"/>
<field name="sepa_creditor_identifier" class="oe_inline"
placeholder="Write the ICS of your company"/>
</div>
</div>
</field>
</record>
</data>
</odoo>