Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] web_widget_product_label_section_and_note: Migration to version 17.0 #3080

Open
wants to merge 6 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions web_widget_product_label_section_and_note/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
=========================================
Web widget product label section and note
=========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:db9a30e28410d3ef4ad626f850f766eedb3845976f424d1bbae3350674397d0d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.0/web_widget_product_label_section_and_note
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_product_label_section_and_note
: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=17.0
:alt: Try me on Runboat

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

This module unifies the product and name into a single column, making it
more user-friendly and space-saving.

**Table of contents**

.. contents::
:local:

Configuration
=============

To extend this functionality to other modules (for example, Purchase),
in a new module, it is necessary to create an inherited view to change
the widget for these fields:

- one2many field with widget="product_label_section_and_note_field_o2m".
- product_id or producttmpl_id field with
widget="product_label_section_and_note_field".
- name field with widget="section_and_note_text".

Usage
=====

- Go to the **Invoicing > Customers > Invoices** and add a new line.
- The product label must be displayed just after the product name.
- If the product does not have a description, a button must be displayed
to add one.

Known issues / Roadmap
======================

- Add compatibility with sale_product_configurator module
- Add compatibility with purchase_product_matrix module
- When this module is installed, the PDF report will always display the
column name as a combination of the product code, product name, and
description. This behavior may differ from the expected behavior,
where only the column name is displayed and can be customized
independently.

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_product_label_section_and_note%0Aversion:%2017.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
* Odoo S.A.

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Carlos Lopez

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/17.0/web_widget_product_label_section_and_note>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
23 changes: 23 additions & 0 deletions web_widget_product_label_section_and_note/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Web widget product label section and note",
"version": "17.0.1.0.0",
"summary": "unify the product and name into a single column",
"author": "Tecnativa, Odoo Community Association (OCA), Odoo S.A.",
"website": "https://github.com/OCA/web",
"depends": [
"web",
"account",
],
"data": [
"views/account_move_views.xml",
],
"assets": {
"web.assets_backend": [
"web_widget_product_label_section_and_note/static/src/core/utils/**/*",
"web_widget_product_label_section_and_note/static/src/components/**/*",
],
},
"installable": True,
"auto_install": False,
"license": "AGPL-3",
}
67 changes: 67 additions & 0 deletions web_widget_product_label_section_and_note/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_product_label_section_and_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-12-14 11:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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 5.6.2\n"

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Click or press enter to add a description"
msgstr "Fare clic o premere invio per aggiungere una descrizione"

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Click to remove/add the product name from the description."
msgstr ""
"Fare clic per rimuovere/aggiungere il nome del prodotto dalla descrizione."

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Enter a description"
msgstr "Inserire una descrizione"

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Internal link"
msgstr "Link interno"

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Scan barcode"
msgstr "Leggi codice a barre"

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.esm.js:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Search a product"
msgstr "Cerca un prodotto"
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_product_label_section_and_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Click or press enter to add a description"
msgstr ""

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Click to remove/add the product name from the description."
msgstr ""

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Enter a description"
msgstr ""

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Internal link"
msgstr ""

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Scan barcode"
msgstr ""

#. module: web_widget_product_label_section_and_note
#. odoo-javascript
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.esm.js:0
#: code:addons/web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.xml:0
#, python-format
msgid "Search a product"
msgstr ""
3 changes: 3 additions & 0 deletions web_widget_product_label_section_and_note/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
8 changes: 8 additions & 0 deletions web_widget_product_label_section_and_note/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To extend this functionality to other modules (for example, Purchase),
in a new module, it is necessary to create an inherited view to change
the widget for these fields:

- one2many field with widget="product_label_section_and_note_field_o2m".
- product_id or producttmpl_id field with
widget="product_label_section_and_note_field".
- name field with widget="section_and_note_text".
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [Tecnativa](https://www.tecnativa.com):

> - Pedro M. Baeza
> - Carlos Lopez
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module unifies the product and name into a single column, making it
more user-friendly and space-saving.
7 changes: 7 additions & 0 deletions web_widget_product_label_section_and_note/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- Add compatibility with sale_product_configurator module
- Add compatibility with purchase_product_matrix module
- When this module is installed, the PDF report will always display the
column name as a combination of the product code, product name, and
description. This behavior may differ from the expected behavior,
where only the column name is displayed and can be customized
independently.
4 changes: 4 additions & 0 deletions web_widget_product_label_section_and_note/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Go to the **Invoicing \> Customers \> Invoices** and add a new line.
- The product label must be displayed just after the product name.
- If the product does not have a description, a button must be displayed
to add one.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading