[MIG] stock_move_location: Migration to 14.0

TT26454
This commit is contained in:
João Marques
2020-12-02 09:30:25 +00:00
parent f200666cd9
commit f589c4808d
9 changed files with 49 additions and 34 deletions

View File

@@ -14,19 +14,19 @@ Move Stock Location
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_move_location
:target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_move_location
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_move_location
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_move_location
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/13.0
:target: https://runbot.odoo-community.org/runbot/153/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
This module allows to move entire location of products from one place to
another and move only selected quants.
another and move only selected quantities.
**Table of contents**
@@ -37,7 +37,7 @@ Usage
=====
* A new menu item Stock > Move from location... opens a wizard
where 2 location can be specified.
where 2 locations can be specified.
* Select origin and destination locations and press "IMMEDIATE TRANSFER" or "PLANNED TRANSFER"
* Press `ADD ALL` button to add all products available
* Those lines can be edited. Move quantity can't be more than a max available quantity
@@ -53,7 +53,7 @@ If you want to transfer a full quant:
or `Inventory > Reporting > Inventory`, the quants view will be
opened.
* Select the quants which you want move to another location
* Select the quantities which you want move to another location
If you go to the Inventory Dashboard you can see the button "Move from location"
in each of the picking types (only applicable to internal transfers). Press it
@@ -75,7 +75,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_move_location%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_move_location%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@@ -92,11 +92,14 @@ Contributors
* Mathieu Vatel <mathieu@julius.fr>
* Mykhailo Panarin <m.panarin@mobilunity.com>
* Sergio Teruel <sergio.teruel@tecnativa.com>
* Joan Sisquella <joan.sisquella@forgeflow.com>
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
* Lois Rilo <lois.rilo@forgeflow.com>
* Héctor Villarreal <hector.villarreal@forgeflow.com>
* Tecnativa <tecnativa.com>
* Sergio Teruel
* João Marques
Maintainers
~~~~~~~~~~~
@@ -111,6 +114,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_move_location>`_ project on GitHub.
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_move_location>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -1,10 +1,11 @@
# Copyright (C) 2011 Julius Network Solutions SARL <contact@julius.fr>
# Copyright 2018 Camptocamp SA
# Copyright 2020 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "Move Stock Location",
"version": "13.0.1.0.4",
"version": "14.0.1.0.0",
"author": "Julius Network Solutions, Odoo Community Association (OCA)",
"summary": "This module allows to move all stock "
"in a stock location to an other one.",
@@ -14,6 +15,7 @@
"category": "Stock",
"data": [
"data/stock_quant_view.xml",
"security/ir.model.access.csv",
"views/stock_picking_type_views.xml",
"wizard/stock_move_location.xml",
],

View File

@@ -1,14 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- To move quants directly from qants views -->
<act_window
id="wiz_stock_quant_location_action"
name="Move to location..."
res_model="wiz.stock.move.location"
binding_model="stock.quant"
view_mode="form"
context="{'origin_location_disable': True}"
target="new"
groups="stock.group_stock_user"
/>
<record id="wiz_stock_quant_location_action" model="ir.actions.act_window">
<field name="name">Move to location...</field>
<field name="res_model">wiz.stock.move.location</field>
<field name="binding_model_id" ref="stock.model_stock_quant" />
<field name="view_mode">form</field>
<field name="context" eval="{'origin_location_disable': True}" />
<field name="target">new</field>
<field name="groups_id" eval="[(4, ref('stock.group_stock_user'))]" />
</record>
</odoo>

View File

@@ -1,7 +1,10 @@
* Mathieu Vatel <mathieu@julius.fr>
* Mykhailo Panarin <m.panarin@mobilunity.com>
* Sergio Teruel <sergio.teruel@tecnativa.com>
* Joan Sisquella <joan.sisquella@forgeflow.com>
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
* Lois Rilo <lois.rilo@forgeflow.com>
* Héctor Villarreal <hector.villarreal@forgeflow.com>
* Tecnativa <tecnativa.com>
* Sergio Teruel
* João Marques

View File

@@ -1,2 +1,2 @@
This module allows to move entire location of products from one place to
another and move only selected quants.
another and move only selected quantities.

View File

@@ -1,5 +1,5 @@
* A new menu item Stock > Move from location... opens a wizard
where 2 location can be specified.
where 2 locations can be specified.
* Select origin and destination locations and press "IMMEDIATE TRANSFER" or "PLANNED TRANSFER"
* Press `ADD ALL` button to add all products available
* Those lines can be edited. Move quantity can't be more than a max available quantity
@@ -15,7 +15,7 @@ If you want to transfer a full quant:
or `Inventory > Reporting > Inventory`, the quants view will be
opened.
* Select the quants which you want move to another location
* Select the quantities which you want move to another location
If you go to the Inventory Dashboard you can see the button "Move from location"
in each of the picking types (only applicable to internal transfers). Press it

View File

@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_wiz_stock_move_location,access wiz.stock.move.location,model_wiz_stock_move_location,stock.group_stock_user,1,1,1,1
access_wiz_stock_move_location_line,access wiz.stock.move.location.line,model_wiz_stock_move_location_line,stock.group_stock_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_wiz_stock_move_location access wiz.stock.move.location model_wiz_stock_move_location stock.group_stock_user 1 1 1 1
3 access_wiz_stock_move_location_line access wiz.stock.move.location.line model_wiz_stock_move_location_line stock.group_stock_user 1 1 1 1

View File

@@ -367,9 +367,9 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" 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/13.0/stock_move_location"><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-13-0/stock-logistics-warehouse-13-0-stock_move_location"><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/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" 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" 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/14.0/stock_move_location"><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-14-0/stock-logistics-warehouse-14-0-stock_move_location"><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/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows to move entire location of products from one place to
another and move only selected quants.</p>
another and move only selected quantities.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
@@ -388,7 +388,7 @@ another and move only selected quants.</p>
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
<ul class="simple">
<li>A new menu item Stock &gt; Move from location… opens a wizard
where 2 location can be specified.</li>
where 2 locations can be specified.</li>
<li>Select origin and destination locations and press “IMMEDIATE TRANSFER” or “PLANNED TRANSFER”</li>
<li>Press <cite>ADD ALL</cite> button to add all products available</li>
<li>Those lines can be edited. Move quantity cant be more than a max available quantity</li>
@@ -403,7 +403,7 @@ it will move only the available quantity at the button press</li>
<li>Go to <cite>Inventory &gt; Master Data &gt; Products</cite> and click “On hand” smart button
or <cite>Inventory &gt; Reporting &gt; Inventory</cite>, the quants view will be
opened.</li>
<li>Select the quants which you want move to another location</li>
<li>Select the quantities which you want move to another location</li>
</ul>
<p>If you go to the Inventory Dashboard you can see the button “Move from location”
in each of the picking types (only applicable to internal transfers). Press it
@@ -424,7 +424,7 @@ and you will be directed to the wizard.</p>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_move_location%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_move_location%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@@ -440,11 +440,15 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<ul class="simple">
<li>Mathieu Vatel &lt;<a class="reference external" href="mailto:mathieu&#64;julius.fr">mathieu&#64;julius.fr</a>&gt;</li>
<li>Mykhailo Panarin &lt;<a class="reference external" href="mailto:m.panarin&#64;mobilunity.com">m.panarin&#64;mobilunity.com</a>&gt;</li>
<li>Sergio Teruel &lt;<a class="reference external" href="mailto:sergio.teruel&#64;tecnativa.com">sergio.teruel&#64;tecnativa.com</a>&gt;</li>
<li>Joan Sisquella &lt;<a class="reference external" href="mailto:joan.sisquella&#64;forgeflow.com">joan.sisquella&#64;forgeflow.com</a>&gt;</li>
<li>Jordi Ballester Alomar &lt;<a class="reference external" href="mailto:jordi.ballester&#64;forgeflow.com">jordi.ballester&#64;forgeflow.com</a>&gt;</li>
<li>Lois Rilo &lt;<a class="reference external" href="mailto:lois.rilo&#64;forgeflow.com">lois.rilo&#64;forgeflow.com</a>&gt;</li>
<li>Héctor Villarreal &lt;<a class="reference external" href="mailto:hector.villarreal&#64;forgeflow.com">hector.villarreal&#64;forgeflow.com</a>&gt;</li>
<li>Tecnativa &lt;tecnativa.com&gt;<ul>
<li>Sergio Teruel</li>
<li>João Marques</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
@@ -454,7 +458,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_move_location">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_move_location">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
<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>
</div>
</div>

View File

@@ -13,13 +13,13 @@
<div>
<label for="edit_locations">
Edit Locations
</label>
</label>
<field name="edit_locations" widget="boolean_toggle" />
</div>
<div groups="stock.group_stock_multi_locations">
<label for="apply_putaway_strategy">
Apply putaway strategy for moving products
</label>
</label>
<field name="apply_putaway_strategy" widget="boolean_toggle" />
</div>
<group name="picking_type">
@@ -142,10 +142,11 @@
<field name="res_model">wiz.stock.move.location</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="context">{}</field>
</record>
<menuitem
id="menuitem_move_location"
string="Move from location..."
name="Move from location..."
parent="stock.menu_stock_warehouse_mgmt"
action="wiz_stock_move_location_action"
sequence="99"