Skip to content

Commit 56aed70

Browse files
Urvisha-OSImathieudelva
authored andcommitted
[MIG] 16.0-mig-stock_archive_constraint: Migration to 16.0
[FIX] test fails issue
1 parent b890e7d commit 56aed70

7 files changed

Lines changed: 22 additions & 14 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../stock_archive_constraint
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

stock_archive_constraint/README.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Stock archive constraint
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%2Fstock--logistics--warehouse-lightgray.png?logo=github
17-
:target: https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_archive_constraint
17+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_archive_constraint
1818
:alt: OCA/stock-logistics-warehouse
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_archive_constraint
20+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_archive_constraint
2121
:alt: Translate me on Weblate
22-
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/153/15.0
24-
:alt: Try me on Runbot
22+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
23+
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/stock-logistics-warehouse&target_branch=16.0
24+
:alt: Try me on Runboat
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
2727

@@ -45,7 +45,7 @@ Bug Tracker
4545
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
4646
In case of trouble, please check there if your issue has already been reported.
4747
If you spotted it first, help us smashing it by providing a detailed and welcomed
48-
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_archive_constraint%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
48+
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_archive_constraint%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4949

5050
Do not contact contributors directly about support or help with technical issues.
5151

@@ -65,6 +65,7 @@ Contributors
6565
* Carlos Daudén
6666
* Víctor Martínez
6767
* César A. Sánchez
68+
* Urvisha Desai <udesai@opensourceintegrators.com>
6869

6970
Maintainers
7071
~~~~~~~~~~~
@@ -87,6 +88,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
8788

8889
|maintainer-victoralmau|
8990

90-
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_archive_constraint>`_ project on GitHub.
91+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_archive_constraint>`_ project on GitHub.
9192

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

stock_archive_constraint/__manifest__.py

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

44
{
55
"name": "Stock archive constraint",
6-
"version": "15.0.1.0.1",
6+
"version": "16.0.1.0.0",
77
"license": "AGPL-3",
88
"website": "https://github.com/OCA/stock-logistics-warehouse",
99
"author": "Tecnativa, Odoo Community Association (OCA)",

stock_archive_constraint/readme/CONTRIBUTORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
* Carlos Daudén
44
* Víctor Martínez
55
* César A. Sánchez
6+
* Urvisha Desai <udesai@opensourceintegrators.com>

stock_archive_constraint/static/description/index.html

Lines changed: 5 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>Stock archive constraint</title>
88
<style type="text/css">
99

@@ -367,7 +367,7 @@ <h1 class="title">Stock archive constraint</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="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/stock-logistics-warehouse/tree/15.0/stock_archive_constraint"><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" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_archive_constraint"><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/153/15.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="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/stock-logistics-warehouse/tree/16.0/stock_archive_constraint"><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" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_archive_constraint"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runboat.odoo-community.org/webui/builds.html?repo=OCA/stock-logistics-warehouse&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
371371
<p>Allows to block archiving products with associated stock.quant or stock.move.
372372
Allows to block archiving locations with associated stock.quant or stock.move.</p>
373373
<p><strong>Table of contents</strong></p>
@@ -395,7 +395,7 @@ <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
395395
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
396396
In case of trouble, please check there if your issue has already been reported.
397397
If you spotted it first, help us smashing it by providing a detailed and welcomed
398-
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_archive_constraint%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398+
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_archive_constraint%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
399399
<p>Do not contact contributors directly about support or help with technical issues.</p>
400400
</div>
401401
<div class="section" id="credits">
@@ -416,6 +416,7 @@ <h2><a class="toc-backref" href="#id5">Contributors</a></h2>
416416
<li>Carlos Daudén</li>
417417
<li>Víctor Martínez</li>
418418
<li>César A. Sánchez</li>
419+
<li>Urvisha Desai &lt;<a class="reference external" href="mailto:udesai&#64;opensourceintegrators.com">udesai&#64;opensourceintegrators.com</a>&gt;</li>
419420
</ul>
420421
</blockquote>
421422
</div>
@@ -428,7 +429,7 @@ <h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
428429
promote its widespread use.</p>
429430
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
430431
<p><a class="reference external" href="https://github.com/victoralmau"><img alt="victoralmau" src="https://github.com/victoralmau.png?size=40px" /></a></p>
431-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_archive_constraint">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
432+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_archive_constraint">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
432433
<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>
433434
</div>
434435
</div>

stock_archive_constraint/tests/test_location_archive_constraint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def _create_stock_quant(self, location_id, product_id, qty):
4848

4949
def _create_stock_move(self, location_id, location_dest_id, product_id, qty):
5050
stock_move_form = Form(self.env["stock.move"])
51-
stock_move_form.name = product_id.display_name
5251
stock_move_form.location_id = location_id
5352
stock_move_form.location_dest_id = location_dest_id
5453
stock_move_form.product_id = product_id
@@ -63,7 +62,6 @@ def _create_stock_move_line(self, location_id, location_dest_id, product_id, qty
6362
"location_id": location_id.id,
6463
"location_dest_id": location_dest_id.id,
6564
"product_id": product_id.id,
66-
"product_uom_qty": qty,
6765
"product_uom_id": product_id.uom_id.id,
6866
"qty_done": qty,
6967
"state": "done",

0 commit comments

Comments
 (0)