Skip to content

Commit 4116a69

Browse files
kongrattapongalexis-via
authored andcommitted
[MIG] sale_commercial_partner: Migration to 13.0
[UPD] Update sale_commercial_partner.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-13.0/sale-workflow-13.0-sale_commercial_partner Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_commercial_partner/
1 parent c470b68 commit 4116a69

26 files changed

+54
-49
lines changed

sale_commercial_partner/README.rst

+8-6
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,21 @@ Sale Commercial Partner
1414
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1515
:alt: License: AGPL-3
1616
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
17-
:target: https://github.com/OCA/sale-workflow/tree/12.0/sale_commercial_partner
17+
:target: https://github.com/OCA/sale-workflow/tree/13.0/sale_commercial_partner
1818
:alt: OCA/sale-workflow
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_commercial_partner
20+
:target: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_commercial_partner
2121
:alt: Translate me on Weblate
2222
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/167/12.0
23+
:target: https://runbot.odoo-community.org/runbot/167/13.0
2424
:alt: Try me on Runbot
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
2727

2828
This module adds a related stored field *Commercial Entity* on sale orders.
2929

30-
This module is the twin brother of the OCA module *purchase_commercial_partner* located in the `purchase-workflow project <https://github.com/OCA/purchase-workflow/>`_.
30+
This module is the twin brother of the OCA module *purchase_commercial_partner*
31+
located in the `purchase-workflow project <https://github.com/OCA/purchase-workflow/>`_.
3132

3233
**Table of contents**
3334

@@ -49,7 +50,7 @@ Bug Tracker
4950
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
5051
In case of trouble, please check there if your issue has already been reported.
5152
If you spotted it first, help us smashing it by providing a detailed and welcomed
52-
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_commercial_partner%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
53+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_commercial_partner%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5354

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

@@ -66,6 +67,7 @@ Contributors
6667

6768
* Alexis de Lattre <alexis.delattre@akretion.com>
6869
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
70+
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
6971

7072
Maintainers
7173
~~~~~~~~~~~
@@ -80,6 +82,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8082
mission is to support the collaborative development of Odoo features and
8183
promote its widespread use.
8284

83-
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/12.0/sale_commercial_partner>`_ project on GitHub.
85+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/13.0/sale_commercial_partner>`_ project on GitHub.
8486

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

sale_commercial_partner/__manifest__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
{
66
"name": "Sale Commercial Partner",
77
"summary": "Add stored related field 'Commercial Entity' on sale orders",
8-
"version": "12.0.1.0.0",
8+
"version": "13.0.1.0.0",
99
"author": "Akretion,Odoo Community Association (OCA)",
1010
"website": "https://github.com/OCA/sale-workflow",
1111
"category": "Sales",
1212
"license": "AGPL-3",
1313
"contributors": ["Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>"],
1414
"depends": ["sale"],
15-
"data": ["views/sale.xml"],
15+
"data": ["views/sale_views.xml"],
1616
"installable": True,
1717
}

sale_commercial_partner/i18n/ca_ES.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/de.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/el_GR.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/es.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/es_VE.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/fi.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/fr.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/hr.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/hu.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/it.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/nl.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/pt_BR.po

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ msgstr "Entidade Comercial"
2525

2626
#. module: sale_commercial_partner
2727
#: model:ir.model,name:sale_commercial_partner.model_sale_order
28-
msgid "Sale Order"
28+
#, fuzzy
29+
#| msgid "Sale Order"
30+
msgid "Sales Order"
2931
msgstr "Ordem de Venda"
3032

3133
#~ msgid "Quotation"

sale_commercial_partner/i18n/ro.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/sale_commercial_partner.pot

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Translation of Odoo Server.
22
# This file contains the translation of the following modules:
3-
# * sale_commercial_partner
3+
# * sale_commercial_partner
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 12.0\n"
7+
"Project-Id-Version: Odoo Server 13.0\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"Last-Translator: <>\n"
9+
"Last-Translator: \n"
1010
"Language-Team: \n"
1111
"MIME-Version: 1.0\n"
1212
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,6 +21,5 @@ msgstr ""
2121

2222
#. module: sale_commercial_partner
2323
#: model:ir.model,name:sale_commercial_partner.model_sale_order
24-
msgid "Sale Order"
24+
msgid "Sales Order"
2525
msgstr ""
26-

sale_commercial_partner/i18n/sl_SI.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/tr.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/vi_VN.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Commercial Entity"
2424

2525
#. module: sale_commercial_partner
2626
#: model:ir.model,name:sale_commercial_partner.model_sale_order
27-
msgid "Sale Order"
27+
msgid "Sales Order"
2828
msgstr ""
2929

3030
#~ msgid "Quotation"

sale_commercial_partner/i18n/zh_CN.po

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ msgstr "商业实体"
2525

2626
#. module: sale_commercial_partner
2727
#: model:ir.model,name:sale_commercial_partner.model_sale_order
28-
msgid "Sale Order"
28+
#, fuzzy
29+
#| msgid "Sale Order"
30+
msgid "Sales Order"
2931
msgstr "销售订单"
3032

3133
#~ msgid "Quotation"
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
21
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
32

43
from . import sale

sale_commercial_partner/models/sale.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class SaleOrder(models.Model):
88
_inherit = "sale.order"
99

1010
commercial_partner_id = fields.Many2one(
11-
"res.partner",
11+
comodel_name="res.partner",
12+
string="Commercial Entity",
1213
related="partner_id.commercial_partner_id",
1314
store=True,
14-
string="Commercial Entity",
1515
index=True,
1616
)
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
* Alexis de Lattre <alexis.delattre@akretion.com>
22
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
3+
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
This module adds a related stored field *Commercial Entity* on sale orders.
22

3-
This module is the twin brother of the OCA module *purchase_commercial_partner* located in the `purchase-workflow project <https://github.com/OCA/purchase-workflow/>`_.
3+
This module is the twin brother of the OCA module *purchase_commercial_partner*
4+
located in the `purchase-workflow project <https://github.com/OCA/purchase-workflow/>`_.

sale_commercial_partner/static/description/index.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,10 @@ <h1 class="title">Sale Commercial Partner</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
370-
<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/sale-workflow/tree/12.0/sale_commercial_partner"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_commercial_partner"><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/167/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
370+
<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/sale-workflow/tree/13.0/sale_commercial_partner"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_commercial_partner"><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/167/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
371371
<p>This module adds a related stored field <em>Commercial Entity</em> on sale orders.</p>
372-
<p>This module is the twin brother of the OCA module <em>purchase_commercial_partner</em> located in the <a class="reference external" href="https://github.com/OCA/purchase-workflow/">purchase-workflow project</a>.</p>
372+
<p>This module is the twin brother of the OCA module <em>purchase_commercial_partner</em>
373+
located in the <a class="reference external" href="https://github.com/OCA/purchase-workflow/">purchase-workflow project</a>.</p>
373374
<p><strong>Table of contents</strong></p>
374375
<div class="contents local topic" id="contents">
375376
<ul class="simple">
@@ -397,7 +398,7 @@ <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
397398
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
398399
In case of trouble, please check there if your issue has already been reported.
399400
If you spotted it first, help us smashing it by providing a detailed and welcomed
400-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_commercial_partner%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_commercial_partner%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401402
<p>Do not contact contributors directly about support or help with technical issues.</p>
402403
</div>
403404
<div class="section" id="credits">
@@ -413,6 +414,7 @@ <h2><a class="toc-backref" href="#id5">Contributors</a></h2>
413414
<ul class="simple">
414415
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
415416
<li>Serpent Consulting Services Pvt. Ltd. &lt;<a class="reference external" href="mailto:support&#64;serpentcs.com">support&#64;serpentcs.com</a>&gt;</li>
417+
<li>Rattapong Chokmasermkul &lt;<a class="reference external" href="mailto:rattapongc&#64;ecosoft.co.th">rattapongc&#64;ecosoft.co.th</a>&gt;</li>
416418
</ul>
417419
</div>
418420
<div class="section" id="maintainers">
@@ -422,7 +424,7 @@ <h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
422424
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
423425
mission is to support the collaborative development of Odoo features and
424426
promote its widespread use.</p>
425-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/12.0/sale_commercial_partner">OCA/sale-workflow</a> project on GitHub.</p>
427+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/13.0/sale_commercial_partner">OCA/sale-workflow</a> project on GitHub.</p>
426428
<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>
427429
</div>
428430
</div>
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
31
<odoo>
4-
52
<record id="view_order_form" model="ir.ui.view">
63
<field name="name">commercial.partner.sale.order.form</field>
74
<field name="model">sale.order</field>
8-
<field name="inherit_id" ref="sale.view_order_form"/>
5+
<field name="inherit_id" ref="sale.view_order_form" />
96
<field name="arch" type="xml">
107
<field name="partner_id" position="before">
11-
<field name="commercial_partner_id" invisible="1"/>
8+
<field name="commercial_partner_id" invisible="1" />
129
</field>
1310
</field>
1411
</record>
15-
1612
<record id="view_sales_order_filter" model="ir.ui.view">
1713
<field name="name">commercial.partner.sale.order.search</field>
1814
<field name="model">sale.order</field>
19-
<field name="inherit_id" ref="sale.view_sales_order_filter"/>
15+
<field name="inherit_id" ref="sale.view_sales_order_filter" />
2016
<field name="arch" type="xml">
21-
<filter context="{'group_by':'partner_id'}" position="before">
22-
<filter name="commercial_partner_groupby"
17+
<filter name="customer" position="before">
18+
<filter
19+
name="commercial_partner_groupby"
2320
string="Commercial Entity"
24-
context="{'group_by': 'commercial_partner_id'}"/>
21+
context="{'group_by': 'commercial_partner_id'}"
22+
/>
2523
</filter>
2624
</field>
2725
</record>
28-
2926
</odoo>

0 commit comments

Comments
 (0)