You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2017-2019 ACSONE SA/NV
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <!--FORM view-->
  6. <record model="ir.ui.view" id="res_partner_bank_form_view">
  7. <field name="name">res.partner.bank.form (in partner_bank_active)</field>
  8. <field name="model">res.partner.bank</field>
  9. <field name="inherit_id" ref="base.view_partner_bank_form"/>
  10. <field name="arch" type="xml">
  11. <xpath expr="//group[group[field[@name='sequence']]]" position="before">
  12. <div class="oe_button_box" name="button_box">
  13. <button name="toggle_active"
  14. type="object"
  15. class="oe_stat_button"
  16. icon="fa-archive">
  17. <field name="active"
  18. widget="boolean_button"
  19. options='{"terminology": "archive"}'/>
  20. </button>
  21. </div>
  22. </xpath>
  23. </field>
  24. </record>
  25. <!--TREE view-->
  26. <record model="ir.ui.view" id="res_partner_bank_tree_view">
  27. <field name="name">res.partner.bank.tree (in partner_bank_active)</field>
  28. <field name="model">res.partner.bank</field>
  29. <field name="inherit_id" ref="base.view_partner_bank_tree"/>
  30. <field name="arch" type="xml">
  31. <field name="partner_id" position="after">
  32. <field name="active"
  33. invisible="1"/>
  34. </field>
  35. <xpath expr="//tree" position="attributes">
  36. <attribute name="decoration-muted">active == False</attribute>
  37. </xpath>
  38. </field>
  39. </record>
  40. <!--SEARCH view-->
  41. <record model="ir.ui.view" id="res_partner_bank_search_view">
  42. <field name="name">res.partner.bank.search (in partner_bank_active)</field>
  43. <field name="model">res.partner.bank</field>
  44. <field name="inherit_id" ref="base.view_partner_bank_search"/>
  45. <field name="arch" type="xml">
  46. <field name="partner_id" position="after">
  47. <separator/>
  48. <filter name="archived" string="Archived" domain="[('active', '=', False)]"/>
  49. </field>
  50. </field>
  51. </record>
  52. </odoo>