Skip to content

Commit b44f879

Browse files
[MIG] stock_picking_report_delivery_cost: Migration to 18.0
1 parent 9f334e8 commit b44f879

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

stock_picking_report_delivery_cost/README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ Contributors
7474
- Víctor Martínez
7575
- Pilar Vargas
7676

77+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
78+
79+
- Bhavesh Heliconia
80+
7781
Maintainers
7882
-----------
7983

stock_picking_report_delivery_cost/__manifest__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
{
55
"name": "Delivery cost in Picking Reports",
66
"summary": "Show delivery cost in delivery slip and picking operations " " reports",
7-
"version": "16.0.1.1.0",
7+
"version": "18.0.1.0.0",
88
"category": "Stock",
99
"website": "https://github.com/OCA/delivery-carrier",
1010
"author": "Tecnativa, Odoo Community Association (OCA)",
1111
"license": "AGPL-3",
1212
"installable": True,
13-
"depends": ["delivery"],
13+
"depends": ["stock_delivery"],
1414
"data": ["report/report_shipping.xml", "report/report_deliveryslip.xml"],
1515
}

stock_picking_report_delivery_cost/readme/CONTRIBUTORS.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
- Pedro M. Baeza
33
- Víctor Martínez
44
- Pilar Vargas
5+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
6+
- Bhavesh Heliconia

stock_picking_report_delivery_cost/report/report_deliveryslip.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<xpath expr="//div[@name='div_sched_date']" position="after">
88
<div
99
t-if="o.carrier_price_for_report"
10-
class="col-auto col-3 mw-100 mb-2"
10+
class="col col-3 mw-100 mb-2"
1111
name="div_carrier_price_for_report"
1212
>
1313
<strong>Delivery cost</strong>

stock_picking_report_delivery_cost/report/report_shipping.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<xpath expr="//div[@name='div_sched_date']" position="after">
77
<div
88
t-if="o.carrier_price_for_report"
9-
class="col-auto"
9+
class="col"
1010
name="div_carrier_price_for_report"
1111
>
12-
<strong>Delivery cost:</strong>
12+
<strong>Delivery cost</strong>
1313
<p t-field="o.carrier_price_for_report" />
1414
</div>
1515
</xpath>

stock_picking_report_delivery_cost/static/description/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
421421
<li>Pilar Vargas</li>
422422
</ul>
423423
</li>
424+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
425+
<li>Bhavesh Heliconia</li>
426+
</ul>
427+
</li>
424428
</ul>
425429
</div>
426430
<div class="section" id="maintainers">

stock_picking_report_delivery_cost/tests/test_stock_picking_report_delivery_cost.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2019 Tecnativa - Pedro M. Baeza
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33

4+
from odoo import Command
45
from odoo.tests import Form, common
56

67

@@ -34,9 +35,7 @@ def setUpClass(cls):
3435
"carrier_id": cls.carrier.id,
3536
"pricelist_id": cls.pricelist.id,
3637
"order_line": [
37-
(
38-
0,
39-
0,
38+
Command.create(
4039
{
4140
"name": cls.product.name,
4241
"product_id": cls.product.id,
@@ -67,6 +66,6 @@ def test_carrier_price_for_report_after(self):
6766
picking = self.order.picking_ids
6867
self.assertAlmostEqual(picking.carrier_price_for_report, 0)
6968
move = picking.move_ids_without_package
70-
move.quantity_done = move.product_qty
69+
move.quantity = move.product_qty
7170
picking.button_validate()
7271
self.assertAlmostEqual(picking.carrier_price_for_report, 5)

0 commit comments

Comments
 (0)