res_bank_view.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="isr_partner_bank_form" model="ir.ui.view">
  5. <field name="name">l10n_ch.res.partner.bank.form</field>
  6. <field name="model">res.partner.bank</field>
  7. <field name="inherit_id" ref="base.view_partner_bank_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='acc_number']" position="after">
  10. <field name="l10n_ch_qr_iban" attrs="{'invisible': [('l10n_ch_show_subscription', '=', False)]}"/>
  11. <label for="l10n_ch_postal" string="ISR Client Identification Number" attrs="{'invisible': [('l10n_ch_show_subscription', '=', False)]}"/>
  12. <field name="l10n_ch_postal" nolabel="1" attrs="{'invisible': [('l10n_ch_show_subscription', '=', False)]}"/>
  13. <field name="l10n_ch_postal" attrs="{'invisible': [('l10n_ch_show_subscription', '=', True)]}"/>
  14. <field name="l10n_ch_show_subscription" invisible="1"/>
  15. <field name="l10n_ch_isr_subscription_chf" attrs="{'invisible': [('l10n_ch_show_subscription', '=', False)]}"/>
  16. <field name="l10n_ch_isr_subscription_eur" attrs="{'invisible': [('l10n_ch_show_subscription', '=', False)]}"/>
  17. </xpath>
  18. </field>
  19. </record>
  20. <record id="isr_partner_bank_tree" model="ir.ui.view">
  21. <field name="name">l10n_ch.res.partner.bank.tree</field>
  22. <field name="model">res.partner.bank</field>
  23. <field name="inherit_id" ref="base.view_partner_bank_tree"/>
  24. <field name="arch" type="xml">
  25. <xpath expr="//field[@name='acc_number']" position="after">
  26. <field name="l10n_ch_postal" invisible="1"/>
  27. </xpath>
  28. </field>
  29. </record>
  30. <record id="isr_partner_property_bank_tree" model="ir.ui.view">
  31. <field name="name">l10n_ch.res.partner.property.form</field>
  32. <field name="model">res.partner</field>
  33. <field name="inherit_id" ref="account.view_partner_property_form"/>
  34. <field name="arch" type="xml">
  35. <xpath expr="//field[@name='acc_number']" position="after">
  36. <field name="l10n_ch_postal" invisible="1"/>
  37. </xpath>
  38. </field>
  39. </record>
  40. </data>
  41. </odoo>