mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[12.0][ADD] web_tree_duplicate: Duplicate records from the tree view (#1247)
* [ADD] web_tree_duplicate [ADD] Opt in attribute [FIX] Lint * [IMP] Show duplicated records
This commit is contained in:
committed by
Holger Brunn
parent
dfadd419a4
commit
e48452396b
20
web_tree_duplicate/readme/CONFIGURE.rst
Normal file
20
web_tree_duplicate/readme/CONFIGURE.rst
Normal file
@@ -0,0 +1,20 @@
|
||||
The duplicate option is disabled by default.
|
||||
To enable 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">true</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
1
web_tree_duplicate/readme/CONTRIBUTORS.rst
Normal file
1
web_tree_duplicate/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1 @@
|
||||
* Dennis Sluijk <d.sluijk@onestein.nl>
|
||||
1
web_tree_duplicate/readme/DESCRIPTION.rst
Normal file
1
web_tree_duplicate/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1 @@
|
||||
With this module you can duplicate records directly from the tree view.
|
||||
7
web_tree_duplicate/readme/USAGE.rst
Normal file
7
web_tree_duplicate/readme/USAGE.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
To use this module, you need to:
|
||||
|
||||
#. Go to any tree view;
|
||||
#. select some records;
|
||||
#. open the sidebar menu and click 'Duplicate'.
|
||||
|
||||
.. image:: /web_tree_duplicate/static/description/screenshot-duplicate.png
|
||||
Reference in New Issue
Block a user