account_payment_register_views.xml 1.0 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_account_payment_register_form_inherit_payment" model="ir.ui.view">
  4. <field name="name">account.payment.register.form.inherit.payment</field>
  5. <field name="model">account.payment.register</field>
  6. <field name="inherit_id" ref="account.view_account_payment_register_form"/>
  7. <field name="arch" type="xml">
  8. <field name="payment_method_line_id" position="after">
  9. <field name="payment_method_code" invisible="1"/>
  10. <field name="suitable_payment_token_ids" invisible="1"/>
  11. <field name="use_electronic_payment_method" invisible="1"/>
  12. <field name="payment_token_id"
  13. options="{'no_create': True}"
  14. attrs="{'invisible': ['|', ('use_electronic_payment_method', '!=', True), '|', ('can_edit_wizard', '=', False), '&amp;', ('can_group_payments', '=', True), ('group_payment', '=', False)]}"/>
  15. </field>
  16. </field>
  17. </record>
  18. </odoo>