Skip to content

Commit

Permalink
Merge PR #1353 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rafaelbn
  • Loading branch information
OCA-git-bot committed Sep 8, 2023
2 parents a0c4b70 + e840e87 commit d64b138
Show file tree
Hide file tree
Showing 44 changed files with 5,992 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_picking_batch_extended/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,
)
166 changes: 166 additions & 0 deletions stock_picking_batch_extended/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
============================
Stock batch picking extended
============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c5985d6a3ededbe303eaf17d4c53c6939f25c39f4034f9bb7bb6e0dd470de032
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/16.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-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended
: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=16.0
:alt: Try me on Runboat

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

It allows to define which approach for batch handling will be used per company.
By default after installation this option will be activated for all companies, you can disable
it in settings.

.. figure:: https://raw.githubusercontent.com/stock_picking_batch_extended/static/picking_batch_configuration_settings.jpg
:alt: Picking batch configuration settings
:width: 80 %
:align: center

Wizard of add to batch whit the option "a new batch transfer", you can:

* Assign the name of the new batch.
* Add notes to the notes field of the new batch.
* Create a batch with all pickings selected or multiple batch depends on a group field selected in wizard.

.. figure:: https://raw.githubusercontent.com/stock_picking_batch_extended/static/stock_picking_list.jpg
:alt: Sample report template
:width: 80 %
:align: center

.. figure:: https://raw.githubusercontent.com/stock_picking_batch_extended/static/batch_wizard.jpg
:alt: Sample report template
:width: 80 %
:align: center

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

* Allows to rename the batch if it is in the draft status.
* Add field date, on which the batch picking is to be processed.
* Add field notes.
* Add picking count to form view.
* If a batch is cancelled, cancel for all batches pickings and set batches states to cancel too only if user set OCA batch validation approach.
* You can remove all batch pickings from the batch whose status is not done or cancelled.

.. figure:: https://raw.githubusercontent.com/stock_picking_batch_extended/static/batch_form.jpg
:alt: Sample report template
:width: 80 %
:align: center

.. figure:: https://raw.githubusercontent.com/stock_picking_batch_extended/static/batch_form_operation.jpg
: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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_picking_batch_extended%0Aversion:%2016.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 <[email protected]>
* Rudolf Schnapka <[email protected]>
* Matthieu Dietrich <[email protected]>
* Romain Deheele <[email protected]>
* Leonardo Pistone <[email protected]>
* Guewen Baconnier <[email protected]>
* Yannick Vaucher <[email protected]>
* Alexandre Fayolle <[email protected]>
* Joël Grand-Guillaume <[email protected]>
* Cyril Gaudin <[email protected]>
* Iryna Vyshnevska <[email protected]>

**stock_batch_picking**

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

* Cyril Gaudin

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

* Carlos Dauden
* Sergio Teruel
* César A. Sánchez

* `Trobz <https://trobz.com>`_:

* Son Ho <[email protected]>

Other credits
~~~~~~~~~~~~~

The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp

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

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

|maintainer-gurneyalex| |maintainer-carlosdauden| |maintainer-i-vyshnevska|

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

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

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

{
"name": "Stock batch picking extended",
"summary": "Allows manage a lot of pickings in batch",
"version": "16.0.1.0.0",
"author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)",
"development_status": "Mature",
"maintainers": ["gurneyalex", "carlosdauden", "i-vyshnevska"],
"category": "Warehouse Management",
"depends": ["stock_picking_batch", "delivery"],
"website": "https://github.com/OCA/stock-logistics-workflow",
"data": [
"security/ir.model.access.csv",
"data/batch_picking_actions_server.xml",
"views/stock_batch_picking.xml",
"views/product_product.xml",
"views/report_batch_picking.xml",
"views/stock_picking_views.xml",
"views/stock_warehouse.xml",
"views/res_config_settings_views.xml",
"wizard/stock_picking_to_batch_views.xml",
],
"installable": True,
"post_init_hook": "post_init_hook",
"license": "AGPL-3",
}
48 changes: 48 additions & 0 deletions stock_picking_batch_extended/data/batch_picking_actions_server.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?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>
<!-- 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>
<record model="ir.actions.server" id="action_stock_batch_picking_assign_all">
<field name="name">Reserve All</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">
for record in records:
record.action_assign()
</field>
</record>
</odoo>
10 changes: 10 additions & 0 deletions stock_picking_batch_extended/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2019 Camptocamp - Iryna Vyshnevska
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import SUPERUSER_ID, api


def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})

env["res.company"].search([]).write({"use_oca_batch_validation": True})
Loading

0 comments on commit d64b138

Please sign in to comment.