forked from OCA/stock-logistics-warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OCA#332 from acsone/10.0-stock_auto_move-cpi
[10.0] port stock_auto_move to 10.0
- Loading branch information
Showing
29 changed files
with
1,701 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_auto_move |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
========================= | ||
Automatic Move Processing | ||
========================= | ||
|
||
This modules adds the possibility to have move automatically processed as soon | ||
as the products are available in the move source location. | ||
|
||
It also adds the possibility to define the move as being automatic in | ||
a procurement rule. | ||
|
||
Automatic moves are triggered by previous move when the move is chained | ||
or by the scheduler otherwise. | ||
|
||
Note that automatic moves are given a procurement group name "Automatic", | ||
whatever the user or the procurement rule selects. | ||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
* Click on install button | ||
|
||
Configuration | ||
============= | ||
|
||
To configure this module, you need to: | ||
|
||
* Set the flag "Automatic" on procurement rule | ||
|
||
Usage | ||
===== | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/154/8.0 | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/stock-logistics-workflow/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-workflow/issues/new?body=module:%20 | ||
stock_auto_move%0Aversion:%20 | ||
10.0%0A%0A**Steps%20to%20reproduce**%0A-%20.. | ||
.%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Nicolas Piganeau <[email protected]> | ||
* Cédric Pigeon <[email protected]> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit http://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2014 NDP Systèmes (<http://www.ndp-systemes.fr>) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
'name': 'Automatic Move Processing', | ||
'version': '10.0.1.0.0', | ||
'author': 'NDP Systèmes, Odoo Community Association (OCA)', | ||
'category': 'Warehouse', | ||
'website': 'http://www.ndp-systemes.fr', | ||
'depends': ['stock'], | ||
'data': [ | ||
'data/stock_auto_move_data.xml', | ||
'views/stock_auto_move_view.xml', | ||
], | ||
'demo': [ | ||
'demo/stock_auto_move_demo.xml', | ||
], | ||
'installable': True, | ||
'auto_install': False, | ||
'license': 'AGPL-3', | ||
'application': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record model="procurement.group" id="automatic_group"> | ||
<field name="name">Automatic</field> | ||
<field name="move_type">direct</field> | ||
</record> | ||
</odoo> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<!-- #### Procurements ###### --> | ||
<record id="stock_location_a" model="stock.location"> | ||
<field name="name">Location 1</field> | ||
<field name="location_id" ref="stock.stock_location_locations"/> | ||
<field name="active">1</field> | ||
<field name="usage">internal</field> | ||
</record> | ||
|
||
<record id="stock_location_b" model="stock.location"> | ||
<field name="name">Location 2</field> | ||
<field name="location_id" ref="stock.stock_location_locations"/> | ||
<field name="active">1</field> | ||
<field name="usage">internal</field> | ||
</record> | ||
|
||
<record id="stock_location_c" model="stock.location"> | ||
<field name="name">Location 3</field> | ||
<field name="location_id" ref="stock.stock_location_locations"/> | ||
<field name="active">1</field> | ||
<field name="usage">internal</field> | ||
</record> | ||
|
||
<record model="stock.location.route" id="test_route"> | ||
<field name="name">Test route</field> | ||
<field name="active">1</field> | ||
<field name="sequence">20</field> | ||
<field name="product_categ_selectable"/> | ||
<field name="product_selectable">1</field> | ||
<field name="company_id"/> | ||
</record> | ||
|
||
<record model="procurement.rule" id="procurement_rule_a_to_b"> | ||
<field name="name">1 => 2 with auto_move</field> | ||
<field name="active">1</field> | ||
<field name="action">move</field> | ||
<field name="location_id" ref="stock_location_b"/> | ||
<field name="warehouse_id" ref="stock.warehouse0"/> | ||
<field name="route_id" ref="test_route"/> | ||
<field name="group_propagation_option">propagate</field> | ||
<field name="propagate">1</field> | ||
<field name="picking_type_id" ref="stock.picking_type_internal"/> | ||
<field name="procure_method">make_to_stock</field> | ||
<field name="delay">0</field> | ||
<field name="auto_move" eval="True"/> | ||
<field name="location_src_id" ref="stock_location_a"/> | ||
</record> | ||
|
||
<record model="stock.location.path" id="auto_location_path"> | ||
<field name="name">Test push route 3=>1</field> | ||
<field name="location_from_id" ref="stock_location_c"/> | ||
<field name="location_dest_id" ref="stock_location_a"/> | ||
<field name="picking_type_id" ref="stock.picking_type_internal"/> | ||
<field name="auto">transparent</field> | ||
<field name="route_id" ref="test_route"/> | ||
</record> | ||
</odoo> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_auto_move | ||
# | ||
# Translators: | ||
# Carles Antoli <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-01-14 08:48+0000\n" | ||
"PO-Revision-Date: 2017-01-14 08:48+0000\n" | ||
"Last-Translator: Carles Antoli <[email protected]>, 2017\n" | ||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: ca\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: stock_auto_move | ||
#: model:procurement.rule,name:stock_auto_move.procurement_rule_a_to_b | ||
msgid "1 => 2 with auto_move" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: field:procurement.rule,auto_move:0 field:stock.move,auto_move:0 | ||
msgid "Automatic move" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: help:procurement.rule,auto_move:0 | ||
msgid "" | ||
"If this option is selected, the generated move will be automatically " | ||
"processed as soon as the products are available. This can be useful for " | ||
"situations with chained moves where we do not want an operator action." | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: help:stock.move,auto_move:0 | ||
msgid "" | ||
"If this option is selected, the move will be automatically processed as soon" | ||
" as the products are available." | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location,name:stock_auto_move.stock_location_a | ||
msgid "Location 1" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location,name:stock_auto_move.stock_location_b | ||
msgid "Location 2" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location,name:stock_auto_move.stock_location_c | ||
msgid "Location 3" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_procurement_order | ||
msgid "Procurement" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_procurement_rule | ||
msgid "Procurement Rule" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_stock_location_path | ||
msgid "Pushed Flows" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_stock_move | ||
msgid "Stock Move" | ||
msgstr "Moure l'estoc" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location.route,name:stock_auto_move.test_route | ||
msgid "Test route" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_auto_move | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-18 01:44+0000\n" | ||
"PO-Revision-Date: 2016-11-18 01:44+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2016\n" | ||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: de\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: stock_auto_move | ||
#: model:procurement.rule,name:stock_auto_move.procurement_rule_a_to_b | ||
msgid "1 => 2 with auto_move" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: field:procurement.rule,auto_move:0 field:stock.move,auto_move:0 | ||
msgid "Automatic move" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: help:procurement.rule,auto_move:0 | ||
msgid "" | ||
"If this option is selected, the generated move will be automatically " | ||
"processed as soon as the products are available. This can be useful for " | ||
"situations with chained moves where we do not want an operator action." | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: help:stock.move,auto_move:0 | ||
msgid "" | ||
"If this option is selected, the move will be automatically processed as soon" | ||
" as the products are available." | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location,name:stock_auto_move.stock_location_a | ||
msgid "Location 1" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location,name:stock_auto_move.stock_location_b | ||
msgid "Location 2" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location,name:stock_auto_move.stock_location_c | ||
msgid "Location 3" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_procurement_order | ||
msgid "Procurement" | ||
msgstr "Beschaffung" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_procurement_rule | ||
msgid "Procurement Rule" | ||
msgstr "Beschaffungsregel" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_stock_location_path | ||
msgid "Pushed Flows" | ||
msgstr "" | ||
|
||
#. module: stock_auto_move | ||
#: model:ir.model,name:stock_auto_move.model_stock_move | ||
msgid "Stock Move" | ||
msgstr "Lagerbuchung" | ||
|
||
#. module: stock_auto_move | ||
#: model:stock.location.route,name:stock_auto_move.test_route | ||
msgid "Test route" | ||
msgstr "" |
Oops, something went wrong.