Skip to content

Commit

Permalink
[MIG] partner_pricelist_search: Migration to v13.0
Browse files Browse the repository at this point in the history
TT28442
  • Loading branch information
carlosdauden authored and Highcooley committed May 3, 2023
1 parent 89cbd71 commit ee96f17
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 31 deletions.
10 changes: 5 additions & 5 deletions partner_pricelist_search/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -49,7 +49,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/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 <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_pricelist_search%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_pricelist_search%0Aversion:%2013.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.

Expand Down Expand Up @@ -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 <https://github.com/OCA/partner-contact/tree/12.0/partner_pricelist_search>`_ project on GitHub.
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/13.0/partner_pricelist_search>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
8 changes: 4 additions & 4 deletions partner_pricelist_search/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
13 changes: 7 additions & 6 deletions partner_pricelist_search/i18n/partner_pricelist_search.pot
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -31,14 +31,15 @@ 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 ""

#. 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 ""

6 changes: 3 additions & 3 deletions partner_pricelist_search/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Partner pricelist search</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/partner-contact/tree/12.0/partner_pricelist_search"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_pricelist_search"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/134/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/partner-contact/tree/13.0/partner_pricelist_search"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-partner_pricelist_search"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/134/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module adds search by pricelist field option in partners.</p>
<p>Also add a new smart button called “Customers” in pricelist form view to show
partners with that pricelist.</p>
Expand Down Expand Up @@ -395,7 +395,7 @@ <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/partner-contact/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_pricelist_search%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_pricelist_search%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -422,7 +422,7 @@ <h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/12.0/partner_pricelist_search">OCA/partner-contact</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/13.0/partner_pricelist_search">OCA/partner-contact</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
20 changes: 11 additions & 9 deletions partner_pricelist_search/views/product_pricelist_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
<field name="model">product.pricelist</field>
<field name="inherit_id" ref="product.product_pricelist_view" />
<field name="arch" type="xml">
<button name="toggle_active" position="before">
<button
name="show_pricelist_partners"
type="object"
string="Customers"
class="oe_stat_button"
icon="fa-users"
/>
</button>
<widget name="web_ribbon" position="before">
<div class="oe_button_box" name="button_box">
<button
name="show_pricelist_partners"
type="object"
string="Customers"
class="oe_stat_button"
icon="fa-users"
/>
</div>
</widget>
</field>
</record>
</odoo>

0 comments on commit ee96f17

Please sign in to comment.