Skip to content

Commit daa2219

Browse files
phuctranfxvnhailangvn
authored andcommitted
[MIG] sale_order_carrier_auto_assign: Migration to 14.0
1 parent ede1e73 commit daa2219

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

sale_order_carrier_auto_assign/README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Sale Order Carrier Auto Assign
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/13.0/sale_order_carrier_auto_assign
17+
:target: https://github.com/OCA/sale-workflow/tree/14.0/sale_order_carrier_auto_assign
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-13-0/sale-workflow-13-0-sale_order_carrier_auto_assign
20+
:target: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_carrier_auto_assign
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/13.0
23+
:target: https://runbot.odoo-community.org/runbot/167/14.0
2424
:alt: Try me on Runbot
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -43,7 +43,7 @@ Bug Tracker
4343
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
4444
In case of trouble, please check there if your issue has already been reported.
4545
If you spotted it first, help us smashing it by providing a detailed and welcomed
46-
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_carrier_auto_assign%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
46+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_carrier_auto_assign%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4747

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

@@ -59,6 +59,8 @@ Contributors
5959
~~~~~~~~~~~~
6060

6161
* Akim Juillerat <[email protected]>
62+
* Son (Ho Dac) <[email protected]>
63+
* Phuc (Tran Thanh) <[email protected]>
6264

6365
Maintainers
6466
~~~~~~~~~~~
@@ -73,6 +75,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
7375
mission is to support the collaborative development of Odoo features and
7476
promote its widespread use.
7577

76-
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/13.0/sale_order_carrier_auto_assign>`_ project on GitHub.
78+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/14.0/sale_order_carrier_auto_assign>`_ project on GitHub.
7779

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

sale_order_carrier_auto_assign/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Sale Order Carrier Auto Assign",
55
"summary": "Auto assign delivery carrier on sale order confirmation",
6-
"version": "13.0.1.1.0",
6+
"version": "14.0.1.0.0",
77
"development_status": "Alpha",
88
"category": "Operations/Inventory/Delivery",
99
"website": "https://github.com/OCA/sale-workflow",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
* Akim Juillerat <[email protected]>
2+
* Son (Ho Dac) <[email protected]>
3+
* Phuc (Tran Thanh) <[email protected]>

sale_order_carrier_auto_assign/readme/CREDITS.rst

Whitespace-only changes.

sale_order_carrier_auto_assign/static/description/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
6+
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
77
<title>Sale Order Carrier Auto Assign</title>
88
<style type="text/css">
99

@@ -367,7 +367,7 @@ <h1 class="title">Sale Order Carrier Auto Assign</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="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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_order_carrier_auto_assign"><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_order_carrier_auto_assign"><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>
370+
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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/14.0/sale_order_carrier_auto_assign"><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-14-0/sale-workflow-14-0-sale_order_carrier_auto_assign"><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/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
371371
<p>This module assigns automatically delivery carrier on sale order confirmation.</p>
372372
<div class="admonition important">
373373
<p class="first admonition-title">Important</p>
@@ -392,7 +392,7 @@ <h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
392392
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
393393
In case of trouble, please check there if your issue has already been reported.
394394
If you spotted it first, help us smashing it by providing a detailed and welcomed
395-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_carrier_auto_assign%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
395+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_carrier_auto_assign%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
396396
<p>Do not contact contributors directly about support or help with technical issues.</p>
397397
</div>
398398
<div class="section" id="credits">
@@ -407,6 +407,8 @@ <h2><a class="toc-backref" href="#id3">Authors</a></h2>
407407
<h2><a class="toc-backref" href="#id4">Contributors</a></h2>
408408
<ul class="simple">
409409
<li>Akim Juillerat &lt;<a class="reference external" href="mailto:akim.juillerat&#64;camptocamp.com">akim.juillerat&#64;camptocamp.com</a>&gt;</li>
410+
<li>Son (Ho Dac) &lt;<a class="reference external" href="mailto:hodacson.6491&#64;gmail.com">hodacson.6491&#64;gmail.com</a>&gt;</li>
411+
<li>Phuc (Tran Thanh) &lt;<a class="reference external" href="mailto:phuc&#64;trobz.com">phuc&#64;trobz.com</a>&gt;</li>
410412
</ul>
411413
</div>
412414
<div class="section" id="maintainers">
@@ -416,7 +418,7 @@ <h2><a class="toc-backref" href="#id5">Maintainers</a></h2>
416418
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
417419
mission is to support the collaborative development of Odoo features and
418420
promote its widespread use.</p>
419-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/13.0/sale_order_carrier_auto_assign">OCA/sale-workflow</a> project on GitHub.</p>
421+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/14.0/sale_order_carrier_auto_assign">OCA/sale-workflow</a> project on GitHub.</p>
420422
<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>
421423
</div>
422424
</div>

sale_order_carrier_auto_assign/tests/test_sale_order_carrier_auto_assign.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ def test_sale_order_carrier_auto_assign(self):
2929
self.assertEqual(self.sale_order.state, "sale")
3030
self.assertEqual(self.sale_order.carrier_id, self.normal_delivery_carrier)
3131
delivery_line = self.sale_order.order_line.filtered(lambda l: l.is_delivery)
32-
self.assertEqual(
33-
delivery_line.price_unit, self.normal_delivery_carrier.fixed_price
34-
)
32+
delivery_rate = self.normal_delivery_carrier.rate_shipment(self.sale_order)
33+
self.assertEqual(delivery_line.price_unit, delivery_rate["carrier_price"])
3534

3635
def test_sale_order_carrier_auto_assign_no_carrier(self):
3736
self.partner.property_delivery_carrier_id = False

0 commit comments

Comments
 (0)