odoo-addon-mrp-production-grouped-by-product 15.0.1.0.1.1__py3-none-any.whl → 16.0.1.0.0.2__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/mrp_production_grouped_by_product/README.rst +17 -7
- odoo/addons/mrp_production_grouped_by_product/__manifest__.py +1 -1
- odoo/addons/mrp_production_grouped_by_product/i18n/es.po +9 -9
- odoo/addons/mrp_production_grouped_by_product/i18n/it.po +6 -6
- odoo/addons/mrp_production_grouped_by_product/i18n/mrp_production_grouped_by_product.pot +3 -1
- odoo/addons/mrp_production_grouped_by_product/models/mrp_production.py +20 -18
- odoo/addons/mrp_production_grouped_by_product/models/stock_picking_type.py +13 -8
- odoo/addons/mrp_production_grouped_by_product/readme/CONTRIBUTORS.rst +6 -0
- odoo/addons/mrp_production_grouped_by_product/static/description/index.html +41 -27
- odoo/addons/mrp_production_grouped_by_product/tests/test_mrp_production_grouped_by_product.py +4 -6
- {odoo_addon_mrp_production_grouped_by_product-15.0.1.0.1.1.dist-info → odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info}/METADATA +21 -11
- {odoo_addon_mrp_production_grouped_by_product-15.0.1.0.1.1.dist-info → odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info}/RECORD +14 -14
- {odoo_addon_mrp_production_grouped_by_product-15.0.1.0.1.1.dist-info → odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info}/WHEEL +1 -1
- {odoo_addon_mrp_production_grouped_by_product-15.0.1.0.1.1.dist-info → odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info}/top_level.txt +0 -0
@@ -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
|
Production Grouped By Product
|
3
7
|
=============================
|
@@ -7,23 +11,23 @@ Production Grouped By Product
|
|
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:9035ac9c513a8cdf00ff67a8fe326fe0ebbd3c350fa01a5555ea16dc091b9a2f
|
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
23
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
|
20
|
-
:target: https://github.com/OCA/manufacture/tree/
|
24
|
+
:target: https://github.com/OCA/manufacture/tree/16.0/mrp_production_grouped_by_product
|
21
25
|
:alt: OCA/manufacture
|
22
26
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
23
|
-
:target: https://translation.odoo-community.org/projects/manufacture-
|
27
|
+
:target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_production_grouped_by_product
|
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/manufacture&target_branch=
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=16.0
|
27
31
|
:alt: Try me on Runboat
|
28
32
|
|
29
33
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
@@ -118,7 +122,7 @@ Bug Tracker
|
|
118
122
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_.
|
119
123
|
In case of trouble, please check there if your issue has already been reported.
|
120
124
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
121
|
-
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%
|
125
|
+
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
122
126
|
|
123
127
|
Do not contact contributors directly about support or help with technical issues.
|
124
128
|
|
@@ -150,6 +154,12 @@ Contributors
|
|
150
154
|
|
151
155
|
* Salva Benlloch <sbenlloch@puntsistemes.es>
|
152
156
|
|
157
|
+
* `InitOS <https://www.initos.com/>`__:
|
158
|
+
|
159
|
+
* Dhara Solanki <dhara.solanki@initos.com>
|
160
|
+
|
161
|
+
* `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_
|
162
|
+
|
153
163
|
Maintainers
|
154
164
|
~~~~~~~~~~~
|
155
165
|
|
@@ -163,6 +173,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
163
173
|
mission is to support the collaborative development of Odoo features and
|
164
174
|
promote its widespread use.
|
165
175
|
|
166
|
-
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/
|
176
|
+
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/16.0/mrp_production_grouped_by_product>`_ project on GitHub.
|
167
177
|
|
168
178
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
@@ -7,15 +7,14 @@ msgstr ""
|
|
7
7
|
"Project-Id-Version: Odoo Server 11.0\n"
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
9
9
|
"POT-Creation-Date: 2018-06-03 23:16+0000\n"
|
10
|
-
"PO-Revision-Date:
|
11
|
-
"Last-Translator:
|
10
|
+
"PO-Revision-Date: 2018-06-03 23:16+0000\n"
|
11
|
+
"Last-Translator: <>\n"
|
12
12
|
"Language-Team: \n"
|
13
|
-
"Language:
|
13
|
+
"Language: \n"
|
14
14
|
"MIME-Version: 1.0\n"
|
15
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
16
16
|
"Content-Transfer-Encoding: \n"
|
17
|
-
"Plural-Forms:
|
18
|
-
"X-Generator: Weblate 4.17\n"
|
17
|
+
"Plural-Forms: \n"
|
19
18
|
|
20
19
|
#. module: mrp_production_grouped_by_product
|
21
20
|
#: model:ir.model.fields,field_description:mrp_production_grouped_by_product.field_stock_picking_type__mo_grouping_interval
|
@@ -30,22 +29,23 @@ msgstr "Hora máx. agrupación OFs (UTC)"
|
|
30
29
|
#. module: mrp_production_grouped_by_product
|
31
30
|
#: model:ir.model,name:mrp_production_grouped_by_product.model_stock_picking_type
|
32
31
|
msgid "Picking Type"
|
33
|
-
msgstr "
|
32
|
+
msgstr ""
|
34
33
|
|
35
34
|
#. module: mrp_production_grouped_by_product
|
36
35
|
#: model:ir.model,name:mrp_production_grouped_by_product.model_mrp_production
|
36
|
+
#, fuzzy
|
37
37
|
msgid "Production Order"
|
38
|
-
msgstr "Orden
|
38
|
+
msgstr "Orden de fabricación"
|
39
39
|
|
40
40
|
#. module: mrp_production_grouped_by_product
|
41
41
|
#: model:ir.model,name:mrp_production_grouped_by_product.model_stock_move
|
42
42
|
msgid "Stock Move"
|
43
|
-
msgstr "
|
43
|
+
msgstr ""
|
44
44
|
|
45
45
|
#. module: mrp_production_grouped_by_product
|
46
46
|
#: model:ir.model,name:mrp_production_grouped_by_product.model_stock_rule
|
47
47
|
msgid "Stock Rule"
|
48
|
-
msgstr "
|
48
|
+
msgstr ""
|
49
49
|
|
50
50
|
#. module: mrp_production_grouped_by_product
|
51
51
|
#: model:ir.model.fields,help:mrp_production_grouped_by_product.field_stock_picking_type__mo_grouping_max_hour
|
@@ -6,7 +6,7 @@ msgid ""
|
|
6
6
|
msgstr ""
|
7
7
|
"Project-Id-Version: Odoo Server 15.0\n"
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
9
|
-
"PO-Revision-Date:
|
9
|
+
"PO-Revision-Date: 2022-12-19 14:44+0000\n"
|
10
10
|
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
11
11
|
"Language-Team: none\n"
|
12
12
|
"Language: it\n"
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14
14
|
"Content-Type: text/plain; charset=UTF-8\n"
|
15
15
|
"Content-Transfer-Encoding: \n"
|
16
16
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17
|
-
"X-Generator: Weblate
|
17
|
+
"X-Generator: Weblate 4.14.1\n"
|
18
18
|
|
19
19
|
#. module: mrp_production_grouped_by_product
|
20
20
|
#: model:ir.model.fields,field_description:mrp_production_grouped_by_product.field_stock_picking_type__mo_grouping_interval
|
@@ -34,7 +34,7 @@ msgstr "Tipo prelievo"
|
|
34
34
|
#. module: mrp_production_grouped_by_product
|
35
35
|
#: model:ir.model,name:mrp_production_grouped_by_product.model_mrp_production
|
36
36
|
msgid "Production Order"
|
37
|
-
msgstr "Ordine
|
37
|
+
msgstr "Ordine produzione"
|
38
38
|
|
39
39
|
#. module: mrp_production_grouped_by_product
|
40
40
|
#: model:ir.model,name:mrp_production_grouped_by_product.model_stock_move
|
@@ -44,13 +44,13 @@ msgstr "Movimento di magazzino"
|
|
44
44
|
#. module: mrp_production_grouped_by_product
|
45
45
|
#: model:ir.model,name:mrp_production_grouped_by_product.model_stock_rule
|
46
46
|
msgid "Stock Rule"
|
47
|
-
msgstr "Regola di
|
47
|
+
msgstr "Regola di magazzino"
|
48
48
|
|
49
49
|
#. module: mrp_production_grouped_by_product
|
50
50
|
#: model:ir.model.fields,help:mrp_production_grouped_by_product.field_stock_picking_type__mo_grouping_max_hour
|
51
51
|
msgid ""
|
52
|
-
"The maximum hour (between 0 and 23) for considering new manufacturing orders
|
53
|
-
"inside the same interval period, and thus being grouped on the same MO. "
|
52
|
+
"The maximum hour (between 0 and 23) for considering new manufacturing orders"
|
53
|
+
" inside the same interval period, and thus being grouped on the same MO. "
|
54
54
|
"IMPORTANT: The hour should be expressed in UTC."
|
55
55
|
msgstr ""
|
56
56
|
"L'ora massima (tra le 00 e le 23) per considerare nuovi ordini di produzione "
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
msgid ""
|
6
6
|
msgstr ""
|
7
|
-
"Project-Id-Version: Odoo Server
|
7
|
+
"Project-Id-Version: Odoo Server 16.0\n"
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
9
9
|
"Last-Translator: \n"
|
10
10
|
"Language-Team: \n"
|
@@ -58,12 +58,14 @@ msgid ""
|
|
58
58
|
msgstr ""
|
59
59
|
|
60
60
|
#. module: mrp_production_grouped_by_product
|
61
|
+
#. odoo-python
|
61
62
|
#: code:addons/mrp_production_grouped_by_product/models/stock_picking_type.py:0
|
62
63
|
#, python-format
|
63
64
|
msgid "You have to enter a positive value for interval."
|
64
65
|
msgstr ""
|
65
66
|
|
66
67
|
#. module: mrp_production_grouped_by_product
|
68
|
+
#. odoo-python
|
67
69
|
#: code:addons/mrp_production_grouped_by_product/models/stock_picking_type.py:0
|
68
70
|
#, python-format
|
69
71
|
msgid "You have to enter a valid hour between 0 and 23."
|
@@ -65,9 +65,9 @@ class MrpProduction(models.Model):
|
|
65
65
|
if date.hour < pt.mo_grouping_max_hour:
|
66
66
|
date_end = date.replace(hour=pt.mo_grouping_max_hour, minute=0, second=0)
|
67
67
|
else:
|
68
|
-
date_end = date
|
68
|
+
date_end = fields.Datetime.add(date, days=1)
|
69
69
|
date_end = date_end.replace(
|
70
|
-
hour=pt.mo_grouping_max_hour, minute=0, second=0
|
70
|
+
day=date.day + 1, hour=pt.mo_grouping_max_hour, minute=0, second=0
|
71
71
|
)
|
72
72
|
date_start = date_end - relativedelta(days=pt.mo_grouping_interval)
|
73
73
|
domain += [
|
@@ -87,25 +87,27 @@ class MrpProduction(models.Model):
|
|
87
87
|
self._get_grouping_target_domain(vals), limit=1
|
88
88
|
)
|
89
89
|
|
90
|
-
@api.
|
91
|
-
def create(self,
|
90
|
+
@api.model_create_multi
|
91
|
+
def create(self, vals_list):
|
92
92
|
context = self.env.context
|
93
93
|
if context.get("group_mo_by_product") and (
|
94
94
|
not config["test_enable"] or context.get("test_group_mo")
|
95
95
|
):
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
96
|
+
for vals in vals_list:
|
97
|
+
mo = self._find_grouping_target(vals)
|
98
|
+
if mo:
|
99
|
+
self.env["change.production.qty"].create(
|
100
|
+
{
|
101
|
+
"mo_id": mo.id,
|
102
|
+
"product_qty": mo.product_qty + vals["product_qty"],
|
103
|
+
}
|
104
|
+
).change_prod_qty()
|
105
|
+
mo._post_mo_merging_adjustments(vals)
|
106
|
+
return mo
|
107
|
+
return super(MrpProduction, self).create(vals_list)
|
108
|
+
|
109
|
+
@api.depends("bom_id", "product_id", "product_qty", "product_uom_id")
|
110
|
+
def _compute_workorder_ids(self):
|
109
111
|
# We need to skip the creation of workorders during `_run_manufacture`.
|
110
112
|
# It is not possible to pass a context from the `_post_mo_merging_adjustments`
|
111
113
|
# because the create is called with sudo in `_run_manufacture` and that
|
@@ -120,7 +122,7 @@ class MrpProduction(models.Model):
|
|
120
122
|
mo = self._find_grouping_target(vals)
|
121
123
|
if mo:
|
122
124
|
to_create_wos -= rec
|
123
|
-
return super(MrpProduction, to_create_wos).
|
125
|
+
return super(MrpProduction, to_create_wos)._compute_workorder_ids()
|
124
126
|
|
125
127
|
def _get_moves_finished_values(self):
|
126
128
|
# We need to skip the creation of more finished moves during `_run_manufacture`.
|
@@ -24,14 +24,19 @@ class StockPickingType(models.Model):
|
|
24
24
|
|
25
25
|
@api.constrains("mo_grouping_max_hour")
|
26
26
|
def _check_mo_grouping_max_hour(self):
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
for picking_type in self:
|
28
|
+
if (
|
29
|
+
picking_type.mo_grouping_max_hour < 0
|
30
|
+
or picking_type.mo_grouping_max_hour > 23
|
31
|
+
):
|
32
|
+
raise exceptions.ValidationError(
|
33
|
+
_("You have to enter a valid hour between 0 and 23.")
|
34
|
+
)
|
31
35
|
|
32
36
|
@api.constrains("mo_grouping_interval")
|
33
37
|
def _check_mo_grouping_interval(self):
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
+
for picking_type in self:
|
39
|
+
if picking_type.mo_grouping_interval < 0:
|
40
|
+
raise exceptions.ValidationError(
|
41
|
+
_("You have to enter a positive value for interval.")
|
42
|
+
)
|
@@ -14,3 +14,9 @@
|
|
14
14
|
* `Punt Sistemes <https://www.puntsistemes.com/>`__:
|
15
15
|
|
16
16
|
* Salva Benlloch <sbenlloch@puntsistemes.es>
|
17
|
+
|
18
|
+
* `InitOS <https://www.initos.com/>`__:
|
19
|
+
|
20
|
+
* Dhara Solanki <dhara.solanki@initos.com>
|
21
|
+
|
22
|
+
* `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_
|
@@ -3,15 +3,16 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
5
|
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
6
|
-
<title>
|
6
|
+
<title>README.rst</title>
|
7
7
|
<style type="text/css">
|
8
8
|
|
9
9
|
/*
|
10
10
|
:Author: David Goodger (goodger@python.org)
|
11
|
-
:Id: $Id: html4css1.css
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
12
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
13
13
|
|
14
14
|
Default cascading style sheet for the HTML output of Docutils.
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
15
16
|
|
16
17
|
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
17
18
|
customize this style sheet.
|
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
274
275
|
margin-left: 2em ;
|
275
276
|
margin-right: 2em }
|
276
277
|
|
277
|
-
pre.code .ln { color:
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
278
279
|
pre.code, code { background-color: #eeeeee }
|
279
280
|
pre.code .comment, code .comment { color: #5C6576 }
|
280
281
|
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
@@ -300,7 +301,7 @@ span.option {
|
|
300
301
|
span.pre {
|
301
302
|
white-space: pre }
|
302
303
|
|
303
|
-
span.problematic {
|
304
|
+
span.problematic, pre.problematic {
|
304
305
|
color: red }
|
305
306
|
|
306
307
|
span.section-subtitle {
|
@@ -359,16 +360,21 @@ ul.auto-toc {
|
|
359
360
|
</style>
|
360
361
|
</head>
|
361
362
|
<body>
|
362
|
-
<div class="document"
|
363
|
-
<h1 class="title">Production Grouped By Product</h1>
|
363
|
+
<div class="document">
|
364
364
|
|
365
|
+
|
366
|
+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
|
367
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
|
368
|
+
</a>
|
369
|
+
<div class="section" id="production-grouped-by-product">
|
370
|
+
<h1>Production Grouped By Product</h1>
|
365
371
|
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
366
372
|
!! This file is generated by oca-gen-addon-readme !!
|
367
373
|
!! changes will be overwritten. !!
|
368
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
369
|
-
!! source digest: sha256:
|
375
|
+
!! source digest: sha256:9035ac9c513a8cdf00ff67a8fe326fe0ebbd3c350fa01a5555ea16dc091b9a2f
|
370
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
371
|
-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/
|
377
|
+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/manufacture/tree/16.0/mrp_production_grouped_by_product"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_production_grouped_by_product"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
372
378
|
<p>When you have several sales orders with make to order (MTO) products that
|
373
379
|
require to be manufactured, you end up with one manufacturing order for each of
|
374
380
|
these sales orders, which is very bad for the management.</p>
|
@@ -403,7 +409,7 @@ creating a new one.</p>
|
|
403
409
|
</ul>
|
404
410
|
</div>
|
405
411
|
<div class="section" id="configuration">
|
406
|
-
<
|
412
|
+
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
|
407
413
|
<p>To configure the time frame for grouping manufacturing order:</p>
|
408
414
|
<ol class="arabic">
|
409
415
|
<li><p class="first">Go to <em>Inventory > Configuration > Warehouse Management > Operation Types</em></p>
|
@@ -427,80 +433,80 @@ be grouped together.</p>
|
|
427
433
|
</ol>
|
428
434
|
</div>
|
429
435
|
<div class="section" id="known-issues-roadmap">
|
430
|
-
<
|
436
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h2>
|
431
437
|
<ul class="simple">
|
432
438
|
<li>Add a check in the product form for excluding it from being grouped.</li>
|
433
439
|
</ul>
|
434
440
|
</div>
|
435
441
|
<div class="section" id="changelog">
|
436
|
-
<
|
442
|
+
<h2><a class="toc-backref" href="#toc-entry-3">Changelog</a></h2>
|
437
443
|
<div class="section" id="section-1">
|
438
|
-
<
|
444
|
+
<h3><a class="toc-backref" href="#toc-entry-4">15.0.1.0.0 (2022-09-12)</a></h3>
|
439
445
|
<ul class="simple">
|
440
446
|
<li>[MIG] Migration to v15.</li>
|
441
447
|
</ul>
|
442
448
|
</div>
|
443
449
|
<div class="section" id="section-2">
|
444
|
-
<
|
450
|
+
<h3><a class="toc-backref" href="#toc-entry-5">14.0.1.0.0 (2021-11-16)</a></h3>
|
445
451
|
<ul class="simple">
|
446
452
|
<li>[MIG] Migration to v14.</li>
|
447
453
|
</ul>
|
448
454
|
</div>
|
449
455
|
<div class="section" id="section-3">
|
450
|
-
<
|
456
|
+
<h3><a class="toc-backref" href="#toc-entry-6">13.0.1.0.0 (2020-01-09)</a></h3>
|
451
457
|
<ul class="simple">
|
452
458
|
<li>[MIG] Migration to v13.</li>
|
453
459
|
</ul>
|
454
460
|
</div>
|
455
461
|
<div class="section" id="section-4">
|
456
|
-
<
|
462
|
+
<h3><a class="toc-backref" href="#toc-entry-7">12.0.1.0.0 (2019-04-17)</a></h3>
|
457
463
|
<ul class="simple">
|
458
464
|
<li>[MIG] Migration to v12:</li>
|
459
465
|
</ul>
|
460
466
|
</div>
|
461
467
|
<div class="section" id="section-5">
|
462
|
-
<
|
468
|
+
<h3><a class="toc-backref" href="#toc-entry-8">11.0.2.0.1 (2018-07-02)</a></h3>
|
463
469
|
<ul class="simple">
|
464
470
|
<li>[FIX] fix test in mrp_production_grouped_by_product</li>
|
465
471
|
</ul>
|
466
472
|
</div>
|
467
473
|
<div class="section" id="section-6">
|
468
|
-
<
|
474
|
+
<h3><a class="toc-backref" href="#toc-entry-9">11.0.2.0.0 (2018-06-04)</a></h3>
|
469
475
|
<ul class="simple">
|
470
476
|
<li>[IMP] mrp_production_grouped_by_product: Time frames</li>
|
471
477
|
</ul>
|
472
478
|
</div>
|
473
479
|
<div class="section" id="section-7">
|
474
|
-
<
|
480
|
+
<h3><a class="toc-backref" href="#toc-entry-10">11.0.1.0.1 (2018-05-11)</a></h3>
|
475
481
|
<ul class="simple">
|
476
482
|
<li>[IMP] mrp_production_grouped_by_company: Context evaluation on mrp.production + tests</li>
|
477
483
|
</ul>
|
478
484
|
</div>
|
479
485
|
<div class="section" id="section-8">
|
480
|
-
<
|
486
|
+
<h3><a class="toc-backref" href="#toc-entry-11">11.0.1.0.0 (2018-05-11)</a></h3>
|
481
487
|
<ul class="simple">
|
482
488
|
<li>Start of the history.</li>
|
483
489
|
</ul>
|
484
490
|
</div>
|
485
491
|
</div>
|
486
492
|
<div class="section" id="bug-tracker">
|
487
|
-
<
|
493
|
+
<h2><a class="toc-backref" href="#toc-entry-12">Bug Tracker</a></h2>
|
488
494
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/manufacture/issues">GitHub Issues</a>.
|
489
495
|
In case of trouble, please check there if your issue has already been reported.
|
490
496
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
491
|
-
<a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%
|
497
|
+
<a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
492
498
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
493
499
|
</div>
|
494
500
|
<div class="section" id="credits">
|
495
|
-
<
|
501
|
+
<h2><a class="toc-backref" href="#toc-entry-13">Credits</a></h2>
|
496
502
|
<div class="section" id="authors">
|
497
|
-
<
|
503
|
+
<h3><a class="toc-backref" href="#toc-entry-14">Authors</a></h3>
|
498
504
|
<ul class="simple">
|
499
505
|
<li>Tecnativa</li>
|
500
506
|
</ul>
|
501
507
|
</div>
|
502
508
|
<div class="section" id="contributors">
|
503
|
-
<
|
509
|
+
<h3><a class="toc-backref" href="#toc-entry-15">Contributors</a></h3>
|
504
510
|
<ul class="simple">
|
505
511
|
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a><ul>
|
506
512
|
<li>David Vidal</li>
|
@@ -519,19 +525,27 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
519
525
|
<li>Salva Benlloch <<a class="reference external" href="mailto:sbenlloch@puntsistemes.es">sbenlloch@puntsistemes.es</a>></li>
|
520
526
|
</ul>
|
521
527
|
</li>
|
528
|
+
<li><a class="reference external" href="https://www.initos.com/">InitOS</a>:<ul>
|
529
|
+
<li>Dhara Solanki <<a class="reference external" href="mailto:dhara.solanki@initos.com">dhara.solanki@initos.com</a>></li>
|
530
|
+
</ul>
|
531
|
+
</li>
|
532
|
+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a></li>
|
522
533
|
</ul>
|
523
534
|
</div>
|
524
535
|
<div class="section" id="maintainers">
|
525
|
-
<
|
536
|
+
<h3><a class="toc-backref" href="#toc-entry-16">Maintainers</a></h3>
|
526
537
|
<p>This module is maintained by the OCA.</p>
|
527
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
538
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
539
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
540
|
+
</a>
|
528
541
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
529
542
|
mission is to support the collaborative development of Odoo features and
|
530
543
|
promote its widespread use.</p>
|
531
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/
|
544
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/16.0/mrp_production_grouped_by_product">OCA/manufacture</a> project on GitHub.</p>
|
532
545
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
533
546
|
</div>
|
534
547
|
</div>
|
535
548
|
</div>
|
549
|
+
</div>
|
536
550
|
</body>
|
537
551
|
</html>
|
odoo/addons/mrp_production_grouped_by_product/tests/test_mrp_production_grouped_by_product.py
CHANGED
@@ -5,13 +5,11 @@
|
|
5
5
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
6
6
|
|
7
7
|
from odoo import exceptions
|
8
|
-
from odoo.tests import common
|
8
|
+
from odoo.tests import common, tagged
|
9
9
|
|
10
10
|
|
11
|
+
@tagged("post_install", "-at_install")
|
11
12
|
class TestProductionGroupedByProduct(common.TransactionCase):
|
12
|
-
at_install = False
|
13
|
-
post_install = True
|
14
|
-
|
15
13
|
@classmethod
|
16
14
|
def setUpClass(cls):
|
17
15
|
super(TestProductionGroupedByProduct, cls).setUpClass()
|
@@ -65,8 +63,8 @@ class TestProductionGroupedByProduct(common.TransactionCase):
|
|
65
63
|
"date_planned_start": "2018-06-01 15:00:00",
|
66
64
|
}
|
67
65
|
)
|
68
|
-
cls.mo.
|
69
|
-
cls.mo.
|
66
|
+
cls.mo._compute_move_raw_ids()
|
67
|
+
cls.mo._compute_move_finished_ids()
|
70
68
|
cls.warehouse = cls.env["stock.warehouse"].search(
|
71
69
|
[("company_id", "=", cls.env.user.company_id.id)], limit=1
|
72
70
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-mrp_production_grouped_by_product
|
3
|
-
Version:
|
3
|
+
Version: 16.0.1.0.0.2
|
4
4
|
Summary: Production Grouped By Product
|
5
5
|
Home-page: https://github.com/OCA/manufacture
|
6
6
|
Author: Tecnativa, Odoo Community Association (OCA)
|
@@ -8,10 +8,14 @@ Author-email: support@odoo-community.org
|
|
8
8
|
License: AGPL-3
|
9
9
|
Classifier: Programming Language :: Python
|
10
10
|
Classifier: Framework :: Odoo
|
11
|
-
Classifier: Framework :: Odoo ::
|
11
|
+
Classifier: Framework :: Odoo :: 16.0
|
12
12
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
13
|
-
Requires-Python: >=3.
|
14
|
-
Requires-Dist: odoo
|
13
|
+
Requires-Python: >=3.10
|
14
|
+
Requires-Dist: odoo<16.1dev,>=16.0a
|
15
|
+
|
16
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
17
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
18
|
+
:alt: Odoo Community Association
|
15
19
|
|
16
20
|
=============================
|
17
21
|
Production Grouped By Product
|
@@ -22,23 +26,23 @@ Production Grouped By Product
|
|
22
26
|
!! This file is generated by oca-gen-addon-readme !!
|
23
27
|
!! changes will be overwritten. !!
|
24
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
25
|
-
!! source digest: sha256:
|
29
|
+
!! source digest: sha256:9035ac9c513a8cdf00ff67a8fe326fe0ebbd3c350fa01a5555ea16dc091b9a2f
|
26
30
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
27
31
|
|
28
32
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
29
33
|
:target: https://odoo-community.org/page/development-status
|
30
34
|
:alt: Beta
|
31
|
-
.. |badge2| image:: https://img.shields.io/badge/
|
35
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
32
36
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
33
37
|
:alt: License: AGPL-3
|
34
38
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
|
35
|
-
:target: https://github.com/OCA/manufacture/tree/
|
39
|
+
:target: https://github.com/OCA/manufacture/tree/16.0/mrp_production_grouped_by_product
|
36
40
|
:alt: OCA/manufacture
|
37
41
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
38
|
-
:target: https://translation.odoo-community.org/projects/manufacture-
|
42
|
+
:target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_production_grouped_by_product
|
39
43
|
:alt: Translate me on Weblate
|
40
44
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
41
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=
|
45
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=16.0
|
42
46
|
:alt: Try me on Runboat
|
43
47
|
|
44
48
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
@@ -133,7 +137,7 @@ Bug Tracker
|
|
133
137
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_.
|
134
138
|
In case of trouble, please check there if your issue has already been reported.
|
135
139
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
136
|
-
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%
|
140
|
+
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
137
141
|
|
138
142
|
Do not contact contributors directly about support or help with technical issues.
|
139
143
|
|
@@ -165,6 +169,12 @@ Contributors
|
|
165
169
|
|
166
170
|
* Salva Benlloch <sbenlloch@puntsistemes.es>
|
167
171
|
|
172
|
+
* `InitOS <https://www.initos.com/>`__:
|
173
|
+
|
174
|
+
* Dhara Solanki <dhara.solanki@initos.com>
|
175
|
+
|
176
|
+
* `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_
|
177
|
+
|
168
178
|
Maintainers
|
169
179
|
~~~~~~~~~~~
|
170
180
|
|
@@ -178,6 +188,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
178
188
|
mission is to support the collaborative development of Odoo features and
|
179
189
|
promote its widespread use.
|
180
190
|
|
181
|
-
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/
|
191
|
+
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/16.0/mrp_production_grouped_by_product>`_ project on GitHub.
|
182
192
|
|
183
193
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
@@ -1,26 +1,26 @@
|
|
1
|
-
odoo/addons/mrp_production_grouped_by_product/README.rst,sha256=
|
1
|
+
odoo/addons/mrp_production_grouped_by_product/README.rst,sha256=6pcpukqdQhn5wPDsCraz6DlXOtx-QjRMVgL3rZE0zrQ,5728
|
2
2
|
odoo/addons/mrp_production_grouped_by_product/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
3
|
-
odoo/addons/mrp_production_grouped_by_product/__manifest__.py,sha256=
|
3
|
+
odoo/addons/mrp_production_grouped_by_product/__manifest__.py,sha256=DY5XiChaA98hSuO5dyVaZ-p_YOL9N2Ll8gNrppARBDA,547
|
4
4
|
odoo/addons/mrp_production_grouped_by_product/i18n/de.po,sha256=qTcG0acT78t2GKSpT0ycqVGq6p_UyPObQ1_J0C8hx58,3403
|
5
|
-
odoo/addons/mrp_production_grouped_by_product/i18n/es.po,sha256=
|
6
|
-
odoo/addons/mrp_production_grouped_by_product/i18n/it.po,sha256=
|
7
|
-
odoo/addons/mrp_production_grouped_by_product/i18n/mrp_production_grouped_by_product.pot,sha256=
|
5
|
+
odoo/addons/mrp_production_grouped_by_product/i18n/es.po,sha256=Yr3q10Ujw_zP9cyNVlsYjPMsY9btJDAMwshZeV4w6Hk,3268
|
6
|
+
odoo/addons/mrp_production_grouped_by_product/i18n/it.po,sha256=g1pLYgTmcMlwx01FfEG2GdzF-r7734pvmcwkHANeDfM,3150
|
7
|
+
odoo/addons/mrp_production_grouped_by_product/i18n/mrp_production_grouped_by_product.pot,sha256=ojCBw7QcobjAImQFJDUac0CuNopcYnmsHf8xOrXvdw8,2511
|
8
8
|
odoo/addons/mrp_production_grouped_by_product/models/__init__.py,sha256=Kim7VAN2A50UihPzLP3e9D1Jfn8jyFUxjeBkSggfKxk,112
|
9
|
-
odoo/addons/mrp_production_grouped_by_product/models/mrp_production.py,sha256=
|
9
|
+
odoo/addons/mrp_production_grouped_by_product/models/mrp_production.py,sha256=VqlD39oVIXL5QUSWT_uh65CHW1I-KdzSzBmto2A_19I,5705
|
10
10
|
odoo/addons/mrp_production_grouped_by_product/models/stock_move.py,sha256=MEHSXail325qAXrNK0IcbBITRFeskqessclc-p6z5Fo,942
|
11
|
-
odoo/addons/mrp_production_grouped_by_product/models/stock_picking_type.py,sha256=
|
11
|
+
odoo/addons/mrp_production_grouped_by_product/models/stock_picking_type.py,sha256=uB2NNz6RUdG3ytEUd1jQ6w6W2vODNWUA602SoJjD8W4,1540
|
12
12
|
odoo/addons/mrp_production_grouped_by_product/models/stock_rule.py,sha256=8FwePtlTJfRxRCiuvcQHJDim0t6W37cTpyeCn66qhy4,412
|
13
13
|
odoo/addons/mrp_production_grouped_by_product/readme/CONFIGURE.rst,sha256=UXDrGteQzjfGZ96W_NOlxdlzsPsMc6PDZDKMjRfQnzw,809
|
14
|
-
odoo/addons/mrp_production_grouped_by_product/readme/CONTRIBUTORS.rst,sha256=
|
14
|
+
odoo/addons/mrp_production_grouped_by_product/readme/CONTRIBUTORS.rst,sha256=FzsmbFvnlKmie6UtSCdA8KZBguaGmQ_9coJ5RF30nsY,509
|
15
15
|
odoo/addons/mrp_production_grouped_by_product/readme/DESCRIPTION.rst,sha256=JW4JA9PYY5xk9nAvn1p2mYtaDr06-zbVyPWPB41UEyY,535
|
16
16
|
odoo/addons/mrp_production_grouped_by_product/readme/HISTORY.rst,sha256=UCZRTs9RuI8BQqjTtvApJOmD3DbMtiT2bG6RWooNZek,724
|
17
17
|
odoo/addons/mrp_production_grouped_by_product/readme/ROADMAP.rst,sha256=RGvAzjli4CTvWXckQnAHqKWCsNi-DRk040m6YD0LzJc,71
|
18
18
|
odoo/addons/mrp_production_grouped_by_product/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
19
|
-
odoo/addons/mrp_production_grouped_by_product/static/description/index.html,sha256=
|
19
|
+
odoo/addons/mrp_production_grouped_by_product/static/description/index.html,sha256=ti5mB_0oJhSL26lyEfo9uGiLpTtPXb6yp9wZwM-Ye6c,18108
|
20
20
|
odoo/addons/mrp_production_grouped_by_product/tests/__init__.py,sha256=P-QDRLw15clo5UmDDU4fWEbD8A7aoLCPwysD7ZzlTgw,53
|
21
|
-
odoo/addons/mrp_production_grouped_by_product/tests/test_mrp_production_grouped_by_product.py,sha256=
|
21
|
+
odoo/addons/mrp_production_grouped_by_product/tests/test_mrp_production_grouped_by_product.py,sha256=jU90U0a8UhXxNX0TVyOxgxxzBQlhNQIFGgCCMlahTMc,8085
|
22
22
|
odoo/addons/mrp_production_grouped_by_product/views/stock_picking_type_views.xml,sha256=GwSltzh7AJcGvHsSxuIjENi-PeS_wBWl5c2JGkvBUVw,608
|
23
|
-
odoo_addon_mrp_production_grouped_by_product-
|
24
|
-
odoo_addon_mrp_production_grouped_by_product-
|
25
|
-
odoo_addon_mrp_production_grouped_by_product-
|
26
|
-
odoo_addon_mrp_production_grouped_by_product-
|
23
|
+
odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info/METADATA,sha256=lgoWFyvocLVSFez2cPU8erabg3anmhuT_F4f9ZVQEK0,6265
|
24
|
+
odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
25
|
+
odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
26
|
+
odoo_addon_mrp_production_grouped_by_product-16.0.1.0.0.2.dist-info/RECORD,,
|