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

[16.0][MIG] stock_picking_batch_extended: Migration to 16.0 #1236

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
776e5ee
[FIX] stock_picking_mass_action return backorder if any of pickings n…
Sep 24, 2019
b11f15d
[12.0][FIX] stock_picking_batch_extended
AdriaGForgeFlow Oct 22, 2019
e277414
[MIG] stock_picking_batch_extended: Migration scripts
pedrobaeza Dec 10, 2019
2501b6a
[FIX] stock_picking_batch_extended: float_is_zero required parameters
carlosdauden Dec 18, 2019
265b245
[IMP] stock_picking_batch_extended: UX improvements
carlosdauden Dec 19, 2019
0230a20
[IMP] stock_picking_batch_extended: Add followers, attachments, chatt…
carlosdauden Feb 26, 2020
b3eaccc
[IMP] stock_picking_batch_extended: Request confirmation to cancel pi…
sergio-teruel Oct 6, 2020
7351e30
[IMP] stock_picking_batch_extended: black, isort, prettier
pedrobaeza Dec 29, 2020
8e5eca7
[MIG] stock_picking_batch_extended: Migration to 13.0
sergio-teruel Dec 29, 2020
a0dcdba
[IMP] stock_picking_batch_extended: Add kanban view in batch action f…
sergio-teruel Apr 7, 2021
1329de3
stock_picking_batch_extended 13.0.1.1.0
OCA-git-bot Apr 9, 2021
7dd571b
[IMP] stock_picking_batch_extended: Add optional picking_count column…
carlosdauden Jul 28, 2021
2619ea5
stock_picking_batch_extended 13.0.1.2.0
OCA-git-bot Jul 30, 2021
6c359d5
[IMP] stock_picking_batch_extended: Add confirm to validate and done …
victoralmau Sep 10, 2021
30debab
stock_picking_batch_extended 13.0.1.3.0
OCA-git-bot Sep 10, 2021
9037a6a
[IMP] stock_picking_batch_extended: black, isort, prettier
Dec 6, 2021
506849a
[MIG] [14.0] stock_picking_batch_extended: Migration to 14.0
Dec 9, 2021
cfabe0f
[IMP] add post-init hook to apply settings
Jan 5, 2020
bd247d6
[MIG] stock_picking_batch_extended: Migration to 15.0
cesar-tecnativa Jul 13, 2022
6f94a41
[IMP] stock_picking_batch_extended: Refactor. Odoo has improved batch…
sergio-teruel Oct 27, 2022
31f0eda
[UPD] Update stock_picking_batch_extended.pot
Dec 14, 2022
fa9bd06
[UPD] README.rst
OCA-git-bot Dec 14, 2022
4e4a782
Update translation files
weblate Dec 14, 2022
c761f12
Translated using Weblate (Italian)
mymage Mar 23, 2023
a871796
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 31, 2023
09acc56
[IMP] stock_picking_batch_extended: Display standard picking tree vie…
sergio-teruel Apr 19, 2023
d1b8ab0
[FIX] stock_picking_batch_extended: Administration settings required.…
carlosdauden Apr 19, 2023
ef7a14b
stock_picking_batch_extended 15.0.2.0.1
OCA-git-bot Apr 19, 2023
d56a7f4
stock_picking_batch_extended 15.0.2.1.0
OCA-git-bot Apr 19, 2023
0741439
[IMP] stock_picking_batch_extended: Display batch picking in form view
sergio-teruel Apr 21, 2023
3424022
stock_picking_batch_extended 15.0.2.2.0
OCA-git-bot Apr 24, 2023
6dddf62
[IMP] stock_picking_batch_extended: pre-commit stuff
BorisFL Apr 24, 2023
989b691
[MIG] migration stock_picking_batch_extended from 15.0 to 16.0
BorisFL May 24, 2023
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_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,
)
162 changes: 162 additions & 0 deletions stock_picking_batch_extended/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
============================
Stock batch picking extended
============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/15.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-15-0/stock-logistics-workflow-15-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/15.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.
By default after installation this option will be activated for all companies, you can disable
it in settings.

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

Due to the modifications in v16, when performing actions with a specific picking, it is removed from
the grouping. If the action is generated within the grouping, the pickings will still retain the
grouping, as in previous versions.

**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:%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
* 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
* César A. Sánchez

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

* Son Ho <sonhd@trobz.com>

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/15.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
# Copyright 2023 FactorLibre - Boris Alias
# 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",
],
"license": "AGPL-3",
"post_init_hook": "post_init_hook",
}
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