mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-11-26 15:42:05 +00:00
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
|
|
<!-- FIX of the 'account' module: on the form view of a bank journal,
|
|
allow to link to an existing bank account -->
|
|
<record id="view_account_journal_form" model="ir.ui.view">
|
|
<field name="name">fix_bank_account_selection.account_journal.form</field>
|
|
<field name="model">account.journal</field>
|
|
<field name="inherit_id" ref="account.view_account_journal_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="bank_account_id" position="before">
|
|
<field name="company_partner_id" invisible="1"/>
|
|
</field>
|
|
|
|
<field name="bank_account_id" position="attributes">
|
|
<attribute name="domain">[('partner_id', '=', company_partner_id)]</attribute>
|
|
</field>
|
|
<!-- better when related fields are readonly, otherwise the user
|
|
doesn't understand that he is changing the bank_id on the underlying
|
|
res.partner.bank object -->
|
|
<field name="bank_id" position="attributes">
|
|
<attribute name="readonly">1</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</flectra>
|