-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by jbaudoux
- Loading branch information
Showing
37 changed files
with
4,095 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
============= | ||
Split picking | ||
============= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:a8eb0658df8c1ba90d90bf44d87020add15f0967828a8e3c1bd1961719c35743 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/18.0/stock_split_picking | ||
: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-18-0/stock-logistics-workflow-18-0-stock_split_picking | ||
: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=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds a "Split" button on the pickings form. | ||
|
||
It works like the classical picking Transfer but it leaves both pickings | ||
(picking and its backorder) as confirmed without processing the | ||
transfer. | ||
|
||
You can also choose to put all moves into separate pickings, or select | ||
moves to be put into a new picking. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
1. Go to **Inventory** dashboard and open any picking. | ||
2. If picking state is **available** you can see an split button. | ||
3. On the "Operations" tab, fill the field "Done" to the quantity you | ||
want to split for each line. | ||
4. If you click on **Split** button, wizard will split current picking | ||
into two different pickings depends on quantity done you entered | ||
above. | ||
5. Both pickings remain confirmed. | ||
6. When splitting a picking in an unassigned state, wizard won't be auto | ||
completed with picking lines. | ||
|
||
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_split_picking%0Aversion:%2018.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 | ||
* ForgeFlow S.L. | ||
|
||
Contributors | ||
------------ | ||
|
||
- Nicolas Bessi <[email protected]> | ||
- Guewen Baconnier <[email protected]> | ||
- Yannick Vaucher <[email protected]> | ||
- Vicent Cubells <[email protected]> | ||
- Julien Coux <[email protected]> | ||
- Andrius Preimantas <[email protected]> | ||
- Holger Brunn <[email protected]> | ||
- Rujia Liu <[email protected]> | ||
- Bernat Puig <[email protected]> | ||
- Pimolnat Suntian <[email protected]> | ||
- Yoshi Tashiro <[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/18.0/stock_split_picking>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright 2013-2015 Camptocamp SA - Nicolas Bessi | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import wizards | ||
from . import exceptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2013-2015 Camptocamp SA - Nicolas Bessi | ||
# Copyright 2013-2015 Camptocamp SA - Guewen Baconnier | ||
# Copyright 2013-2015 Camptocamp SA - Yannick Vaucher | ||
# Copyright 2017 Tecnativa - Vicent Cubells | ||
# Copyright 2021 ForgeFlow | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Split picking", | ||
"summary": "Split a picking in two not transferred pickings", | ||
"version": "18.0.1.0.0", | ||
"category": "Inventory", | ||
"author": "Camptocamp, " | ||
"Tecnativa, " | ||
"ForgeFlow S.L., " | ||
"Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"website": "https://github.com/OCA/stock-logistics-workflow", | ||
"depends": ["stock"], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"wizards/stock_split_picking.xml", | ||
"views/stock_partial_picking.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2024 ACSONE SA/NV | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import _ | ||
from odoo.exceptions import UserError | ||
|
||
|
||
class SplitPickNotAllowedInStateError(UserError): | ||
""" | ||
Exception class to represent stock picking split error for picking wrong state | ||
""" | ||
|
||
def __init__(self, env, picking): | ||
self.env = env | ||
super().__init__( | ||
_( | ||
"Cannot split picking %(name)s in state %(state)s", | ||
name=picking.name, | ||
state=picking.state, | ||
) | ||
) | ||
|
||
|
||
class NotPossibleToSplitPickError(UserError): | ||
""" | ||
Exception class to represent stock picking split error for picking | ||
""" | ||
|
||
def __init__(self, env, picking): | ||
self.env = env | ||
super().__init__( | ||
_("Cannot split off all moves from picking %(name)s", name=picking.name) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_split_picking | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2018-06-30 05:01+0000\n" | ||
"Last-Translator: Osoul <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" | ||
"X-Generator: Weblate 3.0.1\n" | ||
|
||
#. module: stock_split_picking | ||
#: model_terms:ir.ui.view,arch_db:stock_split_picking.view_stock_split_picking | ||
msgid "Cancel" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#. odoo-python | ||
#: code:addons/stock_split_picking/models/stock_picking.py:0 | ||
#, python-format | ||
msgid "Cannot split off all moves from picking %s" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#. odoo-python | ||
#: code:addons/stock_split_picking/models/stock_picking.py:0 | ||
#, python-format | ||
msgid "Cannot split picking {name} in state {state}" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__create_uid | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__create_date | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model_terms:ir.ui.view,arch_db:stock_split_picking.view_stock_split_picking | ||
msgid "Date" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__write_uid | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__write_date | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#. odoo-python | ||
#: code:addons/stock_split_picking/models/stock_picking.py:0 | ||
#, python-format | ||
msgid "Mark as todo this picking please." | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__mode | ||
msgid "Mode" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__move_ids | ||
msgid "Move" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields.selection,name:stock_split_picking.selection__stock_split_picking__mode__move | ||
msgid "One picking per move" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields,field_description:stock_split_picking.field_stock_split_picking__picking_ids | ||
msgid "Picking" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields.selection,name:stock_split_picking.selection__stock_split_picking__mode__quantity | ||
msgid "Quantities" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model.fields.selection,name:stock_split_picking.selection__stock_split_picking__mode__selection | ||
msgid "Select move lines to split off" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model_terms:ir.ui.view,arch_db:stock_split_picking.view_picking_form | ||
#: model_terms:ir.ui.view,arch_db:stock_split_picking.view_stock_split_picking | ||
msgid "Split" | ||
msgstr "تقسيم الشحنة" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model,name:stock_split_picking.model_stock_split_picking | ||
msgid "Split a picking" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.actions.act_window,name:stock_split_picking.action_stock_split_picking | ||
msgid "Split pickings" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#. odoo-python | ||
#: code:addons/stock_split_picking/models/stock_picking.py:0 | ||
#, python-format | ||
msgid "The backorder %s has been created." | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model:ir.model,name:stock_split_picking.model_stock_picking | ||
msgid "Transfer" | ||
msgstr "نقل" | ||
|
||
#. module: stock_split_picking | ||
#: model_terms:ir.ui.view,arch_db:stock_split_picking.view_stock_split_picking | ||
msgid "Unit of Measure" | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#. odoo-python | ||
#: code:addons/stock_split_picking/models/stock_picking.py:0 | ||
#, python-format | ||
msgid "You must enter quantity in order to split your picking in several ones." | ||
msgstr "" | ||
|
||
#. module: stock_split_picking | ||
#: model_terms:ir.ui.view,arch_db:stock_split_picking.view_stock_split_picking | ||
msgid "or" | ||
msgstr "" | ||
|
||
#, python-format | ||
#~ msgid "" | ||
#~ "You must enter done quantity in order to split your picking in several " | ||
#~ "ones." | ||
#~ msgstr "" | ||
#~ "يجب إدخال الكميات المنتهية لكي تتمكن من تقسيم الشحنة الحالية إلى أكثر من " | ||
#~ "شحنة." | ||
|
||
#, python-format | ||
#~ msgid "" | ||
#~ "The backorder <a href=\"#\" data-oe-model=\"stock.picking\" data-oe-id=" | ||
#~ "\"%d\">%s</a> has been created." | ||
#~ msgstr "" | ||
#~ "تم إنشاء الشحنة المؤجّلة <a href=\"#\" data-oe-model=\"stock.picking\" " | ||
#~ "data-oe-id=\"%d\">%s</a>." | ||
|
||
#~ msgid "Are you sure you want to split current picking?" | ||
#~ msgstr "هل أنت متأكد أنّك تريد تقسيم الشحنة؟" |
Oops, something went wrong.