Skip to content

Commit

Permalink
Merge 4d24871 into b187575
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-teruel committed Feb 1, 2020
2 parents b187575 + 4d24871 commit ced1565
Show file tree
Hide file tree
Showing 42 changed files with 6,385 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .isort.cfg
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=setuptools
known_third_party=openupgradelib,psycopg2,setuptools
142 changes: 142 additions & 0 deletions stock_picking_batch_extended/README.rst
@@ -0,0 +1,142 @@
===================
Stock batch picking
===================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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/13.0/stock_picking_batch_extended
: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-13-0/stock-logistics-workflow-13-0-stock_picking_batch_extended
: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/13.0
:alt: Try me on Runbot

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

This module is based on `picking_dispatch <https://github.com/OCA/stock-logistics-workflow/tree/8.0/picking_dispatch>`_
but reworked for matching Odoo new picking system (with pack operations).

Since v12 it is compatible with odoo addon https://github.com/odoo/odoo/blob/12.0/addons/stock_picking_batch/models/stock_picking_batch.py
It allows to define which approach for batch handling will be used per company.

Batch picking allows you to manage several pickings at the same time.
You can create a batch with all pickings selected or multiple batch depends on
a group field selected in wizard.

After having created a batch with a list of stock picking, you can:

* Check availability and reserve quants for all pickings
* Mark all pickings as done when delivery is done.
* Make partial delivery by filling done quantities in pack operations tab.
* Print a report to pick the proper goods at once

.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-workflow/11.0/stock_batch_picking/static/stock_picking_list.png
:alt: Sample report template
:width: 80 %
:align: center

.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-workflow/11.0/stock_batch_picking/static/batch_wizard.png
:alt: Sample report template
:width: 80 %
:align: center

.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-workflow/11.0/stock_batch_picking/static/batch_form.png
:alt: Sample report template
:width: 80 %
:align: center

.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-workflow/11.0/stock_batch_picking/static/batch_form_operation.png
:alt: Sample report template
:width: 80 %
:align: center

**Table of contents**

.. contents::
:local:

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_picking_batch_extended%0Aversion:%2013.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
* Tecnativa

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

**picking_dispatch**

* Peter Langenberg <peter.langenberg@bubbles-it.be>
* Rudolf Schnapka <rs@techno-flex.de>
* Matthieu Dietrich <matthieu.dietrich@camptocamp.com>
* Romain Deheele <romain.deheele@camptocamp.com>
* Leonardo Pistone <leonardo.pistone@camptocamp.com>
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
* Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
* Cyril Gaudin <cyril.gaudin@camptocamp.com>
* Iryna Vyshnevska <i.vyshnevska@mobilunity.com>

**stock_batch_picking**

* `Camptocamp <https://www.camptocamp.com>`_:
* Cyril Gaudin

* `Tecnativa <https://www.tecnativa.com>`_:

* Carlos Dauden
* Sergio Teruel

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-Camptocamp| image:: https://github.com/Camptocamp.png?size=40px
:target: https://github.com/Camptocamp
:alt: Camptocamp
.. |maintainer-Tecnativa| image:: https://github.com/Tecnativa.png?size=40px
:target: https://github.com/Tecnativa
:alt: Tecnativa

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

|maintainer-Camptocamp| |maintainer-Tecnativa|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions stock_picking_batch_extended/__init__.py
@@ -0,0 +1,5 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
from . import report
from . import wizard
28 changes: 28 additions & 0 deletions stock_picking_batch_extended/__manifest__.py
@@ -0,0 +1,28 @@
# Copyright 2012-2014 Alexandre Fayolle, Camptocamp SA
# Copyright 2018 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Stock batch picking",
"summary": "Allows manage a lot of pickings in batch",
"version": "13.0.1.0.0",
"author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)",
"development_status": "Mature",
"maintainers": ["Camptocamp", "Tecnativa"],
"category": "Warehouse Management",
"depends": ["stock_picking_batch", "delivery", "stock_picking_mass_action"],
"website": "https://github.com/OCA/stock-logistics-workflow",
"data": [
"data/stock_batch_picking_sequence.xml",
"data/batch_picking_actions_server.xml",
"views/stock_batch_picking.xml",
"views/product_product.xml",
"views/report_batch_picking.xml",
"views/stock_picking.xml",
"views/stock_warehouse.xml",
"views/res_config_settings_views.xml",
"wizard/batch_picking_creator_view.xml",
],
"installable": True,
"license": "AGPL-3",
}
28 changes: 28 additions & 0 deletions stock_picking_batch_extended/data/batch_picking_actions_server.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 Tecnativa - Carlos Dauden
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="0">

<!-- Stock Batch Picking - Print Picking Operations -->
<record id="action_print_batch_picking_operations" model="ir.actions.server">
<field name="name">Print Picking Operations</field>
<field name="model_id" ref="stock_picking_batch.model_stock_picking_batch"/>
<field name="binding_model_id" ref="stock_picking_batch.model_stock_picking_batch"/>
<field name="state">code</field>
<field name="code">pickings = records.mapped('picking_ids').filtered(lambda p: p.state != 'cancel')
action = env.ref('stock.action_report_picking').report_action(pickings)
</field>
</record>

<!-- Stock Batch Picking - Print Delivery Slip -->
<record id="action_print_batch_delivery_slip" model="ir.actions.server">
<field name="name">Print Delivery Slip</field>
<field name="model_id" ref="stock_picking_batch.model_stock_picking_batch"/>
<field name="binding_model_id" ref="stock_picking_batch.model_stock_picking_batch"/>
<field name="state">code</field>
<field name="code">pickings = records.mapped('picking_ids').filtered(lambda p: p.state != 'cancel')
action = env.ref('stock.action_report_delivery').report_action(pickings)
</field>
</record>

</odoo>
11 changes: 11 additions & 0 deletions stock_picking_batch_extended/data/stock_batch_picking_sequence.xml
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<!-- Sequences for stock.picking.batch -->
<record id="seq_stock_batch_picking" model="ir.sequence">
<field name="name">Batch Picking</field>
<field name="code">stock.picking.batch</field>
<field name="prefix">Prep</field>
<field name="padding">4</field>
<field name="company_id" eval="False"/>
</record>
</odoo>

0 comments on commit ced1565

Please sign in to comment.