Skip to content

Commit b4bf341

Browse files
[MIG] product_sold_by_delivery_week: Migration to 17.0
1 parent 6599eb4 commit b4bf341

6 files changed

Lines changed: 10 additions & 7 deletions

File tree

product_sold_by_delivery_week/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Contributors
111111
- Luis D. Lafaurie
112112

113113
- Jairo Llopis ([Moduon](https://www.moduon.team/))
114+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
114115

115116
Maintainers
116117
-----------

product_sold_by_delivery_week/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Product weekly sales hint",
66
"summary": "Adds a field that graphically hints the weekly product sales",
7-
"version": "16.0.1.0.1",
7+
"version": "17.0.1.0.0",
88
"development_status": "Beta",
99
"category": "Sale",
1010
"website": "https://github.com/OCA/sale-reporting",

product_sold_by_delivery_week/hooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
from odoo import SUPERUSER_ID, api
44

55

6-
def post_init_hook(cr, registry):
7-
env = api.Environment(cr, SUPERUSER_ID, {})
8-
env["product.product"]._action_recalculate_all_weekly_sold_delivered()
6+
def post_init_hook(env):
7+
envs = api.Environment(env.cr, SUPERUSER_ID, {})
8+
envs["product.product"]._action_recalculate_all_weekly_sold_delivered()

product_sold_by_delivery_week/readme/CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- César A. Sánchez
55
- Luis D. Lafaurie
66
- Jairo Llopis (\[Moduon\](<https://www.moduon.team/>))
7+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)

product_sold_by_delivery_week/static/description/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
456456
</ul>
457457
</li>
458458
<li>Jairo Llopis ([Moduon](<a class="reference external" href="https://www.moduon.team/">https://www.moduon.team/</a>))</li>
459+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a></li>
459460
</ul>
460461
</div>
461462
<div class="section" id="maintainers">

product_sold_by_delivery_week/tests/test_product_sold_by_delivery_week.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ def test_03_sale_stock_delivery_partial(self):
9090
self.order.action_confirm()
9191
self.assertTrue(
9292
self.order.picking_ids,
93-
'Sale Stock: no picking created for "invoice on delivery" '
94-
"storable products",
93+
"Sale Stock: no picking created for "
94+
'"invoice on delivery" storable products',
9595
)
9696
pick = self.order.picking_ids
97-
pick.move_ids.write({"quantity_done": 3})
97+
pick.move_ids.write({"quantity": 3})
9898
pick.button_validate()
9999
for line in pick.move_ids:
100100
line._action_done()

0 commit comments

Comments
 (0)