Skip to content

Commit 2aab40c

Browse files
OCA-git-botmav-adhoc
authored andcommitted
[MIG] stock_quant_manual_assign: Migration to 18.0
1 parent dceb8f4 commit 2aab40c

File tree

6 files changed

+12
-37
lines changed

6 files changed

+12
-37
lines changed

stock_quant_manual_assign/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Stock - Manual Quant Assignment
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%2Fstock--logistics--warehouse-lightgray.png?logo=github
20-
:target: https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_quant_manual_assign
20+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_quant_manual_assign
2121
:alt: OCA/stock-logistics-warehouse
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_quant_manual_assign
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_quant_manual_assign
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/stock-logistics-warehouse&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=18.0
2727
:alt: Try me on Runboat
2828

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

5555
Do not contact contributors directly about support or help with technical issues.
5656

@@ -99,6 +99,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9999
mission is to support the collaborative development of Odoo features and
100100
promote its widespread use.
101101

102-
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_quant_manual_assign>`_ project on GitHub.
102+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_quant_manual_assign>`_ project on GitHub.
103103

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

stock_quant_manual_assign/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
{
99
"name": "Stock - Manual Quant Assignment",
10-
"version": "17.0.1.0.0",
10+
"version": "18.0.1.0.0",
1111
"category": "Warehouse",
1212
"license": "AGPL-3",
1313
"author": "AvanzOSC, "

stock_quant_manual_assign/static/description/index.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Stock - Manual Quant Assignment</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:61ae882314c4613160958d9bd491d47ace4de50324aa353684d2d62c4fac34b0
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" 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 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/stock-logistics-warehouse/tree/17.0/stock_quant_manual_assign"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_quant_manual_assign"><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/stock-logistics-warehouse&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="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/stock-logistics-warehouse/tree/18.0/stock_quant_manual_assign"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_quant_manual_assign"><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/stock-logistics-warehouse&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 allows you to manually change the automatic quant selection.</p>
374374
<p><strong>Table of contents</strong></p>
375375
<div class="contents local topic" id="contents">
@@ -398,7 +398,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
398398
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
399399
In case of trouble, please check there if your issue has already been reported.
400400
If you spotted it first, help us to smash it by providing a detailed and welcomed
401-
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_manual_assign%0Aversion:%2017.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/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_manual_assign%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
402402
<p>Do not contact contributors directly about support or help with technical issues.</p>
403403
</div>
404404
<div class="section" id="credits">
@@ -433,10 +433,6 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
433433
<li>Tony Gu &lt;<a class="reference external" href="mailto:tony&#64;openerp.cn">tony&#64;openerp.cn</a>&gt;</li>
434434
</ul>
435435
</li>
436-
<li><a class="reference external" href="https://www.openerp.cn">Shine IT</a>:<ul>
437-
<li>Tony Gu &lt;<a class="reference external" href="mailto:tony&#64;openerp.cn">tony&#64;openerp.cn</a>&gt;</li>
438-
</ul>
439-
</li>
440436
</ul>
441437
</div>
442438
<div class="section" id="maintainers">
@@ -448,7 +444,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
448444
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
449445
mission is to support the collaborative development of Odoo features and
450446
promote its widespread use.</p>
451-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_quant_manual_assign">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
447+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_quant_manual_assign">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
452448
<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>
453449
</div>
454450
</div>

stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setUpClass(cls):
1717
cls.quant_assign_wizard = cls.env["assign.manual.quants"]
1818
cls.ModelDataObj = cls.env["ir.model.data"]
1919
cls.product = cls.env["product.product"].create(
20-
{"name": "Product 4 test", "type": "product"}
20+
{"name": "Product 4 test", "type": "consu", "is_storable": True}
2121
)
2222
cls.location_src = cls.env.ref("stock.stock_location_locations_virtual")
2323
cls.location_dst = cls.env.ref("stock.stock_location_customers")

stock_quant_manual_assign/views/stock_move_view.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<field name="model">stock.picking</field>
66
<field name="inherit_id" ref="stock.view_picking_form" />
77
<field name="arch" type="xml">
8-
<button name="action_assign_serial" position="before">
8+
<field name="lot_ids" position="after">
99
<button
1010
name="%(assign_manual_quants_action)d"
1111
type="action"
@@ -14,7 +14,7 @@
1414
options='{"warn": true}'
1515
attrs="{'invisible':['|',('picking_code','=','incoming'),('state','not in',('confirmed','assigned','partially_available'))]}"
1616
/>
17-
</button>
17+
</field>
1818
</field>
1919
</record>
2020
</odoo>

stock_quant_manual_assign/wizard/assign_manual_quants_view.xml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,6 @@
55
<field name="model">assign.manual.quants</field>
66
<field name="arch" type="xml">
77
<form>
8-
<field name='quants_lines' colspan="4">
9-
<tree editable="top" delete="0" create="0">
10-
<field name="lot_id" groups="stock.group_production_lot" />
11-
<field name="quant_id" column_invisible="1" />
12-
<field name="package_id" groups="stock.group_tracking_lot" />
13-
<field name="owner_id" groups="stock.group_tracking_owner" />
14-
<field name="location_id" />
15-
<field name="on_hand" force_save="1" />
16-
<field name="reserved" force_save="1" />
17-
<field
18-
name="selected"
19-
widget="boolean_toggle"
20-
options="{'autosave': False}"
21-
/>
22-
<field
23-
name="qty"
24-
attrs="{'readonly':[('selected', '=', False)]}"
25-
sum="qty"
26-
/>
27-
</tree>
28-
</field>
298
<group col='4' colspan="4">
309
<field name="move_qty" colspan="2" readonly="1" />
3110
<field name="lines_qty" invisible="1" />

0 commit comments

Comments
 (0)