From d50b84275cf3e70869959e1ad25cff0e1650e9e0 Mon Sep 17 00:00:00 2001 From: Alessio Renda Date: Tue, 21 Nov 2023 10:41:10 +0100 Subject: [PATCH] [IMP] product_product_template_navigation: Make link a stat button --- .../README.rst | 14 +++++----- .../__manifest__.py | 3 +- .../static/description/index.html | 10 +++---- ...est_product_product_template_navigation.py | 9 +++--- .../views/product_product_views.xml | 28 ++++++++++--------- 5 files changed, 33 insertions(+), 31 deletions(-) diff --git a/product_product_template_navigation/README.rst b/product_product_template_navigation/README.rst index 8520522629fe..e7d200e5d339 100644 --- a/product_product_template_navigation/README.rst +++ b/product_product_template_navigation/README.rst @@ -7,7 +7,7 @@ Product Template Navigation !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:83755055c41f725d0424def4b702282e4cafa169511541fcc325682c47567bc9 + !! source digest: sha256:de5e04d33dcadb6c6a7efe8eb30acac317759500fcaecb1d1186adb7761deda9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,20 +17,20 @@ Product Template Navigation :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/14.0/product_product_template_navigation + :target: https://github.com/OCA/product-attribute/tree/16.0/product_product_template_navigation :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-14-0/product-attribute-14-0-product_product_template_navigation + :target: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_product_template_navigation :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=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=16.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:: https://raw.githubusercontent.com/OCA/product-attribute/14.0/product_product_template_navigation/static/img/template_navigation.gif +.. image:: https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_product_template_navigation/static/img/template_navigation.gif **Table of contents** @@ -43,7 +43,7 @@ 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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -80,6 +80,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/product-attribute `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_product_template_navigation/__manifest__.py b/product_product_template_navigation/__manifest__.py index b0bbca9c1d8a..df7e1ab808eb 100644 --- a/product_product_template_navigation/__manifest__.py +++ b/product_product_template_navigation/__manifest__.py @@ -6,9 +6,10 @@ "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-attribute", "category": "Product", - "version": "14.0.1.0.1", + "version": "16.0.1.0.0", "license": "AGPL-3", "depends": ["product"], "data": ["views/product_product_views.xml"], "installable": True, + "application": False, } diff --git a/product_product_template_navigation/static/description/index.html b/product_product_template_navigation/static/description/index.html index a74c569be71a..3b04e836ddfb 100644 --- a/product_product_template_navigation/static/description/index.html +++ b/product_product_template_navigation/static/description/index.html @@ -367,11 +367,11 @@

Product Template Navigation

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:83755055c41f725d0424def4b702282e4cafa169511541fcc325682c47567bc9 +!! source digest: sha256:de5e04d33dcadb6c6a7efe8eb30acac317759500fcaecb1d1186adb7761deda9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

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

-https://raw.githubusercontent.com/OCA/product-attribute/14.0/product_product_template_navigation/static/img/template_navigation.gif +https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_product_template_navigation/static/img/template_navigation.gif

Table of contents

    @@ -389,7 +389,7 @@

    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 to smash it by providing a detailed and welcomed -feedback.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

@@ -421,7 +421,7 @@

Maintainers

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 project on GitHub.

+

This module is part of the OCA/product-attribute project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/product_product_template_navigation/tests/test_product_product_template_navigation.py b/product_product_template_navigation/tests/test_product_product_template_navigation.py index dfd8aabfbcd9..7a05574ae76c 100644 --- a/product_product_template_navigation/tests/test_product_product_template_navigation.py +++ b/product_product_template_navigation/tests/test_product_product_template_navigation.py @@ -1,13 +1,12 @@ -from odoo.tests import tagged from odoo.tests.common import TransactionCase -@tagged("post_install", "-at_install") class TestCommon(TransactionCase): - def setUp(self, *args, **kwargs): - super(TestCommon, self).setUp(*args, **kwargs) + @classmethod + def setUpClass(cls): + super().setUpClass() - self.products = self.env["product.product"].create([{"name": "product1"}]) + cls.products = cls.env["product.product"].create([{"name": "product1"}]) def test_action_open_product_template(self): actual = { diff --git a/product_product_template_navigation/views/product_product_views.xml b/product_product_template_navigation/views/product_product_views.xml index 1aa799122c4d..6449052adff8 100644 --- a/product_product_template_navigation/views/product_product_views.xml +++ b/product_product_template_navigation/views/product_product_views.xml @@ -5,19 +5,21 @@ product.product - -
-
+ + + +