odoo-addon-stock-release-channel 16.0.3.1.0__py3-none-any.whl → 18.0.1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/stock_release_channel/README.rst +77 -67
- odoo/addons/stock_release_channel/__manifest__.py +4 -4
- odoo/addons/stock_release_channel/data/ir_cron_data.xml +0 -3
- odoo/addons/stock_release_channel/data/queue_job_data.xml +0 -2
- odoo/addons/stock_release_channel/demo/stock_release_channel.xml +0 -2
- odoo/addons/stock_release_channel/i18n/stock_release_channel.pot +4 -35
- odoo/addons/stock_release_channel/models/res_partner.py +0 -1
- odoo/addons/stock_release_channel/models/stock_picking.py +5 -5
- odoo/addons/stock_release_channel/models/stock_release_channel.py +29 -18
- odoo/addons/stock_release_channel/readme/CONFIGURE.md +2 -0
- odoo/addons/stock_release_channel/readme/CONTRIBUTORS.md +11 -0
- odoo/addons/stock_release_channel/readme/CREDITS.md +4 -0
- odoo/addons/stock_release_channel/readme/DESCRIPTION.md +18 -0
- odoo/addons/stock_release_channel/readme/USAGE.md +31 -0
- odoo/addons/stock_release_channel/security/stock_release_channel.xml +0 -2
- odoo/addons/stock_release_channel/static/description/index.html +70 -56
- odoo/addons/stock_release_channel/static/src/js/progressbar_fractional_widget.esm.js +48 -0
- odoo/addons/stock_release_channel/static/src/scss/stock_release_channel.scss +3 -4
- odoo/addons/stock_release_channel/tests/common.py +16 -6
- odoo/addons/stock_release_channel/tests/test_release_channel.py +2 -1
- odoo/addons/stock_release_channel/views/res_config_settings.xml +13 -22
- odoo/addons/stock_release_channel/views/res_partner.xml +0 -2
- odoo/addons/stock_release_channel/views/stock_picking_views.xml +0 -2
- odoo/addons/stock_release_channel/views/stock_release_channel_views.xml +198 -231
- odoo_addon_stock_release_channel-18.0.1.0.1.dist-info/METADATA +192 -0
- {odoo_addon_stock_release_channel-16.0.3.1.0.dist-info → odoo_addon_stock_release_channel-18.0.1.0.1.dist-info}/RECORD +28 -29
- {odoo_addon_stock_release_channel-16.0.3.1.0.dist-info → odoo_addon_stock_release_channel-18.0.1.0.1.dist-info}/WHEEL +1 -1
- odoo_addon_stock_release_channel-18.0.1.0.1.dist-info/top_level.txt +1 -0
- odoo/addons/stock_release_channel/migrations/16.0.1.0.1/pre-migrate.py +0 -13
- odoo/addons/stock_release_channel/readme/CONFIGURE.rst +0 -2
- odoo/addons/stock_release_channel/readme/CONTRIBUTORS.rst +0 -12
- odoo/addons/stock_release_channel/readme/CREDITS.rst +0 -4
- odoo/addons/stock_release_channel/readme/DESCRIPTION.rst +0 -15
- odoo/addons/stock_release_channel/readme/USAGE.rst +0 -28
- odoo/addons/stock_release_channel/static/src/js/progressbar_fractional_widget.js +0 -83
- odoo_addon_stock_release_channel-16.0.3.1.0.dist-info/METADATA +0 -181
- odoo_addon_stock_release_channel-16.0.3.1.0.dist-info/top_level.txt +0 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
2
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
3
|
+
:alt: Odoo Community Association
|
|
4
|
+
|
|
1
5
|
======================
|
|
2
6
|
Stock Release Channels
|
|
3
7
|
======================
|
|
@@ -7,42 +11,45 @@ Stock Release Channels
|
|
|
7
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
12
|
!! changes will be overwritten. !!
|
|
9
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:2fc7fde5d0257ac78be0f00119694042aa4d7d17f793ac64c577bc536d1b9100
|
|
11
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
16
|
|
|
13
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
14
18
|
:target: https://odoo-community.org/page/development-status
|
|
15
19
|
:alt: Beta
|
|
16
|
-
.. |badge2| image:: https://img.shields.io/badge/
|
|
20
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
17
21
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
22
|
:alt: License: AGPL-3
|
|
19
|
-
.. |badge3| image:: https://img.shields.io/badge/github-OCA%
|
|
20
|
-
:target: https://github.com/OCA/
|
|
21
|
-
:alt: OCA/
|
|
23
|
+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--release--channel-lightgray.png?logo=github
|
|
24
|
+
:target: https://github.com/OCA/stock-logistics-release-channel/tree/18.0/stock_release_channel
|
|
25
|
+
:alt: OCA/stock-logistics-release-channel
|
|
22
26
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/
|
|
27
|
+
:target: https://translation.odoo-community.org/projects/stock-logistics-release-channel-18-0/stock-logistics-release-channel-18-0-stock_release_channel
|
|
24
28
|
:alt: Translate me on Weblate
|
|
25
29
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/
|
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-release-channel&target_branch=18.0
|
|
27
31
|
:alt: Try me on Runboat
|
|
28
32
|
|
|
29
33
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
30
34
|
|
|
31
35
|
Release channels are:
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
- Release channels are created by stock managers (only pallets, only
|
|
38
|
+
parcels, ...)
|
|
39
|
+
- A release channel has a sequence, a domain + possibility to use python
|
|
40
|
+
code
|
|
41
|
+
- When a delivery is: created from a sales order / created as backorder
|
|
42
|
+
/ released, each release channel is evaluated against it (domain +
|
|
43
|
+
python code), the delivery is assigned to the first channel that
|
|
44
|
+
matches
|
|
45
|
+
- A release channel can change over time: for instance the evaluation of
|
|
46
|
+
a domain or rule can change if a delivery is only partially released
|
|
47
|
+
- A kanban board allows tracking how many [To Do Today, Released, Done
|
|
48
|
+
Today, Waiting, Late, Priority] Transfers are in each channel, plus
|
|
49
|
+
quick access to all the pick/pack transfers for released deliveries
|
|
50
|
+
- A button on each channel allows to release the next X (configured on
|
|
51
|
+
the channel) transfers (max X at a time, it releases X - currently
|
|
52
|
+
released and not done)
|
|
46
53
|
|
|
47
54
|
**Table of contents**
|
|
48
55
|
|
|
@@ -52,48 +59,51 @@ Release channels are:
|
|
|
52
59
|
Configuration
|
|
53
60
|
=============
|
|
54
61
|
|
|
55
|
-
In Inventory > Configuration > Release Channels.
|
|
56
|
-
|
|
62
|
+
In Inventory > Configuration > Release Channels. Only Stock Managers
|
|
63
|
+
have write permissions.
|
|
57
64
|
|
|
58
65
|
Usage
|
|
59
66
|
=====
|
|
60
67
|
|
|
61
|
-
Use Inventory > Operations > Release Channels to access to the
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
68
|
+
Use Inventory > Operations > Release Channels to access to the
|
|
69
|
+
dashboard.
|
|
70
|
+
|
|
71
|
+
Each channel has a dashboard with statistics about the number of
|
|
72
|
+
transfers to release and of the progress of the released transfers.
|
|
73
|
+
|
|
74
|
+
When clicking on the "box" button, transfers are released automatically,
|
|
75
|
+
to reach a total of <Max Transfers to release> (option configured in the
|
|
76
|
+
channel settings).
|
|
77
|
+
|
|
78
|
+
The availability of a release channel depends on its state. A release
|
|
79
|
+
channel can be in one of the following states:
|
|
80
|
+
|
|
81
|
+
- Open: the channel is available and can be used to release
|
|
82
|
+
transfers. New transfer are assigned automatically to this channel.
|
|
83
|
+
- Locked: the channel is available but the release of transfers from
|
|
84
|
+
the channel is no more possible. New transfers are still
|
|
85
|
+
automatically assigned to this
|
|
86
|
+
- Asleep: the channel is not available and cannot be used to release
|
|
87
|
+
transfers. It is also no more possible to assign transfers to this
|
|
88
|
+
channel.
|
|
89
|
+
|
|
90
|
+
New release channels are by default "Open". You can change its state by
|
|
91
|
+
using the "Lock" and "Sleep" buttons. When the "Sleep" button is used,
|
|
92
|
+
in addition to the state change, not completed transfers assigned to the
|
|
93
|
+
channel are unassigned from the channel. When the "Lock" button is used,
|
|
94
|
+
only the state change is changed. A locked channel can be unlocked by
|
|
95
|
+
using the "Unlock" button. A asleep channel can be waken up by using the
|
|
96
|
+
"Wake up" button. When the "Wake up" button is used, in addition to the
|
|
97
|
+
state change, the system looks for pending transfers requiring a release
|
|
98
|
+
and try to assign them to a channel in the "Open" or "Locked" state.
|
|
89
99
|
|
|
90
100
|
Bug Tracker
|
|
91
101
|
===========
|
|
92
102
|
|
|
93
|
-
Bugs are tracked on `GitHub Issues <https://github.com/OCA/
|
|
103
|
+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-release-channel/issues>`_.
|
|
94
104
|
In case of trouble, please check there if your issue has already been reported.
|
|
95
105
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
96
|
-
`feedback <https://github.com/OCA/
|
|
106
|
+
`feedback <https://github.com/OCA/stock-logistics-release-channel/issues/new?body=module:%20stock_release_channel%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
97
107
|
|
|
98
108
|
Do not contact contributors directly about support or help with technical issues.
|
|
99
109
|
|
|
@@ -101,38 +111,38 @@ Credits
|
|
|
101
111
|
=======
|
|
102
112
|
|
|
103
113
|
Authors
|
|
104
|
-
|
|
114
|
+
-------
|
|
105
115
|
|
|
106
116
|
* Camptocamp
|
|
107
117
|
* BCIM
|
|
108
118
|
* ACSONE SA/NV
|
|
109
119
|
|
|
110
120
|
Contributors
|
|
111
|
-
|
|
121
|
+
------------
|
|
112
122
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
123
|
+
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
|
124
|
+
- Matthieu Méquignon <matthieu.mequignon@camptocamp.com>
|
|
125
|
+
- Sébastien Alix <sebastien.alix@camptocamp.com>
|
|
126
|
+
- Jacques-Etienne Baudoux <je@bcim.be>
|
|
127
|
+
- Laurent Mignon <laurent.mignon@acsone.eu>
|
|
128
|
+
- Michael Tietz (MT Software) <mtietz@mt-software.de>
|
|
119
129
|
|
|
120
130
|
Design
|
|
121
131
|
~~~~~~
|
|
122
132
|
|
|
123
|
-
|
|
124
|
-
|
|
133
|
+
- Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
|
|
134
|
+
- Jacques-Etienne Baudoux <je@bcim.be>
|
|
125
135
|
|
|
126
136
|
Other credits
|
|
127
|
-
|
|
137
|
+
-------------
|
|
128
138
|
|
|
129
139
|
**Financial support**
|
|
130
140
|
|
|
131
|
-
|
|
132
|
-
|
|
141
|
+
- Cosanum
|
|
142
|
+
- Camptocamp R&D
|
|
133
143
|
|
|
134
144
|
Maintainers
|
|
135
|
-
|
|
145
|
+
-----------
|
|
136
146
|
|
|
137
147
|
This module is maintained by the OCA.
|
|
138
148
|
|
|
@@ -158,6 +168,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|
|
|
158
168
|
|
|
159
169
|
|maintainer-sebalix| |maintainer-jbaudoux| |maintainer-mt-software-de|
|
|
160
170
|
|
|
161
|
-
This module is part of the `OCA/
|
|
171
|
+
This module is part of the `OCA/stock-logistics-release-channel <https://github.com/OCA/stock-logistics-release-channel/tree/18.0/stock_release_channel>`_ project on GitHub.
|
|
162
172
|
|
|
163
173
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
{
|
|
6
6
|
"name": "Stock Release Channels",
|
|
7
7
|
"summary": "Manage workload in WMS with release channels",
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "18.0.1.0.1",
|
|
9
9
|
"development_status": "Beta",
|
|
10
10
|
"license": "AGPL-3",
|
|
11
11
|
"author": "Camptocamp, BCIM, ACSONE SA/NV, Odoo Community Association (OCA)",
|
|
12
12
|
"maintainers": ["sebalix", "jbaudoux", "mt-software-de"],
|
|
13
|
-
"website": "https://github.com/OCA/
|
|
13
|
+
"website": "https://github.com/OCA/stock-logistics-release-channel",
|
|
14
14
|
"depends": [
|
|
15
15
|
"web",
|
|
16
|
-
"stock_available_to_promise_release", # OCA/
|
|
16
|
+
"stock_available_to_promise_release", # OCA/stock-logistics-reservation
|
|
17
17
|
"queue_job", # OCA/queue
|
|
18
18
|
],
|
|
19
19
|
"data": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"assets": {
|
|
32
32
|
"web.assets_backend": [
|
|
33
33
|
"stock_release_channel/static/src/scss/stock_release_channel.scss",
|
|
34
|
-
"stock_release_channel/static/src/js/progressbar_fractional_widget.js",
|
|
34
|
+
"stock_release_channel/static/src/js/progressbar_fractional_widget.esm.js",
|
|
35
35
|
],
|
|
36
36
|
},
|
|
37
37
|
"installable": True,
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
2
|
<odoo noupdate="1">
|
|
3
|
-
|
|
4
3
|
<!-- To plan during the night -->
|
|
5
4
|
<record id="ir_cron_stock_picking_assign_release_channel" model="ir.cron">
|
|
6
5
|
<field name="name">Re-assign release channel</field>
|
|
7
6
|
<field name="interval_number">1</field>
|
|
8
7
|
<field name="interval_type">days</field>
|
|
9
|
-
<field name="numbercall">-1</field>
|
|
10
8
|
<field name="active">False</field>
|
|
11
9
|
<field ref="stock.model_stock_picking" name="model_id" />
|
|
12
10
|
<field name="state">code</field>
|
|
13
11
|
<field name="code">model.assign_release_channel_on_all_need_release()</field>
|
|
14
12
|
</record>
|
|
15
|
-
|
|
16
13
|
</odoo>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
2
|
<odoo noupdate="1">
|
|
3
|
-
|
|
4
3
|
<record model="queue.job.channel" id="stock_release_channel">
|
|
5
4
|
<field name="name">stock_release_channel</field>
|
|
6
5
|
<field name="parent_id" ref="queue_job.channel_root" />
|
|
@@ -14,5 +13,4 @@
|
|
|
14
13
|
<field name="method">assign_release_channel</field>
|
|
15
14
|
<field name="channel_id" ref="stock_release_channel" />
|
|
16
15
|
</record>
|
|
17
|
-
|
|
18
16
|
</odoo>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
2
|
<odoo noupdate="1">
|
|
3
|
-
|
|
4
3
|
<record model="stock.release.channel" id="stock_release_channel_default">
|
|
5
4
|
<field name="name">Default</field>
|
|
6
5
|
<field name="sequence">999</field>
|
|
7
6
|
<field name="rule_domain">[]</field>
|
|
8
7
|
<field name="state">open</field>
|
|
9
8
|
</record>
|
|
10
|
-
|
|
11
9
|
</odoo>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 18.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -20,11 +20,6 @@ msgid ""
|
|
|
20
20
|
"title=\"Automatic Release\"/>"
|
|
21
21
|
msgstr ""
|
|
22
22
|
|
|
23
|
-
#. module: stock_release_channel
|
|
24
|
-
#: model_terms:ir.ui.view,arch_db:stock_release_channel.stock_release_channel_kanban_view
|
|
25
|
-
msgid "<i class=\"fa fa-ellipsis-v\" role=\"img\" aria-label=\"Details\" title=\"Details\"/>"
|
|
26
|
-
msgstr ""
|
|
27
|
-
|
|
28
23
|
#. module: stock_release_channel
|
|
29
24
|
#: model_terms:ir.ui.view,arch_db:stock_release_channel.stock_release_channel_kanban_view
|
|
30
25
|
msgid "<span class=\"ms-2\">Lock</span>"
|
|
@@ -53,28 +48,24 @@ msgstr ""
|
|
|
53
48
|
#. module: stock_release_channel
|
|
54
49
|
#. odoo-python
|
|
55
50
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
56
|
-
#, python-format
|
|
57
51
|
msgid "Action 'Lock' is not allowed for channel %(name)s."
|
|
58
52
|
msgstr ""
|
|
59
53
|
|
|
60
54
|
#. module: stock_release_channel
|
|
61
55
|
#. odoo-python
|
|
62
56
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
63
|
-
#, python-format
|
|
64
57
|
msgid "Action 'Sleep' is not allowed for channel %(name)s."
|
|
65
58
|
msgstr ""
|
|
66
59
|
|
|
67
60
|
#. module: stock_release_channel
|
|
68
61
|
#. odoo-python
|
|
69
62
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
70
|
-
#, python-format
|
|
71
63
|
msgid "Action 'Unlock' is not allowed for channel %(name)s."
|
|
72
64
|
msgstr ""
|
|
73
65
|
|
|
74
66
|
#. module: stock_release_channel
|
|
75
67
|
#. odoo-python
|
|
76
68
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
77
|
-
#, python-format
|
|
78
69
|
msgid "Action 'Wake Up' is not allowed for channel %(name)s."
|
|
79
70
|
msgstr ""
|
|
80
71
|
|
|
@@ -102,7 +93,6 @@ msgstr ""
|
|
|
102
93
|
#. odoo-python
|
|
103
94
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
104
95
|
#: model:ir.model.fields,field_description:stock_release_channel.field_stock_release_channel__count_picking_chain
|
|
105
|
-
#, python-format
|
|
106
96
|
msgid "All Related Transfers"
|
|
107
97
|
msgstr ""
|
|
108
98
|
|
|
@@ -129,12 +119,8 @@ msgstr ""
|
|
|
129
119
|
|
|
130
120
|
#. module: stock_release_channel
|
|
131
121
|
#: model:ir.model.fields.selection,name:stock_release_channel.selection__stock_release_channel__state__asleep
|
|
132
|
-
msgid "Asleep"
|
|
133
|
-
msgstr ""
|
|
134
|
-
|
|
135
|
-
#. module: stock_release_channel
|
|
136
122
|
#: model_terms:ir.ui.view,arch_db:stock_release_channel.stock_release_channel_search_view
|
|
137
|
-
msgid "
|
|
123
|
+
msgid "Asleep"
|
|
138
124
|
msgstr ""
|
|
139
125
|
|
|
140
126
|
#. module: stock_release_channel
|
|
@@ -145,7 +131,6 @@ msgstr ""
|
|
|
145
131
|
#. module: stock_release_channel
|
|
146
132
|
#. odoo-python
|
|
147
133
|
#: code:addons/stock_release_channel/models/stock_picking.py:0
|
|
148
|
-
#, python-format
|
|
149
134
|
msgid "Assign release channel on %s"
|
|
150
135
|
msgstr ""
|
|
151
136
|
|
|
@@ -177,7 +162,6 @@ msgstr ""
|
|
|
177
162
|
#. module: stock_release_channel
|
|
178
163
|
#. odoo-python
|
|
179
164
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
180
|
-
#, python-format
|
|
181
165
|
msgid "Channel %(name)s has no validated transfer yet."
|
|
182
166
|
msgstr ""
|
|
183
167
|
|
|
@@ -260,7 +244,6 @@ msgstr ""
|
|
|
260
244
|
#. module: stock_release_channel
|
|
261
245
|
#. odoo-python
|
|
262
246
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
263
|
-
#, python-format
|
|
264
247
|
msgid ""
|
|
265
248
|
"Error when evaluating the channel's code:\n"
|
|
266
249
|
" %(name)s \n"
|
|
@@ -340,11 +323,6 @@ msgstr ""
|
|
|
340
323
|
msgid "Last Done Transfer"
|
|
341
324
|
msgstr ""
|
|
342
325
|
|
|
343
|
-
#. module: stock_release_channel
|
|
344
|
-
#: model:ir.model.fields,field_description:stock_release_channel.field_stock_release_channel____last_update
|
|
345
|
-
msgid "Last Modified on"
|
|
346
|
-
msgstr ""
|
|
347
|
-
|
|
348
326
|
#. module: stock_release_channel
|
|
349
327
|
#: model_terms:ir.ui.view,arch_db:stock_release_channel.stock_release_channel_kanban_view
|
|
350
328
|
msgid "Last Transfer"
|
|
@@ -432,7 +410,6 @@ msgstr ""
|
|
|
432
410
|
#. module: stock_release_channel
|
|
433
411
|
#. odoo-python
|
|
434
412
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
435
|
-
#, python-format
|
|
436
413
|
msgid "No Max transfers to release is configured."
|
|
437
414
|
msgstr ""
|
|
438
415
|
|
|
@@ -450,7 +427,6 @@ msgstr ""
|
|
|
450
427
|
#. odoo-python
|
|
451
428
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
452
429
|
#: code:addons/stock_release_channel/tests/common.py:0
|
|
453
|
-
#, python-format
|
|
454
430
|
msgid "Nothing in the queue!"
|
|
455
431
|
msgstr ""
|
|
456
432
|
|
|
@@ -513,7 +489,6 @@ msgstr ""
|
|
|
513
489
|
|
|
514
490
|
#. module: stock_release_channel
|
|
515
491
|
#: model:ir.actions.server,name:stock_release_channel.ir_cron_stock_picking_assign_release_channel_ir_actions_server
|
|
516
|
-
#: model:ir.cron,cron_name:stock_release_channel.ir_cron_stock_picking_assign_release_channel
|
|
517
492
|
msgid "Re-assign release channel"
|
|
518
493
|
msgstr ""
|
|
519
494
|
|
|
@@ -669,7 +644,6 @@ msgstr ""
|
|
|
669
644
|
#. module: stock_release_channel
|
|
670
645
|
#. odoo-python
|
|
671
646
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
672
|
-
#, python-format
|
|
673
647
|
msgid ""
|
|
674
648
|
"The number of released transfers in progress is already at the maximum."
|
|
675
649
|
msgstr ""
|
|
@@ -677,7 +651,6 @@ msgstr ""
|
|
|
677
651
|
#. module: stock_release_channel
|
|
678
652
|
#. odoo-python
|
|
679
653
|
#: code:addons/stock_release_channel/models/stock_release_channel.py:0
|
|
680
|
-
#, python-format
|
|
681
654
|
msgid "The release of pickings is not allowed for channel %(name)s."
|
|
682
655
|
msgstr ""
|
|
683
656
|
|
|
@@ -685,11 +658,8 @@ msgstr ""
|
|
|
685
658
|
#: model:ir.model.fields,help:stock_release_channel.field_stock_release_channel__state
|
|
686
659
|
msgid ""
|
|
687
660
|
"The state allows you to control the availability of the release channel.\n"
|
|
688
|
-
"* Open: Manual and automatic picking assignment to the release is effective and release operations are allowed.\n"
|
|
689
|
-
"
|
|
690
|
-
"* Delivering: A background task is running to automatically deliver ready shipments\n"
|
|
691
|
-
"* Delivering Error: An error occurred in the delivery background task\n"
|
|
692
|
-
"* Delivered: Ready transfers are delivered\n"
|
|
661
|
+
" * Open: Manual and automatic picking assignment to the release is effective and release operations are allowed.\n"
|
|
662
|
+
"* Locked: Release operations are forbidden. (Assignement processes are still working)\n"
|
|
693
663
|
"* Asleep: Assigned pickings not processed are unassigned from the release channel.\n"
|
|
694
664
|
msgstr ""
|
|
695
665
|
|
|
@@ -800,7 +770,6 @@ msgstr ""
|
|
|
800
770
|
#. module: stock_release_channel
|
|
801
771
|
#. odoo-python
|
|
802
772
|
#: code:addons/stock_release_channel/models/stock_picking.py:0
|
|
803
|
-
#, python-format
|
|
804
773
|
msgid ""
|
|
805
774
|
"You cannot release delivery of the channel %s because it has been forbidden "
|
|
806
775
|
"in the release channel configuration"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Copyright 2024 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
|
|
3
3
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
|
4
4
|
|
|
5
|
-
from odoo import
|
|
5
|
+
from odoo import exceptions, fields, models
|
|
6
6
|
from odoo.osv import expression
|
|
7
7
|
|
|
8
8
|
from odoo.addons.queue_job.job import identity_exact
|
|
@@ -49,7 +49,7 @@ class StockPicking(models.Model):
|
|
|
49
49
|
for picking in self:
|
|
50
50
|
picking.with_delay(
|
|
51
51
|
identity_key=identity_exact,
|
|
52
|
-
description=_("Assign release channel on %s") % picking.name,
|
|
52
|
+
description=self.env._("Assign release channel on %s") % picking.name,
|
|
53
53
|
).assign_release_channel()
|
|
54
54
|
|
|
55
55
|
def assign_release_channel(self):
|
|
@@ -65,7 +65,7 @@ class StockPicking(models.Model):
|
|
|
65
65
|
channel = record.release_channel_id
|
|
66
66
|
if channel.release_forbidden:
|
|
67
67
|
raise exceptions.UserError(
|
|
68
|
-
_(
|
|
68
|
+
self.env._(
|
|
69
69
|
"You cannot release delivery of the channel %s because "
|
|
70
70
|
"it has been forbidden in the release channel configuration"
|
|
71
71
|
)
|
|
@@ -73,8 +73,8 @@ class StockPicking(models.Model):
|
|
|
73
73
|
)
|
|
74
74
|
return super().release_available_to_promise()
|
|
75
75
|
|
|
76
|
-
def _create_backorder(self):
|
|
77
|
-
backorders = super()._create_backorder()
|
|
76
|
+
def _create_backorder(self, backorder_moves=None):
|
|
77
|
+
backorders = super()._create_backorder(backorder_moves=backorder_moves)
|
|
78
78
|
backorders._delay_assign_release_channel()
|
|
79
79
|
return backorders
|
|
80
80
|
|