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

[17.0][MIG] stock_auto_move #1797

Open
wants to merge 40 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1b64e31
Added stock_auto_move module
npiganeau Nov 20, 2015
abdbb53
stock_auto_move : OCA compliant
Nov 23, 2015
ab550ed
stock_auto_move : replace utf8 by utf-8, use camelcase in class name
Nov 24, 2015
15ba43e
Refactorings
npiganeau Nov 27, 2015
700bbc3
stock_auto_move: externalize change group to be able to overload it
Dec 4, 2015
e0e11ed
Use new api mapped instead of ids list comprehension
npiganeau Dec 9, 2015
57fc271
OCA Transbot updated translations from Transifex
oca-transbot Jul 3, 2016
f4b3aa9
[10.0] port stock_auto_move to 10.0
May 15, 2017
2b01201
OCA Transbot updated translations from Transifex
oca-transbot Jun 3, 2017
34b1c01
OCA Transbot updated translations from Transifex
oca-transbot Jun 24, 2017
85aa5d3
[FIX] stock_auto_move: action_assign on stock_move should have an opt…
May 15, 2017
6cd5323
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
935fb54
[UPD] Update stock_auto_move.pot
oca-travis Jun 23, 2018
1422da5
[ADD] icon.png
OCA-git-bot Apr 3, 2019
010f001
[IMP] stock_auto_move: black, isort, prettier
rousseldenis Nov 13, 2020
887abb3
[13.0][MIG] stock_auto_move: Migration to v13.0
rousseldenis Nov 13, 2020
d6c1361
[IMP]stock_auto_move: auto move from push rules
zakiuu Sep 5, 2017
7d95cd9
[9.0][REF]stock_auto_move: fix action_assign() (#373)
zakiuu Oct 1, 2018
a44f486
[10.0][IMP] stock_auto_move: auto_confirm=>auto_move
rousseldenis Nov 18, 2020
c6b461c
[13.0][IMP] stock_auto_move: Take into account partial moves
rousseldenis Nov 18, 2020
76cec4d
[13.0][FIX] stock_auto_move: Don't change procurement group if exists
rousseldenis Feb 10, 2021
456faaf
[13.0][IMP] stock_auto_move: Add tests for procurement group
rousseldenis Feb 10, 2021
f77a41b
[13.0][FIX] stock_auto_move: Use correct quantity field
rousseldenis Feb 10, 2021
6032fc0
[13.0][IMP] stock_auto_move: Take into account cases with mixed moves
rousseldenis Feb 11, 2021
fe8f6d2
[13.0][IMP] stock_auto_move: Take into account 'No backorder' process
rousseldenis Feb 13, 2021
8d2f858
[13.0][IMP] stock_auto_move: Take into account cases with mixed moves…
rousseldenis Feb 26, 2021
b4254b7
[14.0][MIG] - stock_auto_move
sbejaoui Jun 10, 2021
7c0e408
[UPD] Update stock_auto_move.pot
oca-travis Jul 5, 2021
ed31f14
[UPD] README.rst
OCA-git-bot Jul 5, 2021
e65c56c
Translated using Weblate (Catalan)
Jan 26, 2022
9b4e715
[UPD] README.rst
OCA-git-bot Sep 3, 2023
3298253
Update translation files
weblate Oct 9, 2023
583a895
Translated using Weblate (Italian)
mymage Dec 26, 2023
e8c9273
[MIG] stock_auto_move: Migration to 16.0
ThomasBinsfeld Dec 28, 2023
5c865e4
[UPD] Update stock_auto_move.pot
Mar 9, 2024
79ede69
Update translation files
weblate Mar 9, 2024
55a9b6f
Update translation files
weblate Mar 9, 2024
bf4e264
Translated using Weblate (Portuguese (Brazil))
May 29, 2024
a351b07
[IMP] stock_move_auto_reserve: black, isort, prettier
ferran-S73 Dec 19, 2024
087c6e6
[17.0][MIG] stock_auto_move
ferran-S73 Dec 19, 2024
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
112 changes: 112 additions & 0 deletions stock_auto_move/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
=========================
Automatic Move Processing
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:93e8ddfa51bd90ea80d63e24819bbead6fd8d99268329d5805b8d6efb2b3c52f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_auto_move
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-17-0/stock-logistics-workflow-17-0-stock_auto_move
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

It's different than the standard 'Automatic No step added' option in
stock rules as it does not merge first and second chained move.

**Table of contents**

.. contents::
:local:

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 stock rule.

Usage
=====



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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_auto_move%0Aversion:%2017.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.

Credits
=======

Authors
-------

* NDP Systèmes
* ACSONE SA/NV

Contributors
------------

- Nicolas Piganeau <[email protected]>
- Cédric Pigeon <[email protected]>
- Denis Roussel <[email protected]>
- Souheil Bejaoui <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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-workflow <https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_auto_move>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
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": "17.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_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_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.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_dest_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_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" />
<field name="action">push</field>
</record>
</odoo>
90 changes: 90 additions & 0 deletions stock_auto_move/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# 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: 2022-01-26 17:40+0000\n"
"Last-Translator: Jaume Planas <[email protected]>\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"
"X-Generator: Weblate 4.3.2\n"

#. module: stock_auto_move
#: model:stock.rule,name:stock_auto_move.stock_rule_a_to_b
msgid "1 => 2 with auto_move"
msgstr "1 => 2 amb auto_move"

#. module: stock_auto_move
#: model:ir.model.fields,field_description:stock_auto_move.field_stock_move__auto_move
#: model:ir.model.fields,field_description:stock_auto_move.field_stock_rule__auto_move
msgid "Automatic move"
msgstr "Moviment automàtic"

#. module: stock_auto_move
#: model:ir.model.fields,help:stock_auto_move.field_stock_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 ""
"Si seleccioneu aquesta opció, el moviment generat es processarà "
"automàticament tan bon punt estiguin disponibles els productes. Això pot ser "
"útil en situacions amb moviments encadenats on no es vulgui una acció de "
"l'operador."

#. 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 ""
"Si seleccioneu aquesta opciño, el moviment es processarà automàticament tan "
"bon punt estiguin disponibles els productes."

#. module: stock_auto_move
#: model:ir.model,name:stock_auto_move.model_stock_move
msgid "Stock Move"
msgstr "Moviment d'estoc"

#. module: stock_auto_move
#: model:ir.model,name:stock_auto_move.model_stock_rule
msgid "Stock Rule"
msgstr ""

#. module: stock_auto_move
#: model:stock.rule,name:stock_auto_move.auto_location_path
msgid "Test push route 3=>1"
msgstr ""

#. module: stock_auto_move
#: model:stock.route,name:stock_auto_move.test_route
msgid "Test route"
msgstr "Ruta de prova"

#~ msgid "Location 1"
#~ msgstr "Ubicació 1"

#~ msgid "Location 2"
#~ msgstr "Ubicació 2"

#~ msgid "Location 3"
#~ msgstr "Ubicació 3"

#~ msgid "Procurement"
#~ msgstr "Aprovisionament"

#~ msgid "Procurement Rule"
#~ msgstr "Regla d'aprovisionament"

#~ msgid "Pushed Flow"
#~ msgstr "Flux empès"
71 changes: 71 additions & 0 deletions stock_auto_move/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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:stock.rule,name:stock_auto_move.stock_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_stock_move__auto_move
#: model:ir.model.fields,field_description:stock_auto_move.field_stock_rule__auto_move
msgid "Automatic move"
msgstr ""

#. module: stock_auto_move
#: model:ir.model.fields,help:stock_auto_move.field_stock_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:ir.model,name:stock_auto_move.model_stock_move
msgid "Stock Move"
msgstr "Lagerbuchung"

#. module: stock_auto_move
#: model:ir.model,name:stock_auto_move.model_stock_rule
msgid "Stock Rule"
msgstr ""

#. module: stock_auto_move
#: model:stock.rule,name:stock_auto_move.auto_location_path
msgid "Test push route 3=>1"
msgstr ""

#. module: stock_auto_move
#: model:stock.route,name:stock_auto_move.test_route
msgid "Test route"
msgstr ""

#~ msgid "Procurement"
#~ msgstr "Beschaffung"

#~ msgid "Procurement Rule"
#~ msgstr "Beschaffungsregel"
Loading
Loading