mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Add ICS in account settings page
This commit is contained in:
committed by
Enric Tobella
parent
87f9c419f8
commit
36fc4911b1
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
12
account_banking_sepa_direct_debit/models/res_config.py
Normal file
12
account_banking_sepa_direct_debit/models/res_config.py
Normal 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')
|
||||
21
account_banking_sepa_direct_debit/views/res_config.xml
Normal file
21
account_banking_sepa_direct_debit/views/res_config.xml
Normal 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>
|
||||
Reference in New Issue
Block a user