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.

20 lines
696 B

  1. The duplicate option is disabled by default.
  2. To enable it you have to add attribute `duplicate` to the tree view.
  3. Set `duplicate` to `true` to enable it or `false` to (explicitly) disable it.
  4. Example:
  5. .. code-block:: xml
  6. <?xml version="1.0" encoding="UTF-8" ?>
  7. <odoo>
  8. <record id="view_users_tree" model="ir.ui.view">
  9. <field name="model">res.users</field>
  10. <field name="inherit_id" ref="base.view_users_tree"/>
  11. <field name="arch" type="xml">
  12. <xpath expr="//tree" position="attributes">
  13. <attribute name="duplicate">true</attribute>
  14. </xpath>
  15. </field>
  16. </record>
  17. </odoo>