mirror of
https://github.com/bringout/oca-web.git
synced 2026-04-18 15:12:01 +02:00
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
697 B
ReStructuredText
20 lines
697 B
ReStructuredText
The duplicate option is enabled by default.
|
|
To disable it you have to add attribute `duplicate` to the tree view.
|
|
Set `duplicate` to `true` to enable it or `false` to (explicitly) disable it.
|
|
|
|
Example:
|
|
|
|
.. code-block:: xml
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="view_users_tree" model="ir.ui.view">
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="base.view_users_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//tree" position="attributes">
|
|
<attribute name="duplicate">false</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|