diff --git a/setup/web_tree_duplicate/odoo/addons/web_tree_duplicate b/setup/web_tree_duplicate/odoo/addons/web_tree_duplicate
new file mode 120000
index 000000000..439c853d8
--- /dev/null
+++ b/setup/web_tree_duplicate/odoo/addons/web_tree_duplicate
@@ -0,0 +1 @@
+../../../../web_tree_duplicate
\ No newline at end of file
diff --git a/setup/web_tree_duplicate/setup.py b/setup/web_tree_duplicate/setup.py
new file mode 100644
index 000000000..28c57bb64
--- /dev/null
+++ b/setup/web_tree_duplicate/setup.py
@@ -0,0 +1,6 @@
+import setuptools
+
+setuptools.setup(
+ setup_requires=['setuptools-odoo'],
+ odoo_addon=True,
+)
diff --git a/web_tree_duplicate/README.rst b/web_tree_duplicate/README.rst
index 20bc5c31d..305a677d6 100644
--- a/web_tree_duplicate/README.rst
+++ b/web_tree_duplicate/README.rst
@@ -2,10 +2,13 @@
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
@@ -14,16 +17,16 @@ Tree View Duplicate Records
: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/12.0/web_tree_duplicate
+ :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-12-0/web-12-0-web_tree_duplicate
+ :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/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/162/12.0
- :alt: Try me on Runbot
+.. |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|
+|badge1| |badge2| |badge3| |badge4| |badge5|
With this module you can duplicate records directly from the tree view.
@@ -35,9 +38,9 @@ With this module you can duplicate records directly from the tree view.
Configuration
=============
-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.
+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:
@@ -50,7 +53,7 @@ Example:
- true
+ false
@@ -72,8 +75,8 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
-If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+If you spotted it first, help us to smash it by providing a detailed and welcomed
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -83,12 +86,14 @@ Credits
Authors
~~~~~~~
+* Hunki Enterprises BV
* Onestein
Contributors
~~~~~~~~~~~~
* Dennis Sluijk
+* Holger Brunn (https://hunki-enterprises.com)
Maintainers
~~~~~~~~~~~
@@ -111,6 +116,6 @@ Current `maintainer `__:
|maintainer-tarteo|
-This module is part of the `OCA/web `_ project on GitHub.
+This module is part of the `OCA/web `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/web_tree_duplicate/__manifest__.py b/web_tree_duplicate/__manifest__.py
index 6a326567e..73a206255 100644
--- a/web_tree_duplicate/__manifest__.py
+++ b/web_tree_duplicate/__manifest__.py
@@ -2,22 +2,19 @@
# 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': '12.0.1.0.0',
- 'author': 'Onestein, Odoo Community Association (OCA)',
- 'license': 'AGPL-3',
- 'website': 'https://github.com/OCA/web',
- 'depends': [
- 'web'
- ],
- 'data': [
- 'templates/assets.xml'
- ],
- 'demo': [
- 'demo/res_users_view.xml'
- ],
- 'maintainers': ['tarteo']
+ "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",
+ ],
+ },
}
diff --git a/web_tree_duplicate/demo/res_users_view.xml b/web_tree_duplicate/demo/res_users_view.xml
deleted file mode 100644
index 2dc56661c..000000000
--- a/web_tree_duplicate/demo/res_users_view.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
- res.users
-
-
-
- true
-
-
-
-
diff --git a/web_tree_duplicate/i18n/he_IL.po b/web_tree_duplicate/i18n/he_IL.po
new file mode 100644
index 000000000..92ea362ad
--- /dev/null
+++ b/web_tree_duplicate/i18n/he_IL.po
@@ -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 "רשומות משוכפלות"
diff --git a/web_tree_duplicate/i18n/web_tree_duplicate.pot b/web_tree_duplicate/i18n/web_tree_duplicate.pot
index 1434d3efa..8bb4bcf73 100644
--- a/web_tree_duplicate/i18n/web_tree_duplicate.pot
+++ b/web_tree_duplicate/i18n/web_tree_duplicate.pot
@@ -1,12 +1,14 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * web_tree_duplicate
+# * web_tree_duplicate
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 12.0\n"
+"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: <>\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"
@@ -14,16 +16,15 @@ msgstr ""
"Plural-Forms: \n"
#. module: web_tree_duplicate
-#. openerp-web
-#: code:addons/web_tree_duplicate/static/src/js/backend.js:47
+#. odoo-javascript
+#: code:addons/web_tree_duplicate/static/src/web_tree_duplicate.esm.js:0
#, python-format
msgid "Duplicate"
msgstr ""
#. module: web_tree_duplicate
-#. openerp-web
-#: code:addons/web_tree_duplicate/static/src/js/backend.js:84
+#. odoo-javascript
+#: code:addons/web_tree_duplicate/static/src/web_tree_duplicate.esm.js:0
#, python-format
msgid "Duplicated Records"
msgstr ""
-
diff --git a/web_tree_duplicate/readme/CONFIGURE.rst b/web_tree_duplicate/readme/CONFIGURE.rst
index d10c31333..6f16d63f0 100644
--- a/web_tree_duplicate/readme/CONFIGURE.rst
+++ b/web_tree_duplicate/readme/CONFIGURE.rst
@@ -1,6 +1,6 @@
-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.
+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:
@@ -13,7 +13,7 @@ Example:
- true
+ false
diff --git a/web_tree_duplicate/readme/CONTRIBUTORS.rst b/web_tree_duplicate/readme/CONTRIBUTORS.rst
index 47b6403d0..7c909ba59 100644
--- a/web_tree_duplicate/readme/CONTRIBUTORS.rst
+++ b/web_tree_duplicate/readme/CONTRIBUTORS.rst
@@ -1 +1,2 @@
* Dennis Sluijk
+* Holger Brunn (https://hunki-enterprises.com)
diff --git a/web_tree_duplicate/readme/USAGE.rst b/web_tree_duplicate/readme/USAGE.rst
index da78115c2..efb9caf74 100644
--- a/web_tree_duplicate/readme/USAGE.rst
+++ b/web_tree_duplicate/readme/USAGE.rst
@@ -1,7 +1,9 @@
To use this module, you need to:
-#. Go to any tree view;
-#. select some records;
-#. open the sidebar menu and click 'Duplicate'.
+#. Go to any tree view
+#. select some records
+#. open the sidebar menu and click 'Duplicate'
+
+Note that even when selecting all records via the top checkbox on a list, this will only duplicate the currently visible items. If you really need to duplicate all records, you need to adjust the list view limit accordingly.
.. image:: /web_tree_duplicate/static/description/screenshot-duplicate.png
diff --git a/web_tree_duplicate/static/description/index.html b/web_tree_duplicate/static/description/index.html
index 4c9d2e283..ef0445a4c 100644
--- a/web_tree_duplicate/static/description/index.html
+++ b/web_tree_duplicate/static/description/index.html
@@ -3,7 +3,7 @@
-
+
Tree View Duplicate Records