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

[12.0][MIG] stock_pack_operation_auto_fill > stock_move_line_auto_fill #538

Closed
wants to merge 16 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
141 changes: 141 additions & 0 deletions stock_move_line_auto_fill/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
=========================
Stock Move Line Auto Fill
=========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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/12.0/stock_move_line_auto_fill
: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-12-0/stock-logistics-workflow-12-0-stock_move_line_auto_fill
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/154/12.0
:alt: Try me on Runbot

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

This module alows to auto fill quantities in picking operations and autoassignment
lots quantities.

In Odoo, if you schedule to transfer 50 products and only receive 49, you have
to change the quantity directly on the picking.
As the quantity by default is 0 for each line, you have to write the received
quantity on 49 lines.

In this module we have added a button that helps users to fill automatically
the scheduled quantities. Then, the user can just change back the quantities
for the product that hasn't been received yet.

Products with lots
==================
When working with lots, it's very uncomfortable to introduce the quantity,
lot by lot, when transferring pickings from your warehouse (outgoing or
internal).

This module automatically assigns the reserved quantity as the done one, so
that you only have to change it in case of divergence, but having the
possibility of transferring directly.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

#. Make sure you have selected the proper removal strategy on your product
categories.
#. Configure the product on the page "Inventory", field "Tracking" with one of
these values: "By Unique Serial Number" or "By Lots" if you want autoassign
lots.
#. Check in Operation type if you want auto assign quantities, by default if
you want assign quantities done to reserved quantities you must push the
button "Auto Fill" when the picking is in ready state and has move lines
#. Check in Operation type if you do not want auto assign lots quantities with
"Avoid auto-assignment of lots".

Usage
=====

Set options in operation types, you can set 'Auto fill operation' what make
autoassignment button invisible and fill the quantities in operations for lines
and 'Avoid Autoassignment Lots' what allow fill manually the lots quantities.

Products without tracking lots
==============================
After confirming the picking, click on `Auto fill operations` button. The
Operations matching the following conditions will be filled automatically:

* The operation has not be processed (i.e `qty_done == 0`).
* The operation has no package set (i.e `package_id` is empty).

Product with lots
=================
#. Create an outgoing or an internal picking.
#. Include one product with lots and with enough stock.
#. Click on "Mark as Todo" button, and then on "Reserve".
#. Clicking on the icon with the three items bullet list on the "Operations"
tab you will see that the quantities have been auto-assigned on the "Done"
column.

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:%20stock_move_line_auto_fill%0Aversion:%2012.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
~~~~~~~

* ACSONE SA/NV
* Tecnativa

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

* Zakaria Makrelouf (ACSONE SA/NV) <[email protected]>
* Luis Triana (Jarsa Sistemas de S.A. de C.V.) <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`_:
* Pedro M. Baeza <[email protected]>
* Vicent Cubells <[email protected]>
* Sergio Teruel <[email protected]>
* David Vidal <[email protected]>
jarroyomorales marked this conversation as resolved.
Show resolved Hide resolved
* Jaime Arroyo (Creu Blanca) <[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/12.0/stock_move_line_auto_fill>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions stock_move_line_auto_fill/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
21 changes: 21 additions & 0 deletions stock_move_line_auto_fill/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2017 ACSONE SA/NV
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Stock Move Line Auto Fill',
'summary': "Stock Move Line auto fill",
'version': '12.0.2.0.1',
'license': 'AGPL-3',
'author': 'ACSONE SA/NV,'
'Tecnativa,'
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/stock-logistics-workflow/',
'depends': [
'stock',
],
'data': [
'views/stock_picking.xml',
'views/stock_picking_type_views.xml',
],
}
75 changes: 75 additions & 0 deletions stock_move_line_auto_fill/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_pack_operation_auto_fill
#
# 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-02-28 08:51+0000\n"
"PO-Revision-Date: 2018-02-28 08:51+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_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_action_pack_op_auto_fill_allowed
msgid "Action Pack Op Auto Fill Allowed"
msgstr "Možnost automatického vyplnění akce pack op"

#. module: stock_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_auto_fill_operation
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_type_auto_fill_operation
msgid "Auto fill operations"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.ui.view,arch_db:stock_pack_operation_auto_fill.stock_picking_form_view
msgid "AutoFill"
msgstr "Automatické vyplňování"

#. module: stock_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_type_avoid_lot_assignment
msgid "Avoid auto-assignment of lots"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: code:addons/stock_pack_operation_auto_fill/models/stock_picking.py:36
#, python-format
msgid ""
"Filling the operations automatically is not possible, perhaps the pickings "
"aren't in the right state (Partially available or available)."
msgstr ""
"Automatické vyplňování operací není možné, sběrnice pravděpodobně nejsou ve "
"správném stavu (částečně dostupné nebo dostupné)."

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_move
msgid "Stock Move"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_picking_type
msgid "The operation type determines the picking view"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.ui.view,arch_db:stock_pack_operation_auto_fill.stock_picking_form_view
msgid ""
"This button will automatically fill all operations that have no tracking set "
"on the product, no processed qty and no selected package."
msgstr ""
"Toto tlačítko automaticky vyplní všechny operace, které nemají na produktu "
"žádný sledovací soubor, žádné zpracované množství a žádný vybraný balíček."

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_picking
msgid "Transfer"
msgstr "Převod"
70 changes: 70 additions & 0 deletions stock_move_line_auto_fill/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_pack_operation_auto_fill
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-03 03:55+0000\n"
"PO-Revision-Date: 2017-12-03 03:55+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\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_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_action_pack_op_auto_fill_allowed
msgid "Action Pack Op Auto Fill Allowed"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_auto_fill_operation
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_type_auto_fill_operation
msgid "Auto fill operations"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.ui.view,arch_db:stock_pack_operation_auto_fill.stock_picking_form_view
msgid "AutoFill"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_type_avoid_lot_assignment
msgid "Avoid auto-assignment of lots"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: code:addons/stock_pack_operation_auto_fill/models/stock_picking.py:36
#, python-format
msgid ""
"Filling the operations automatically is not possible, perhaps the pickings "
"aren't in the right state (Partially available or available)."
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_move
msgid "Stock Move"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_picking_type
msgid "The operation type determines the picking view"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.ui.view,arch_db:stock_pack_operation_auto_fill.stock_picking_form_view
msgid ""
"This button will automatically fill all operations that have no tracking set "
"on the product, no processed qty and no selected package."
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_picking
msgid "Transfer"
msgstr "Lieferung vornehmen"
80 changes: 80 additions & 0 deletions stock_move_line_auto_fill/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_pack_operation_auto_fill
#
# Translators:
# OCA Transbot <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-13 17:12+0200\n"
"PO-Revision-Date: 2018-06-13 17:13+0200\n"
"Last-Translator: OCA Transbot <[email protected]>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.8.7.1\n"

#. module: stock_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_action_pack_op_auto_fill_allowed
msgid "Action Pack Op Auto Fill Allowed"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_auto_fill_operation
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_type_auto_fill_operation
msgid "Auto fill operations"
msgstr "Autocompletar operaciones"

#. module: stock_pack_operation_auto_fill
#: model:ir.ui.view,arch_db:stock_pack_operation_auto_fill.stock_picking_form_view
msgid "AutoFill"
msgstr "Autocompletar"

#. module: stock_pack_operation_auto_fill
#: model:ir.model.fields,field_description:stock_pack_operation_auto_fill.field_stock_picking_type_avoid_lot_assignment
msgid "Avoid auto-assignment of lots"
msgstr "Evitar asignación automática de lotes"

#. module: stock_pack_operation_auto_fill
#: code:addons/stock_pack_operation_auto_fill/models/stock_picking.py:36
#, python-format
msgid ""
"Filling the operations automatically is not possible, perhaps the pickings "
"aren't in the right state (Partially available or available)."
msgstr ""
"Llenar las operaciosn de forma automática no es posible, posiblemente los "
"movimientos no están en el estado correcto (Parcialmente disponible o "
"Disponible)."

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de stock"

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_picking_type
msgid "The operation type determines the picking view"
msgstr ""

#. module: stock_pack_operation_auto_fill
#: model:ir.ui.view,arch_db:stock_pack_operation_auto_fill.stock_picking_form_view
msgid ""
"This button will automatically fill all operations that have no tracking set "
"on the product, no processed qty and no selected package."
msgstr ""
"Este botón va a llenar todas las operaciones de forma automática, si no "
"tienen activada la trazabilidad en el producto, ninguna cantidad procesada y "
"ningún paquete seleccionado."

#. module: stock_pack_operation_auto_fill
#: model:ir.model,name:stock_pack_operation_auto_fill.model_stock_picking
msgid "Transfer"
msgstr "Transferir"

#~ msgid "The picking type determines the picking view"
#~ msgstr "El tipo de albarán determina la vista de albarán"
Loading