Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][MIG] - stock_auto_move #852

Merged
merged 27 commits into from
Jul 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6b5d232
Added stock_auto_move module
npiganeau Nov 20, 2015
785dbad
stock_auto_move : OCA compliant
Nov 23, 2015
8191b38
stock_auto_move : replace utf8 by utf-8, use camelcase in class name
Nov 24, 2015
e170656
Refactorings
npiganeau Nov 27, 2015
846612b
stock_auto_move: externalize change group to be able to overload it
Dec 4, 2015
35c9723
Use new api mapped instead of ids list comprehension
npiganeau Dec 9, 2015
681f531
OCA Transbot updated translations from Transifex
oca-transbot Jul 3, 2016
d115183
[10.0] port stock_auto_move to 10.0
May 15, 2017
603432a
OCA Transbot updated translations from Transifex
oca-transbot Jun 3, 2017
45ead74
OCA Transbot updated translations from Transifex
oca-transbot Jun 24, 2017
7202178
[FIX] stock_auto_move: action_assign on stock_move should have an opt…
May 15, 2017
8b3ca7c
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
0c36ae0
[UPD] Update stock_auto_move.pot
oca-travis Jun 23, 2018
67b4f82
[ADD] icon.png
OCA-git-bot Apr 3, 2019
836f80e
[IMP] stock_auto_move: black, isort, prettier
rousseldenis Nov 13, 2020
87a2ecb
[13.0][MIG] stock_auto_move: Migration to v13.0
rousseldenis Nov 13, 2020
04994b7
[IMP]stock_auto_move: auto move from push rules
zakiuu Sep 5, 2017
e185b07
[9.0][REF]stock_auto_move: fix action_assign() (#373)
zakiuu Oct 1, 2018
235033a
[10.0][IMP] stock_auto_move: auto_confirm=>auto_move
rousseldenis Nov 18, 2020
83d6931
[13.0][IMP] stock_auto_move: Take into account partial moves
rousseldenis Nov 18, 2020
eca185d
[13.0][FIX] stock_auto_move: Don't change procurement group if exists
rousseldenis Feb 10, 2021
5f4bc2f
[13.0][IMP] stock_auto_move: Add tests for procurement group
rousseldenis Feb 10, 2021
8c84da8
[13.0][FIX] stock_auto_move: Use correct quantity field
rousseldenis Feb 10, 2021
cd2037f
[13.0][IMP] stock_auto_move: Take into account cases with mixed moves
rousseldenis Feb 11, 2021
4357dc6
[13.0][IMP] stock_auto_move: Take into account 'No backorder' process
rousseldenis Feb 13, 2021
9f8b58c
[13.0][IMP] stock_auto_move: Take into account cases with mixed moves…
rousseldenis Feb 26, 2021
5c6b046
[14.0][MIG] - stock_auto_move
sbejaoui Jun 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup/stock_auto_move/odoo/addons/stock_auto_move
6 changes: 6 additions & 0 deletions setup/stock_auto_move/setup.py
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,
)
82 changes: 82 additions & 0 deletions stock_auto_move/README.rst
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.
1 change: 1 addition & 0 deletions stock_auto_move/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
25 changes: 25 additions & 0 deletions stock_auto_move/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2014 NDP Systèmes (<https://www.ndp-systemes.fr>)
# Copyright 2020 ACSONE SA/NV (<https://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Automatic Move Processing",
"version": "14.0.1.0.0",
"author": "NDP Systèmes, ACSONE SA/NV, Odoo Community Association (OCA)",
"category": "Warehouse",
"development_status": "Production/Stable",
"website": "https://github.com/OCA/stock-logistics-workflow",
"depends": ["stock"],
"data": [
"data/procurement_group.xml",
"views/stock_move.xml",
"views/stock_rule.xml",
],
"demo": [
"demo/stock_location.xml",
"demo/stock_location_route.xml",
"demo/stock_rule.xml",
],
"installable": True,
"license": "AGPL-3",
}
9 changes: 9 additions & 0 deletions stock_auto_move/data/procurement_group.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2014-2015 NDP Systèmes (<https://www.ndp-systemes.fr>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="procurement.group" id="automatic_group">
<field name="name">Automatic</field>
<field name="move_type">direct</field>
</record>
</odoo>
23 changes: 23 additions & 0 deletions stock_auto_move/demo/stock_location.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2014-2015 NDP Systèmes (<https://www.ndp-systemes.fr>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<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>
</odoo>
13 changes: 13 additions & 0 deletions stock_auto_move/demo/stock_location_route.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2014-2015 NDP Systèmes (<https://www.ndp-systemes.fr>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<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>
</odoo>
27 changes: 27 additions & 0 deletions stock_auto_move/demo/stock_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2014-2015 NDP Systèmes (<https://www.ndp-systemes.fr>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="stock.rule" id="stock_rule_a_to_b">
<field name="name">1 => 2 with auto_move</field>
<field name="action">pull</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_cancel" eval="True" />
<field name="picking_type_id" ref="stock.picking_type_internal" />
<field name="procure_method">make_to_stock</field>
<field name="auto_move" eval="True" />
<field name="location_src_id" ref="stock_location_a" />
</record>
<record model="stock.rule" id="auto_location_path">
<field name="name">Test push route 3=>1</field>
<field name="location_src_id" ref="stock_location_c" />
<field name="location_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" />
<field name="action">push</field>
</record>
</odoo>
85 changes: 85 additions & 0 deletions stock_auto_move/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# 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"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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
#: model:ir.model.fields,field_description:stock_auto_move.field_procurement_rule_auto_move
#: model:ir.model.fields,field_description:stock_auto_move.field_stock_move_auto_move
msgid "Automatic move"
msgstr ""

#. module: stock_auto_move
#: model:ir.model.fields,help:stock_auto_move.field_procurement_rule_auto_move
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
#: model:ir.model.fields,help:stock_auto_move.field_stock_move_auto_move
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 Flow"
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 ""
85 changes: 85 additions & 0 deletions stock_auto_move/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# 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"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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
#: model:ir.model.fields,field_description:stock_auto_move.field_procurement_rule_auto_move
#: model:ir.model.fields,field_description:stock_auto_move.field_stock_move_auto_move
msgid "Automatic move"
msgstr ""

#. module: stock_auto_move
#: model:ir.model.fields,help:stock_auto_move.field_procurement_rule_auto_move
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
#: model:ir.model.fields,help:stock_auto_move.field_stock_move_auto_move
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 Flow"
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 ""
Loading