Skip to content

Commit

Permalink
Merge PR #1674 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 31, 2024
2 parents 5a79222 + e60bb8f commit 9df7e76
Show file tree
Hide file tree
Showing 19 changed files with 797 additions and 0 deletions.
90 changes: 90 additions & 0 deletions product_product_template_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
=====================
Product Template Link
=====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:073257c6e714c0005e11430a304175e27c99e6e5e0df3151b558632ece0b2905
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/17.0/product_product_template_link
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_product_template_link
: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/product-attribute&target_branch=17.0
:alt: Try me on Runboat

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

This module adds a button in the product form to view the product
template.

|image|

.. |image| image:: https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_product_template_link/static/img/template_navigation.gif

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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/product-attribute/issues/new?body=module:%20product_product_template_link%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

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

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

- Alexandre Díaz
- Pedro M. Baeza

- `Cetmix <https://www.cetmix.com>`__:

- Dessan Hemrayev

- PyTech SRL <[email protected]>

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/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_product_template_link>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions product_product_template_link/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
15 changes: 15 additions & 0 deletions product_product_template_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2019 Alexandre Díaz - Tecnativa
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Template Link",
"summary": "Adds a button in product to view the template",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
"category": "Product",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["product"],
"data": ["views/product_product_views.xml"],
"installable": True,
"application": False,
}
34 changes: 34 additions & 0 deletions product_product_template_link/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_product_template_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-02-25 12: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: product_product_template_link
#: model_terms:ir.ui.view,arch_db:product_product_template_link.product_template_form_view
msgid ""
"<span>\n"
" View Template\n"
" </span>"
msgstr ""

#. module: product_product_template_link
#: model:ir.model,name:product_product_template_link.model_product_product
#, fuzzy
msgid "Product Variant"
msgstr "Producte"

#~ msgid "View Template"
#~ msgstr "Veure plantilla"
36 changes: 36 additions & 0 deletions product_product_template_link/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_product_template_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-29 11:34+0000\n"
"Last-Translator: Ivorra78 <[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 4.17\n"

#. module: product_product_template_link
#: model_terms:ir.ui.view,arch_db:product_product_template_link.product_template_form_view
msgid ""
"<span>\n"
" View Template\n"
" </span>"
msgstr ""
"<span>\n"
" Visualizar Plantilla\n"
" </span>"

#. module: product_product_template_link
#: model:ir.model,name:product_product_template_link.model_product_product
msgid "Product Variant"
msgstr "Variante del Producto"

#~ msgid "View Template"
#~ msgstr "Ver plantilla"
45 changes: 45 additions & 0 deletions product_product_template_link/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_product_template_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-24 17:37+0000\n"
"Last-Translator: mymage <[email protected]>\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 4.17\n"

#. module: product_product_template_link
#: model_terms:ir.ui.view,arch_db:product_product_template_link.product_template_form_view
msgid ""
"<span>\n"
" View Template\n"
" </span>"
msgstr ""
"<span>\n"
" Visualizza modello\n"
" </span>"

#. module: product_product_template_link
#: model:ir.model,name:product_product_template_link.model_product_product
msgid "Product Variant"
msgstr "Variante prodotto"

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"

#~ msgid "View Template"
#~ msgstr "Visualizza modello"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_product_template_link
#
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: product_product_template_link
#: model_terms:ir.ui.view,arch_db:product_product_template_link.product_template_form_view
msgid ""
"<span>\n"
" View Template\n"
" </span>"
msgstr ""

#. module: product_product_template_link
#: model:ir.model,name:product_product_template_link.model_product_product
msgid "Product Variant"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_product_template_link
#
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: product_product_template_link
#: model:ir.model.fields,field_description:product_product_template_link.field_product_product__display_name
msgid "Display Name"
msgstr ""

#. module: product_product_template_link
#: model:ir.model.fields,field_description:product_product_template_link.field_product_product__id
msgid "ID"
msgstr ""

#. module: product_product_template_link
#: model:ir.model.fields,field_description:product_product_template_link.field_product_product____last_update
msgid "Last Modified on"
msgstr ""

#. module: product_product_template_link
#: model:ir.model,name:product_product_template_link.model_product_product
msgid "Product"
msgstr ""

#. module: product_product_template_link
#: model_terms:ir.ui.view,arch_db:product_product_template_link.product_template_form_view
msgid "View Template"
msgstr ""
3 changes: 3 additions & 0 deletions product_product_template_link/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import product_product
17 changes: 17 additions & 0 deletions product_product_template_link/models/product_product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2019 Alexandre Díaz - Tecnativa
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import models


class ProductProduct(models.Model):
_inherit = "product.product"

def action_open_product_template(self):
self.ensure_one()
return {
"type": "ir.actions.act_window",
"res_model": "product.template",
"res_id": self.product_tmpl_id.id,
"views": [[False, "form"]],
}
3 changes: 3 additions & 0 deletions product_product_template_link/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions product_product_template_link/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- [Tecnativa](https://www.tecnativa.com):
- Alexandre Díaz
- Pedro M. Baeza
- [Cetmix](https://www.cetmix.com):
- Dessan Hemrayev
- PyTech SRL \<<[email protected]>\>
4 changes: 4 additions & 0 deletions product_product_template_link/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module adds a button in the product form to view the product
template.

![image](../static/img/template_navigation.gif)
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 9df7e76

Please sign in to comment.