mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
No creation of bank accounts linked to contacts
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
'views/account_payment_method.xml',
|
||||
'views/account_payment_mode.xml',
|
||||
'views/res_partner_bank.xml',
|
||||
'views/res_partner.xml',
|
||||
],
|
||||
'demo': ['demo/payment_demo.xml'],
|
||||
'installable': True,
|
||||
|
||||
23
account_payment_mode/views/res_partner.xml
Normal file
23
account_payment_mode/views/res_partner.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
|
||||
<!-- Avoid creation of bank accounts linked to contacts.
|
||||
Note that, when you use the res.partner.bank menu entry,
|
||||
there is a domain on the 'partner_id' field of res.partner.bank (base module)
|
||||
which prevents the selection of a contact -->
|
||||
<record id="partner_view_buttons" model="ir.ui.view">
|
||||
<field name="name">account_payment_mode.res_partner_form</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="account.partner_view_buttons"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="banks" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('parent_id', '!=', False)]}</attribute>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user