-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by StefanRijnhart
- Loading branch information
Showing
21 changed files
with
924 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../web_tree_duplicate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
=========================== | ||
Tree View Duplicate Records | ||
=========================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:f76ad85d67cf363cb525bf60998a317d0f9a114ebe4ecc6685dae79cc5b0465e | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github | ||
:target: https://github.com/OCA/web/tree/16.0/web_tree_duplicate | ||
:alt: OCA/web | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_tree_duplicate | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
With this module you can duplicate records directly from the tree view. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
The duplicate option is enabled by default. | ||
To disable it you have to add attribute `duplicate` to the tree view. | ||
Set `duplicate` to `false` to enable it or `true` 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> | ||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
#. Go to any tree view; | ||
#. select some records; | ||
#. open the sidebar menu and click 'Duplicate'. | ||
|
||
.. image:: https://raw.githubusercontent.com/web_tree_duplicate/static/description/screenshot-duplicate.png | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_tree_duplicate%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Hunki Enterprises BV | ||
* Onestein | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Dennis Sluijk <[email protected]> | ||
* Holger Brunn <[email protected]> (https://hunki-enterprises.com) | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
.. |maintainer-tarteo| image:: https://github.com/tarteo.png?size=40px | ||
:target: https://github.com/tarteo | ||
:alt: tarteo | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-tarteo| | ||
|
||
This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_tree_duplicate>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2019 Onestein | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Tree View Duplicate Records", | ||
"summary": "Duplicate records directly from the tree view.", | ||
"development_status": "Beta", | ||
"category": "Extra Tools", | ||
"version": "16.0.1.0.0", | ||
"author": "Hunki Enterprises BV, Onestein, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"website": "https://github.com/OCA/web", | ||
"depends": ["web"], | ||
"maintainers": ["tarteo"], | ||
"assets": { | ||
"web.assets_backend": [ | ||
"web_tree_duplicate/static/src/web_tree_duplicate.esm.js", | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * web_tree_duplicate | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-02-17 10:45+0000\n" | ||
"Last-Translator: claudiagn <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: ca\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:47 | ||
#, python-format | ||
msgid "Duplicate" | ||
msgstr "Duplicar" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:84 | ||
#, python-format | ||
msgid "Duplicated Records" | ||
msgstr "Registres duplicats" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * web_tree_duplicate | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2020-07-23 14:19+0000\n" | ||
"Last-Translator: claudiagn <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 3.10\n" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:47 | ||
#, python-format | ||
msgid "Duplicate" | ||
msgstr "Duplicar" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:84 | ||
#, python-format | ||
msgid "Duplicated Records" | ||
msgstr "Registros duplicados" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * web_tree_duplicate | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-02-01 12:44+0000\n" | ||
"Last-Translator: Yann Papouin <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:47 | ||
#, python-format | ||
msgid "Duplicate" | ||
msgstr "Dupliquer" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:84 | ||
#, python-format | ||
msgid "Duplicated Records" | ||
msgstr "Enregistrements dupliqués" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * web_tree_duplicate | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-07-05 08:47+0000\n" | ||
"PO-Revision-Date: 2023-07-05 08:47+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: web_tree_duplicate | ||
#. odoo-javascript | ||
#: code:addons/web_tree_duplicate/static/src/web_tree_duplicate.esm.js:0 | ||
#, python-format | ||
msgid "Duplicate" | ||
msgstr "שכפול" | ||
|
||
#. module: web_tree_duplicate | ||
#. odoo-javascript | ||
#: code:addons/web_tree_duplicate/static/src/web_tree_duplicate.esm.js:0 | ||
#, python-format | ||
msgid "Duplicated Records" | ||
msgstr "רשומות משוכפלות" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * web_tree_duplicate | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2020-10-28 21:08+0000\n" | ||
"Last-Translator: Pedro Castro Silva <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: pt\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Weblate 3.10\n" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:47 | ||
#, python-format | ||
msgid "Duplicate" | ||
msgstr "Duplicar" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:84 | ||
#, python-format | ||
msgid "Duplicated Records" | ||
msgstr "Registos Duplicados" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * web_tree_duplicate | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-03-15 06:45+0000\n" | ||
"Last-Translator: Marcel Savegnago <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: pt_BR\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:47 | ||
#, python-format | ||
msgid "Duplicate" | ||
msgstr "Duplicado" | ||
|
||
#. module: web_tree_duplicate | ||
#. openerp-web | ||
#: code:addons/web_tree_duplicate/static/src/js/backend.js:84 | ||
#, python-format | ||
msgid "Duplicated Records" | ||
msgstr "Registros Duplicados" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * web_tree_duplicate | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-07-05 08:47+0000\n" | ||
"PO-Revision-Date: 2023-07-05 08:47+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: web_tree_duplicate | ||
#. odoo-javascript | ||
#: code:addons/web_tree_duplicate/static/src/web_tree_duplicate.esm.js:0 | ||
#, python-format | ||
msgid "Duplicate" | ||
msgstr "" | ||
|
||
#. module: web_tree_duplicate | ||
#. odoo-javascript | ||
#: code:addons/web_tree_duplicate/static/src/web_tree_duplicate.esm.js:0 | ||
#, python-format | ||
msgid "Duplicated Records" | ||
msgstr "" |
Oops, something went wrong.