Skip to content

Commit

Permalink
Merge pull request #1458 from OCA/14.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/web (14.0)
  • Loading branch information
bt-admin authored Mar 3, 2025
2 parents c529b91 + 5940c12 commit 30c6460
Show file tree
Hide file tree
Showing 19 changed files with 1,086 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ addon | version | maintainers | summary
[web_widget_model_viewer](web_widget_model_viewer/) | 14.0.1.0.0 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Easily display interactive 3D models on the web & in AR
[web_widget_mpld3_chart](web_widget_mpld3_chart/) | 14.0.1.0.0 | | This widget allows to display charts using MPLD3 library.
[web_widget_numeric_step](web_widget_numeric_step/) | 14.0.1.0.0 | | Web Widget Numeric Step
[web_widget_one2many_tree_line_duplicate](web_widget_one2many_tree_line_duplicate/) | 14.0.1.0.0 | | Web Widget One2many Tree Line Duplicate
[web_widget_open_tab](web_widget_open_tab/) | 14.0.1.0.0 | | Allow to open record from trees on new tab from tree views
[web_widget_plotly_chart](web_widget_plotly_chart/) | 14.0.1.0.0 | [![robyf70](https://github.com/robyf70.png?size=30px)](https://github.com/robyf70) | Allow to draw plotly charts.
[web_widget_text_markdown](web_widget_text_markdown/) | 14.0.1.0.0 | | Widget to text fields that adds markdown support
Expand Down
2 changes: 1 addition & 1 deletion setup/_metapackage/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.0.20241024.0
14.0.20250302.0
1 change: 1 addition & 0 deletions setup/_metapackage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
'odoo14-addon-web_widget_model_viewer',
'odoo14-addon-web_widget_mpld3_chart',
'odoo14-addon-web_widget_numeric_step',
'odoo14-addon-web_widget_one2many_tree_line_duplicate',
'odoo14-addon-web_widget_open_tab',
'odoo14-addon-web_widget_plotly_chart',
'odoo14-addon-web_widget_text_markdown',
Expand Down
6 changes: 6 additions & 0 deletions setup/web_widget_one2many_tree_line_duplicate/setup.py
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,
)
98 changes: 98 additions & 0 deletions web_widget_one2many_tree_line_duplicate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
=======================================
Web Widget One2many Tree Line Duplicate
=======================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:36532a51dbe9890ede59dfb1db1045606f1bac6e13e87dce00900131c540eec1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/14.0/web_widget_one2many_tree_line_duplicate
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_one2many_tree_line_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=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Allow to add a icon to clone the line.

**Table of contents**

.. contents::
:local:

Usage
=====

This module works on all one2many tree views. The cloning process doesn't trigger onchange/default calls.

**Available Options**

- allow_clone > Add the icon to clone the line (default: false)

**Examples**

.. code:: xml
<field name="order_line" widget="section_and_note_one2many" mode="tree,kanban" options="{'allow_clone': True}" attrs="{'readonly': [('state', 'in', ('done','cancel'))]}">
Known issues / Roadmap
======================

* Add an option to control which columns are copied

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_widget_one2many_tree_line_duplicate%0Aversion:%2014.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com/>`_:

* Alexandre Díaz

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.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/web_widget_one2many_tree_line_duplicate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_widget_one2many_tree_line_duplicate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
15 changes: 15 additions & 0 deletions web_widget_one2many_tree_line_duplicate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2021 Tecnativa - Alexandre Díaz
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
"name": "Web Widget One2many Tree Line Duplicate",
"category": "web",
"version": "14.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/web",
"depends": ["web"],
"data": ["view/assets.xml"],
"auto_install": False,
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_one2many_tree_line_duplicate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \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_widget_one2many_tree_line_duplicate
#. openerp-web
#: code:addons/web_widget_one2many_tree_line_duplicate/static/src/js/one2many_tree_line_duplicate.js:0
#, python-format
msgid "Clone row "
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `Tecnativa <https://www.tecnativa.com/>`_:

* Alexandre Díaz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow to add a icon to clone the line.
1 change: 1 addition & 0 deletions web_widget_one2many_tree_line_duplicate/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Add an option to control which columns are copied
11 changes: 11 additions & 0 deletions web_widget_one2many_tree_line_duplicate/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This module works on all one2many tree views. The cloning process doesn't trigger onchange/default calls.

**Available Options**

- allow_clone > Add the icon to clone the line (default: false)

**Examples**

.. code:: xml
<field name="order_line" widget="section_and_note_one2many" mode="tree,kanban" options="{'allow_clone': True}" attrs="{'readonly': [('state', 'in', ('done','cancel'))]}">
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 30c6460

Please sign in to comment.