Skip to content

Commit 733954d

Browse files
[MIG] sale_order_product_availability_inline: Migration to version 18.0
1 parent 73fb6b6 commit 733954d

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

sale_order_product_availability_inline/README.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Sale Order Product Availability Inline
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/sale-workflow/tree/17.0/sale_order_product_availability_inline
20+
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_order_product_availability_inline
2121
:alt: OCA/sale-workflow
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_product_availability_inline
23+
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_product_availability_inline
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -56,7 +56,7 @@ Bug Tracker
5656
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
5757
In case of trouble, please check there if your issue has already been reported.
5858
If you spotted it first, help us to smash it by providing a detailed and welcomed
59-
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_product_availability_inline%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
59+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_product_availability_inline%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6060

6161
Do not contact contributors directly about support or help with technical issues.
6262

@@ -77,6 +77,7 @@ Contributors
7777
- Pedro M. Baeza
7878
- César A. Sánchez
7979
- Luis D. Lafaurie
80+
- Carlos Lopez
8081

8182
- `Pesol <https://www.pesol.es>`__:
8283

@@ -107,6 +108,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
107108

108109
|maintainer-ernestotejeda|
109110

110-
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/17.0/sale_order_product_availability_inline>`_ project on GitHub.
111+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_order_product_availability_inline>`_ project on GitHub.
111112

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

sale_order_product_availability_inline/__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 Product Availability Inline",
55
"summary": "Show product availability in sales order line product " "drop-down.",
6-
"version": "17.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"development_status": "Mature",
88
"category": "Sales Management",
99
"website": "https://github.com/OCA/sale-workflow",

sale_order_product_availability_inline/readme/CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Pedro M. Baeza
44
- César A. Sánchez
55
- Luis D. Lafaurie
6+
- Carlos Lopez
67
- [Pesol](https://www.pesol.es):
78
- Jonathan Oscategui Taza \<<info@pesol.es>\>
89
- [Sodexis](https://www.sodexis.com):

sale_order_product_availability_inline/static/description/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Sale Order Product Availability Inline</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:688f99946dbceb8ec2c60c5531dc75a77c3160f942ffedce72756f72ef59a651
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" 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 image-reference" href="https://github.com/OCA/sale-workflow/tree/17.0/sale_order_product_availability_inline"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_product_availability_inline"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" 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 image-reference" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_order_product_availability_inline"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_product_availability_inline"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module extends the functionality of ‘Sales and Warehouse
374374
Management’ to show you the stock availability (Free To Use Quantity) of
375375
each product as part of its name in the product drop-down widget on
@@ -404,7 +404,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
404404
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
405405
In case of trouble, please check there if your issue has already been reported.
406406
If you spotted it first, help us to smash it by providing a detailed and welcomed
407-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_product_availability_inline%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
407+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_product_availability_inline%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
408408
<p>Do not contact contributors directly about support or help with technical issues.</p>
409409
</div>
410410
<div class="section" id="credits">
@@ -423,6 +423,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
423423
<li>Pedro M. Baeza</li>
424424
<li>César A. Sánchez</li>
425425
<li>Luis D. Lafaurie</li>
426+
<li>Carlos Lopez</li>
426427
</ul>
427428
</li>
428429
<li><a class="reference external" href="https://www.pesol.es">Pesol</a>:<ul>
@@ -446,7 +447,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
446447
promote its widespread use.</p>
447448
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
448449
<p><a class="reference external image-reference" href="https://github.com/ernestotejeda"><img alt="ernestotejeda" src="https://github.com/ernestotejeda.png?size=40px" /></a></p>
449-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/17.0/sale_order_product_availability_inline">OCA/sale-workflow</a> project on GitHub.</p>
450+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_order_product_availability_inline">OCA/sale-workflow</a> project on GitHub.</p>
450451
<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>
451452
</div>
452453
</div>

sale_order_product_availability_inline/tests/test_sale_order_product_availability_inline.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def setUpClass(cls):
1515
cls.product = cls.obj_product.create(
1616
{
1717
"name": "Test Product - sopai",
18-
"type": "product",
18+
"type": "consu",
19+
"is_storable": True,
1920
"default_code": "PRODSOPAI",
2021
}
2122
)
@@ -43,13 +44,13 @@ def setUpClass(cls):
4344

4445
def test_sale_order_product_rec_name(self):
4546
self.assertEqual(
46-
self.product.with_context(warehouse=self.warehouse1.id).free_qty,
47+
self.product.with_context(warehouse_id=self.warehouse1.id).free_qty,
4748
10.0,
4849
)
4950
self.env.ref("product.decimal_product_uom").write({"digits": 3})
5051
sale_order_form = Form(
5152
self.env["sale.order"].with_context(
52-
warehouse=self.warehouse1.id, so_product_stock_inline=True
53+
warehouse_id=self.warehouse1.id, so_product_stock_inline=True
5354
)
5455
)
5556
with sale_order_form.order_line.new() as line_form:

sale_order_product_availability_inline/views/sale_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<field name="inherit_id" ref="sale.view_order_form" />
88
<field name="arch" type="xml">
99
<xpath
10-
expr="//field[@name='order_line']/tree//field[@name='product_id']"
10+
expr="//field[@name='order_line']/list//field[@name='product_id']"
1111
position="attributes"
1212
>
1313
<attribute name="context" operation="update">

0 commit comments

Comments
 (0)