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

[15.0][MIG] stock_putaway_method #1545

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions setup/stock_putaway_method/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,
)
94 changes: 94 additions & 0 deletions stock_putaway_method/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
=======================
Putaway strategy method
=======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_putaway_method
: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-15-0/stock-logistics-warehouse-15-0-stock_putaway_method
: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/15.0
:alt: Try me on Runbot

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

This module adds the putaway strategy method back, removed from the stock module in Odoo 12.

**Table of contents**

.. contents::
:local:

Usage
=====

* Create your own new module to implement new putaway strategies
* Extend the method `_get_putaway_options` to add your new method in the list
of available strategies

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_putaway_method%0Aversion:%2015.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
~~~~~~~

* Camptocamp SA

Contributors
~~~~~~~~~~~~

* Camptocamp <https://camptocamp.com>

* Alexandre Saunier <[email protected]>

* Open Source Integrators <https://opensourceintegrators.com>

* Maxime Chambreuil <[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.

.. |maintainer-asaunier| image:: https://github.com/asaunier.png?size=40px
:target: https://github.com/asaunier
:alt: asaunier

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-asaunier|

This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_putaway_method>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions stock_putaway_method/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
15 changes: 15 additions & 0 deletions stock_putaway_method/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Putaway strategy method",
"summary": "Add the putaway strategy method back, "
"removed from the stock module in Odoo 12",
"version": "15.0.1.0.0",
"category": "Inventory",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Camptocamp SA, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["product", "stock"],
"data": ["views/product_strategy_views.xml"],
"development_status": "Production/Stable",
"maintainers": ["asaunier"],
}
36 changes: 36 additions & 0 deletions stock_putaway_method/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_putaway_method
#
# Translators:
# Lukáš Spurný <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-02 03:44+0000\n"
"PO-Revision-Date: 2018-03-02 03:44+0000\n"
"Last-Translator: Lukáš Spurný <[email protected]>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
"teams/23907/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway__method
msgid "Method"
msgstr "Metoda"

#. module: stock_putaway_method
#: model:ir.model,name:stock_putaway_method.model_product_putaway
msgid "Put Away Strategy"
msgstr "Strategie vyřazení"

#~ msgid "Fixed Locations Per Categories"
#~ msgstr "Upravené umístění podle kategorií"

#~ msgid "Putaway"
#~ msgstr "Dát pryč"
35 changes: 35 additions & 0 deletions stock_putaway_method/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_putaway_method
#
# Translators:
# Quentin THEURET <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-02 03:44+0000\n"
"PO-Revision-Date: 2018-03-02 03:44+0000\n"
"Last-Translator: Quentin THEURET <[email protected]>, 2018\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway__method
msgid "Method"
msgstr "Méthode"

#. module: stock_putaway_method
#: model:ir.model,name:stock_putaway_method.model_product_putaway
msgid "Put Away Strategy"
msgstr "Stratégie de rangement"

#~ msgid "Fixed Locations Per Categories"
#~ msgstr "Emplacement fixe par catégories"

#~ msgid "Putaway"
#~ msgstr "Rangement"
42 changes: 42 additions & 0 deletions stock_putaway_method/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_putaway_method
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-10-24 12:43+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\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.14.1\n"

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule__id
msgid "ID"
msgstr "ID"

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule__method
msgid "Method"
msgstr "Metodo"

#. module: stock_putaway_method
#: model:ir.model,name:stock_putaway_method.model_stock_putaway_rule
msgid "Putaway Rule"
msgstr "Regola stoccaggio"
39 changes: 39 additions & 0 deletions stock_putaway_method/i18n/stock_putaway_method.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_putaway_method
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule__display_name
msgid "Display Name"
msgstr ""

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule__id
msgid "ID"
msgstr ""

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule____last_update
msgid "Last Modified on"
msgstr ""

#. module: stock_putaway_method
#: model:ir.model.fields,field_description:stock_putaway_method.field_stock_putaway_rule__method
msgid "Method"
msgstr ""

#. module: stock_putaway_method
#: model:ir.model,name:stock_putaway_method.model_stock_putaway_rule
msgid "Putaway Rule"
msgstr ""
2 changes: 2 additions & 0 deletions stock_putaway_method/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import product_strategy
16 changes: 16 additions & 0 deletions stock_putaway_method/models/product_strategy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models


class StockPutawayRule(models.Model):
_inherit = "stock.putaway.rule"

method = fields.Selection(
selection="_get_putaway_options",
default="fixed",
required=True,
)

@api.model
def _get_putaway_options(self):
return [("fixed", "Fixed Location")]
7 changes: 7 additions & 0 deletions stock_putaway_method/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* Camptocamp <https://camptocamp.com>

* Alexandre Saunier <[email protected]>

* Open Source Integrators <https://opensourceintegrators.com>

* Maxime Chambreuil <[email protected]>
1 change: 1 addition & 0 deletions stock_putaway_method/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds the putaway strategy method back, removed from the stock module in Odoo 12.
3 changes: 3 additions & 0 deletions stock_putaway_method/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Create your own new module to implement new putaway strategies
* Extend the method `_get_putaway_options` to add your new method in the list
of available strategies
Binary file added stock_putaway_method/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading