From 3f13ce0c064c8e74d19f1f6b7da015b8ef5fbede Mon Sep 17 00:00:00 2001 From: Carlos Dauden Date: Wed, 24 Feb 2021 13:52:54 +0100 Subject: [PATCH] [MIG] partner_pricelist_search: Migration to v13.0 TT28442 --- partner_pricelist_search/README.rst | 10 +++++----- partner_pricelist_search/__manifest__.py | 8 ++++---- .../i18n/partner_pricelist_search.pot | 13 ++++++------ .../static/description/index.html | 6 +++--- .../tests/test_partner_pricelist_search.py | 8 ++++---- .../views/product_pricelist_views.xml | 20 ++++++++++--------- 6 files changed, 34 insertions(+), 31 deletions(-) diff --git a/partner_pricelist_search/README.rst b/partner_pricelist_search/README.rst index 7a002b59b..ed332bf00 100644 --- a/partner_pricelist_search/README.rst +++ b/partner_pricelist_search/README.rst @@ -14,13 +14,13 @@ Partner pricelist search :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github - :target: https://github.com/OCA/partner-contact/tree/12.0/partner_pricelist_search + :target: https://github.com/OCA/partner-contact/tree/13.0/partner_pricelist_search :alt: OCA/partner-contact .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_pricelist_search + :target: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-partner_pricelist_search :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/134/12.0 + :target: https://runbot.odoo-community.org/runbot/134/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -49,7 +49,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -81,6 +81,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/partner-contact `_ project on GitHub. +This module is part of the `OCA/partner-contact `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_pricelist_search/__manifest__.py b/partner_pricelist_search/__manifest__.py index 3447fdae5..9dfd9553e 100644 --- a/partner_pricelist_search/__manifest__.py +++ b/partner_pricelist_search/__manifest__.py @@ -3,12 +3,12 @@ { "name": "Partner pricelist search", - "version": "12.0.1.0.0", - "author": "Tecnativa," "Odoo Community Association (OCA)", + "version": "13.0.1.0.0", + "author": "Tecnativa,Odoo Community Association (OCA)", "website": "https://github.com/OCA/partner-contact", "category": "Partner Management", - "depends": ["product",], - "data": ["views/product_pricelist_views.xml",], + "depends": ["product"], + "data": ["views/product_pricelist_views.xml"], "installable": True, "license": "AGPL-3", } diff --git a/partner_pricelist_search/i18n/partner_pricelist_search.pot b/partner_pricelist_search/i18n/partner_pricelist_search.pot index 93250fc25..2431efb69 100644 --- a/partner_pricelist_search/i18n/partner_pricelist_search.pot +++ b/partner_pricelist_search/i18n/partner_pricelist_search.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * partner_pricelist_search +# * partner_pricelist_search # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -31,7 +31,7 @@ msgid "Pricelist" msgstr "" #. module: partner_pricelist_search -#: code:addons/partner_pricelist_search/models/res_partner.py:29 +#: code:addons/partner_pricelist_search/models/res_partner.py:0 #, python-format msgid "Pricelist field do not support search with the operator '%s'." msgstr "" @@ -39,6 +39,7 @@ msgstr "" #. module: partner_pricelist_search #: model:ir.model.fields,help:partner_pricelist_search.field_res_partner__property_product_pricelist #: model:ir.model.fields,help:partner_pricelist_search.field_res_users__property_product_pricelist -msgid "This pricelist will be used, instead of the default one, for sales to the current partner" +msgid "" +"This pricelist will be used, instead of the default one, for sales to the " +"current partner" msgstr "" - diff --git a/partner_pricelist_search/static/description/index.html b/partner_pricelist_search/static/description/index.html index 13590990b..1744bb361 100644 --- a/partner_pricelist_search/static/description/index.html +++ b/partner_pricelist_search/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

This module adds search by pricelist field option in partners.

Also add a new smart button called “Customers” in pricelist form view to show partners with that pricelist.

@@ -395,7 +395,7 @@ computed.

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.

+feedback.

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

@@ -422,7 +422,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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

+

This module is part of the OCA/partner-contact project on GitHub.

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

diff --git a/partner_pricelist_search/tests/test_partner_pricelist_search.py b/partner_pricelist_search/tests/test_partner_pricelist_search.py index 435f96ff9..d33287d81 100644 --- a/partner_pricelist_search/tests/test_partner_pricelist_search.py +++ b/partner_pricelist_search/tests/test_partner_pricelist_search.py @@ -10,16 +10,16 @@ class TestPartnerPricelistSearch(common.SavepointCase): def setUpClass(cls): super().setUpClass() cls.pricelist_1 = cls.env["product.pricelist"].create( - {"name": "Test pricelist 1",} + {"name": "Test pricelist 1"} ) cls.pricelist_2 = cls.env["product.pricelist"].create( - {"name": "Test pricelist 2",} + {"name": "Test pricelist 2"} ) cls.customer_1 = cls.env["res.partner"].create( - {"name": "Test customer 1", "property_product_pricelist": cls.pricelist_1,} + {"name": "Test customer 1", "property_product_pricelist": cls.pricelist_1} ) cls.customer_2 = cls.env["res.partner"].create( - {"name": "Test customer 2", "property_product_pricelist": cls.pricelist_2,} + {"name": "Test customer 2", "property_product_pricelist": cls.pricelist_2} ) cls.partner_obj = cls.env["res.partner"] diff --git a/partner_pricelist_search/views/product_pricelist_views.xml b/partner_pricelist_search/views/product_pricelist_views.xml index 0bf277111..09e7c9ded 100644 --- a/partner_pricelist_search/views/product_pricelist_views.xml +++ b/partner_pricelist_search/views/product_pricelist_views.xml @@ -4,15 +4,17 @@ product.pricelist - + +
+
+