Skip to content

Commit 7586a22

Browse files
glitchovrousseldenis
authored andcommitted
[16.0][ADD] stock_picking_low_priotiy
1 parent c3543cc commit 7586a22

File tree

14 files changed

+706
-0
lines changed

14 files changed

+706
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../stock_picking_low_priority
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
==========================
2+
Stock Picking Low Priority
3+
==========================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
17+
:target: https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_low_priority
18+
:alt: OCA/stock-logistics-workflow
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_low_priority
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
23+
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/stock-logistics-workflow&target_branch=16.0
24+
:alt: Try me on Runboat
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
This module reintroduces a low priority (Not urgent) on stock picking
29+
therefore stock move (compute). The goal is to make some moves less
30+
important and serve them after others.
31+
32+
**Table of contents**
33+
34+
.. contents::
35+
:local:
36+
37+
Bug Tracker
38+
===========
39+
40+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/issues>`_.
41+
In case of trouble, please check there if your issue has already been reported.
42+
If you spotted it first, help us smashing it by providing a detailed and welcomed
43+
`feedback <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_picking_low_priority%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
44+
45+
Do not contact contributors directly about support or help with technical issues.
46+
47+
Credits
48+
=======
49+
50+
Authors
51+
~~~~~~~
52+
53+
* ACSONE SA/NV
54+
55+
Contributors
56+
~~~~~~~~~~~~
57+
58+
* Nans Lefebvre <[email protected]>
59+
* Hughes Damry <[email protected]>
60+
61+
Maintainers
62+
~~~~~~~~~~~
63+
64+
This module is maintained by the OCA.
65+
66+
.. image:: https://odoo-community.org/logo.png
67+
:alt: Odoo Community Association
68+
:target: https://odoo-community.org
69+
70+
OCA, or the Odoo Community Association, is a nonprofit organization whose
71+
mission is to support the collaborative development of Odoo features and
72+
promote its widespread use.
73+
74+
This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_low_priority>`_ project on GitHub.
75+
76+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2023 ACSONE SA/NV
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from . import models
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2023 ACSONE SA/NV
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Stock Picking Low Priority",
6+
"summary": """
7+
Reintroduces low priority in stock picking/stock move""",
8+
"version": "16.0.1.0.0",
9+
"license": "AGPL-3",
10+
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
11+
"website": "https://github.com/OCA/stock-logistics-workflow",
12+
"depends": ["stock"],
13+
"installable": True,
14+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_picking_low_priority
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2023-01-20 14:00+0000\n"
10+
"PO-Revision-Date: 2023-01-20 14:00+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: stock_picking_low_priority
19+
#: model:ir.model.fields.selection,name:stock_picking_low_priority.selection__stock_move__priority__-1
20+
#: model:ir.model.fields.selection,name:stock_picking_low_priority.selection__stock_picking__priority__-1
21+
msgid "Not urgent"
22+
msgstr ""
23+
24+
#. module: stock_picking_low_priority
25+
#: model:ir.model.fields,field_description:stock_picking_low_priority.field_stock_move__priority
26+
#: model:ir.model.fields,field_description:stock_picking_low_priority.field_stock_picking__priority
27+
msgid "Priority"
28+
msgstr ""
29+
30+
#. module: stock_picking_low_priority
31+
#: model:ir.model.fields,help:stock_picking_low_priority.field_stock_picking__priority
32+
msgid ""
33+
"Products will be reserved first for the transfers with the highest "
34+
"priorities."
35+
msgstr ""
36+
37+
#. module: stock_picking_low_priority
38+
#: model:ir.model,name:stock_picking_low_priority.model_stock_move
39+
msgid "Stock Move"
40+
msgstr ""
41+
42+
#. module: stock_picking_low_priority
43+
#: model:ir.model,name:stock_picking_low_priority.model_stock_picking
44+
msgid "Transfer"
45+
msgstr ""
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright 2023 ACSONE SA/NV
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from . import stock_move
5+
from . import stock_picking
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2023 ACSONE SA/NV
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class StockMove(models.Model):
8+
_inherit = "stock.move"
9+
10+
priority = fields.Selection(
11+
selection_add=[("-1", "Not urgent"), ("0",)], ondelete={"-1": "set default"}
12+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2023 ACSONE SA/NV
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class Picking(models.Model):
8+
_inherit = "stock.picking"
9+
10+
priority = fields.Selection(
11+
selection_add=[("-1", "Not urgent"), ("0",)], ondelete={"-1": "set default"}
12+
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* Nans Lefebvre <[email protected]>
2+
* Hughes Damry <[email protected]>

0 commit comments

Comments
 (0)