odoo-addon-mrp-product-produce-delay-in-hour 16.0.1.0.0.4__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.
Files changed (20) hide show
  1. odoo/addons/mrp_product_produce_delay_in_hour/README.rst +89 -0
  2. odoo/addons/mrp_product_produce_delay_in_hour/__init__.py +1 -0
  3. odoo/addons/mrp_product_produce_delay_in_hour/__manifest__.py +20 -0
  4. odoo/addons/mrp_product_produce_delay_in_hour/data/decimal_precision.xml +18 -0
  5. odoo/addons/mrp_product_produce_delay_in_hour/i18n/fr.po +65 -0
  6. odoo/addons/mrp_product_produce_delay_in_hour/i18n/mrp_product_produce_delay_in_hour.pot +57 -0
  7. odoo/addons/mrp_product_produce_delay_in_hour/models/__init__.py +1 -0
  8. odoo/addons/mrp_product_produce_delay_in_hour/models/product_template.py +22 -0
  9. odoo/addons/mrp_product_produce_delay_in_hour/readme/CONTRIBUTORS.rst +1 -0
  10. odoo/addons/mrp_product_produce_delay_in_hour/readme/DESCRIPTION.rst +6 -0
  11. odoo/addons/mrp_product_produce_delay_in_hour/static/description/icon.png +0 -0
  12. odoo/addons/mrp_product_produce_delay_in_hour/static/description/index.html +429 -0
  13. odoo/addons/mrp_product_produce_delay_in_hour/static/description/mrp_product_produce_delay_hour.png +0 -0
  14. odoo/addons/mrp_product_produce_delay_in_hour/tests/__init__.py +1 -0
  15. odoo/addons/mrp_product_produce_delay_in_hour/tests/test_product_produce_delay.py +18 -0
  16. odoo/addons/mrp_product_produce_delay_in_hour/views/product_template.xml +33 -0
  17. odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/METADATA +104 -0
  18. odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/RECORD +20 -0
  19. odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/WHEEL +5 -0
  20. odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,89 @@
1
+ =================================
2
+ MRP Product Produce Delay in Hour
3
+ =================================
4
+
5
+ ..
6
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
+ !! This file is generated by oca-gen-addon-readme !!
8
+ !! changes will be overwritten. !!
9
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
+ !! source digest: sha256:e6e41ec5f3ce4e9a5b3843b1191006d4d49593bdadfbe5142d25332ff028d757
11
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
+
13
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14
+ :target: https://odoo-community.org/page/development-status
15
+ :alt: Beta
16
+ .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
+ :alt: License: AGPL-3
19
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
20
+ :target: https://github.com/OCA/manufacture/tree/16.0/mrp_product_produce_delay_in_hour
21
+ :alt: OCA/manufacture
22
+ .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
+ :target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_product_produce_delay_in_hour
24
+ :alt: Translate me on Weblate
25
+ .. |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=16.0
27
+ :alt: Try me on Runboat
28
+
29
+ |badge1| |badge2| |badge3| |badge4| |badge5|
30
+
31
+ This module is designed to handle Product Produce Delay in hours.
32
+ By default, Odoo only accepts Produce delay in days, but it's not suitable for
33
+ all types of activity, such as artisanal food processing, where this
34
+ information can be used for a BoM as a recipe.
35
+
36
+ .. figure:: https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_product_produce_delay_in_hour/static/description/mrp_product_produce_delay_hour.png
37
+
38
+ **Table of contents**
39
+
40
+ .. contents::
41
+ :local:
42
+
43
+ Bug Tracker
44
+ ===========
45
+
46
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_.
47
+ In case of trouble, please check there if your issue has already been reported.
48
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
49
+ `feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_product_produce_delay_in_hour%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
50
+
51
+ Do not contact contributors directly about support or help with technical issues.
52
+
53
+ Credits
54
+ =======
55
+
56
+ Authors
57
+ ~~~~~~~
58
+
59
+ * GRAP
60
+
61
+ Contributors
62
+ ~~~~~~~~~~~~
63
+
64
+ * Quentin Dupont (quentin.dupont@grap.coop)
65
+
66
+ Maintainers
67
+ ~~~~~~~~~~~
68
+
69
+ This module is maintained by the OCA.
70
+
71
+ .. image:: https://odoo-community.org/logo.png
72
+ :alt: Odoo Community Association
73
+ :target: https://odoo-community.org
74
+
75
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
76
+ mission is to support the collaborative development of Odoo features and
77
+ promote its widespread use.
78
+
79
+ .. |maintainer-quentinDupont| image:: https://github.com/quentinDupont.png?size=40px
80
+ :target: https://github.com/quentinDupont
81
+ :alt: quentinDupont
82
+
83
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
84
+
85
+ |maintainer-quentinDupont|
86
+
87
+ This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/16.0/mrp_product_produce_delay_in_hour>`_ project on GitHub.
88
+
89
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1 @@
1
+ from . import models
@@ -0,0 +1,20 @@
1
+ # Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
2
+ # @author: Quentin Dupont (quentin.dupont@grap.coop)
3
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
+
5
+ {
6
+ "name": "MRP Product Produce Delay in Hour",
7
+ "summary": "Handle MRP Product Produce Delay in hours not in days.",
8
+ "version": "16.0.1.0.0",
9
+ "author": "GRAP, Odoo Community Association (OCA)",
10
+ "category": "Manufacturing",
11
+ "depends": ["mrp"],
12
+ "maintainers": ["quentinDupont"],
13
+ "website": "https://github.com/OCA/manufacture",
14
+ "license": "AGPL-3",
15
+ "data": [
16
+ "views/product_template.xml",
17
+ "data/decimal_precision.xml",
18
+ ],
19
+ "installable": True,
20
+ }
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
4
+ @author: Quentin DUPONT (quentin.dupont@grap.coop)
5
+ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6
+ -->
7
+ <odoo noupdate="1">
8
+
9
+ <record
10
+ forcecreate="True"
11
+ id="decimal_produce_delay_days"
12
+ model="decimal.precision"
13
+ >
14
+ <field name="name">Produce Delay in Days</field>
15
+ <field name="digits">3</field>
16
+ </record>
17
+
18
+ </odoo>
@@ -0,0 +1,65 @@
1
+ # Translation of Odoo Server.
2
+ # This file contains the translation of the following modules:
3
+ # * mrp_product_produce_delay_in_hour
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Odoo Server 16.0\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "POT-Creation-Date: 2024-03-22 15:15+0000\n"
10
+ "PO-Revision-Date: 2024-03-22 15:15+0000\n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+ "Language: \n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: \n"
17
+ "Plural-Forms: \n"
18
+
19
+ #. module: mrp_product_produce_delay_in_hour
20
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_product__produce_delay
21
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_template__produce_delay
22
+ msgid ""
23
+ "Average lead time in days to manufacture this product. In the case of multi-"
24
+ "level BOM, the manufacturing lead times of the components will be added. In "
25
+ "case the product is subcontracted, this can be used to determine the date at "
26
+ "which components should be sent to the subcontractor."
27
+ msgstr ""
28
+ "Délai moyen en jours pour fabriquer ce produit. Dans le cas d'une "
29
+ "nomenclature à plusieurs niveaux, les délais de fabrication des composants "
30
+ "seront ajoutés. Dans le cas où le produit est sous-traité, cela peut être "
31
+ "utilisé pour déterminer la date à laquelle les composants doivent être "
32
+ "envoyés au sous-traitant."
33
+
34
+ #. module: mrp_product_produce_delay_in_hour
35
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_product__produce_delay_in_hour
36
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_template__produce_delay_in_hour
37
+ msgid "Average lead time in hours to manufacture this Product."
38
+ msgstr "Temps de fabrication moyen pour ce Produit."
39
+
40
+ #. module: mrp_product_produce_delay_in_hour
41
+ #: model_terms:ir.ui.view,arch_db:mrp_product_produce_delay_in_hour.view_mrp_product_produce_delay_in_hour
42
+ msgid "Manuf. Lead Time"
43
+ msgstr "Délai de fabr."
44
+
45
+ #. module: mrp_product_produce_delay_in_hour
46
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_product__produce_delay
47
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_template__produce_delay
48
+ msgid "Manufacturing Lead Time"
49
+ msgstr "Délai de fabrication"
50
+
51
+ #. module: mrp_product_produce_delay_in_hour
52
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_product__produce_delay_in_hour
53
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_template__produce_delay_in_hour
54
+ msgid "Produce Delay In Hour"
55
+ msgstr "Délai de fabrication en heures"
56
+
57
+ #. module: mrp_product_produce_delay_in_hour
58
+ #: model:ir.model,name:mrp_product_produce_delay_in_hour.model_product_template
59
+ msgid "Product"
60
+ msgstr "Produit"
61
+
62
+ #. module: mrp_product_produce_delay_in_hour
63
+ #: model_terms:ir.ui.view,arch_db:mrp_product_produce_delay_in_hour.view_mrp_product_produce_delay_in_hour
64
+ msgid "hours"
65
+ msgstr "heures"
@@ -0,0 +1,57 @@
1
+ # Translation of Odoo Server.
2
+ # This file contains the translation of the following modules:
3
+ # * mrp_product_produce_delay_in_hour
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Odoo Server 16.0\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "Last-Translator: \n"
10
+ "Language-Team: \n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: \n"
14
+ "Plural-Forms: \n"
15
+
16
+ #. module: mrp_product_produce_delay_in_hour
17
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_product__produce_delay
18
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_template__produce_delay
19
+ msgid ""
20
+ "Average lead time in days to manufacture this product. In the case of multi-"
21
+ "level BOM, the manufacturing lead times of the components will be added. In "
22
+ "case the product is subcontracted, this can be used to determine the date at"
23
+ " which components should be sent to the subcontractor."
24
+ msgstr ""
25
+
26
+ #. module: mrp_product_produce_delay_in_hour
27
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_product__produce_delay_in_hour
28
+ #: model:ir.model.fields,help:mrp_product_produce_delay_in_hour.field_product_template__produce_delay_in_hour
29
+ msgid "Average lead time in hours to manufacture this Product."
30
+ msgstr ""
31
+
32
+ #. module: mrp_product_produce_delay_in_hour
33
+ #: model_terms:ir.ui.view,arch_db:mrp_product_produce_delay_in_hour.view_mrp_product_produce_delay_in_hour
34
+ msgid "Manuf. Lead Time"
35
+ msgstr ""
36
+
37
+ #. module: mrp_product_produce_delay_in_hour
38
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_product__produce_delay
39
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_template__produce_delay
40
+ msgid "Manufacturing Lead Time"
41
+ msgstr ""
42
+
43
+ #. module: mrp_product_produce_delay_in_hour
44
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_product__produce_delay_in_hour
45
+ #: model:ir.model.fields,field_description:mrp_product_produce_delay_in_hour.field_product_template__produce_delay_in_hour
46
+ msgid "Produce Delay In Hour"
47
+ msgstr ""
48
+
49
+ #. module: mrp_product_produce_delay_in_hour
50
+ #: model:ir.model,name:mrp_product_produce_delay_in_hour.model_product_template
51
+ msgid "Product"
52
+ msgstr ""
53
+
54
+ #. module: mrp_product_produce_delay_in_hour
55
+ #: model_terms:ir.ui.view,arch_db:mrp_product_produce_delay_in_hour.view_mrp_product_produce_delay_in_hour
56
+ msgid "hours"
57
+ msgstr ""
@@ -0,0 +1 @@
1
+ from . import product_template
@@ -0,0 +1,22 @@
1
+ # Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
2
+ # @author: Quentin DUPONT (quentin.dupont@grap.coop)
3
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
+
5
+ from odoo import api, fields, models
6
+
7
+
8
+ class ProductTemplate(models.Model):
9
+ _inherit = "product.template"
10
+
11
+ # Add precision
12
+ produce_delay = fields.Float(
13
+ digits="Produce Delay in Days",
14
+ )
15
+ produce_delay_in_hour = fields.Float(
16
+ default=0.0,
17
+ help="Average lead time in hours to manufacture this Product.",
18
+ )
19
+
20
+ @api.onchange("produce_delay_in_hour")
21
+ def _onchange_produce_delay_in_hour(self):
22
+ self.produce_delay = self.produce_delay_in_hour / 24
@@ -0,0 +1 @@
1
+ * Quentin Dupont (quentin.dupont@grap.coop)
@@ -0,0 +1,6 @@
1
+ This module is designed to handle Product Produce Delay in hours.
2
+ By default, Odoo only accepts Produce delay in days, but it's not suitable for
3
+ all types of activity, such as artisanal food processing, where this
4
+ information can be used for a BoM as a recipe.
5
+
6
+ .. figure:: ../static/description/mrp_product_produce_delay_hour.png
@@ -0,0 +1,429 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
7
+ <title>MRP Product Produce Delay in Hour</title>
8
+ <style type="text/css">
9
+
10
+ /*
11
+ :Author: David Goodger (goodger@python.org)
12
+ :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
13
+ :Copyright: This stylesheet has been placed in the public domain.
14
+
15
+ Default cascading style sheet for the HTML output of Docutils.
16
+
17
+ See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
18
+ customize this style sheet.
19
+ */
20
+
21
+ /* used to remove borders from tables and images */
22
+ .borderless, table.borderless td, table.borderless th {
23
+ border: 0 }
24
+
25
+ table.borderless td, table.borderless th {
26
+ /* Override padding for "table.docutils td" with "! important".
27
+ The right padding separates the table cells. */
28
+ padding: 0 0.5em 0 0 ! important }
29
+
30
+ .first {
31
+ /* Override more specific margin styles with "! important". */
32
+ margin-top: 0 ! important }
33
+
34
+ .last, .with-subtitle {
35
+ margin-bottom: 0 ! important }
36
+
37
+ .hidden {
38
+ display: none }
39
+
40
+ .subscript {
41
+ vertical-align: sub;
42
+ font-size: smaller }
43
+
44
+ .superscript {
45
+ vertical-align: super;
46
+ font-size: smaller }
47
+
48
+ a.toc-backref {
49
+ text-decoration: none ;
50
+ color: black }
51
+
52
+ blockquote.epigraph {
53
+ margin: 2em 5em ; }
54
+
55
+ dl.docutils dd {
56
+ margin-bottom: 0.5em }
57
+
58
+ object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
59
+ overflow: hidden;
60
+ }
61
+
62
+ /* Uncomment (and remove this text!) to get bold-faced definition list terms
63
+ dl.docutils dt {
64
+ font-weight: bold }
65
+ */
66
+
67
+ div.abstract {
68
+ margin: 2em 5em }
69
+
70
+ div.abstract p.topic-title {
71
+ font-weight: bold ;
72
+ text-align: center }
73
+
74
+ div.admonition, div.attention, div.caution, div.danger, div.error,
75
+ div.hint, div.important, div.note, div.tip, div.warning {
76
+ margin: 2em ;
77
+ border: medium outset ;
78
+ padding: 1em }
79
+
80
+ div.admonition p.admonition-title, div.hint p.admonition-title,
81
+ div.important p.admonition-title, div.note p.admonition-title,
82
+ div.tip p.admonition-title {
83
+ font-weight: bold ;
84
+ font-family: sans-serif }
85
+
86
+ div.attention p.admonition-title, div.caution p.admonition-title,
87
+ div.danger p.admonition-title, div.error p.admonition-title,
88
+ div.warning p.admonition-title, .code .error {
89
+ color: red ;
90
+ font-weight: bold ;
91
+ font-family: sans-serif }
92
+
93
+ /* Uncomment (and remove this text!) to get reduced vertical space in
94
+ compound paragraphs.
95
+ div.compound .compound-first, div.compound .compound-middle {
96
+ margin-bottom: 0.5em }
97
+
98
+ div.compound .compound-last, div.compound .compound-middle {
99
+ margin-top: 0.5em }
100
+ */
101
+
102
+ div.dedication {
103
+ margin: 2em 5em ;
104
+ text-align: center ;
105
+ font-style: italic }
106
+
107
+ div.dedication p.topic-title {
108
+ font-weight: bold ;
109
+ font-style: normal }
110
+
111
+ div.figure {
112
+ margin-left: 2em ;
113
+ margin-right: 2em }
114
+
115
+ div.footer, div.header {
116
+ clear: both;
117
+ font-size: smaller }
118
+
119
+ div.line-block {
120
+ display: block ;
121
+ margin-top: 1em ;
122
+ margin-bottom: 1em }
123
+
124
+ div.line-block div.line-block {
125
+ margin-top: 0 ;
126
+ margin-bottom: 0 ;
127
+ margin-left: 1.5em }
128
+
129
+ div.sidebar {
130
+ margin: 0 0 0.5em 1em ;
131
+ border: medium outset ;
132
+ padding: 1em ;
133
+ background-color: #ffffee ;
134
+ width: 40% ;
135
+ float: right ;
136
+ clear: right }
137
+
138
+ div.sidebar p.rubric {
139
+ font-family: sans-serif ;
140
+ font-size: medium }
141
+
142
+ div.system-messages {
143
+ margin: 5em }
144
+
145
+ div.system-messages h1 {
146
+ color: red }
147
+
148
+ div.system-message {
149
+ border: medium outset ;
150
+ padding: 1em }
151
+
152
+ div.system-message p.system-message-title {
153
+ color: red ;
154
+ font-weight: bold }
155
+
156
+ div.topic {
157
+ margin: 2em }
158
+
159
+ h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
160
+ h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
161
+ margin-top: 0.4em }
162
+
163
+ h1.title {
164
+ text-align: center }
165
+
166
+ h2.subtitle {
167
+ text-align: center }
168
+
169
+ hr.docutils {
170
+ width: 75% }
171
+
172
+ img.align-left, .figure.align-left, object.align-left, table.align-left {
173
+ clear: left ;
174
+ float: left ;
175
+ margin-right: 1em }
176
+
177
+ img.align-right, .figure.align-right, object.align-right, table.align-right {
178
+ clear: right ;
179
+ float: right ;
180
+ margin-left: 1em }
181
+
182
+ img.align-center, .figure.align-center, object.align-center {
183
+ display: block;
184
+ margin-left: auto;
185
+ margin-right: auto;
186
+ }
187
+
188
+ table.align-center {
189
+ margin-left: auto;
190
+ margin-right: auto;
191
+ }
192
+
193
+ .align-left {
194
+ text-align: left }
195
+
196
+ .align-center {
197
+ clear: both ;
198
+ text-align: center }
199
+
200
+ .align-right {
201
+ text-align: right }
202
+
203
+ /* reset inner alignment in figures */
204
+ div.align-right {
205
+ text-align: inherit }
206
+
207
+ /* div.align-center * { */
208
+ /* text-align: left } */
209
+
210
+ .align-top {
211
+ vertical-align: top }
212
+
213
+ .align-middle {
214
+ vertical-align: middle }
215
+
216
+ .align-bottom {
217
+ vertical-align: bottom }
218
+
219
+ ol.simple, ul.simple {
220
+ margin-bottom: 1em }
221
+
222
+ ol.arabic {
223
+ list-style: decimal }
224
+
225
+ ol.loweralpha {
226
+ list-style: lower-alpha }
227
+
228
+ ol.upperalpha {
229
+ list-style: upper-alpha }
230
+
231
+ ol.lowerroman {
232
+ list-style: lower-roman }
233
+
234
+ ol.upperroman {
235
+ list-style: upper-roman }
236
+
237
+ p.attribution {
238
+ text-align: right ;
239
+ margin-left: 50% }
240
+
241
+ p.caption {
242
+ font-style: italic }
243
+
244
+ p.credits {
245
+ font-style: italic ;
246
+ font-size: smaller }
247
+
248
+ p.label {
249
+ white-space: nowrap }
250
+
251
+ p.rubric {
252
+ font-weight: bold ;
253
+ font-size: larger ;
254
+ color: maroon ;
255
+ text-align: center }
256
+
257
+ p.sidebar-title {
258
+ font-family: sans-serif ;
259
+ font-weight: bold ;
260
+ font-size: larger }
261
+
262
+ p.sidebar-subtitle {
263
+ font-family: sans-serif ;
264
+ font-weight: bold }
265
+
266
+ p.topic-title {
267
+ font-weight: bold }
268
+
269
+ pre.address {
270
+ margin-bottom: 0 ;
271
+ margin-top: 0 ;
272
+ font: inherit }
273
+
274
+ pre.literal-block, pre.doctest-block, pre.math, pre.code {
275
+ margin-left: 2em ;
276
+ margin-right: 2em }
277
+
278
+ pre.code .ln { color: grey; } /* line numbers */
279
+ pre.code, code { background-color: #eeeeee }
280
+ pre.code .comment, code .comment { color: #5C6576 }
281
+ pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
282
+ pre.code .literal.string, code .literal.string { color: #0C5404 }
283
+ pre.code .name.builtin, code .name.builtin { color: #352B84 }
284
+ pre.code .deleted, code .deleted { background-color: #DEB0A1}
285
+ pre.code .inserted, code .inserted { background-color: #A3D289}
286
+
287
+ span.classifier {
288
+ font-family: sans-serif ;
289
+ font-style: oblique }
290
+
291
+ span.classifier-delimiter {
292
+ font-family: sans-serif ;
293
+ font-weight: bold }
294
+
295
+ span.interpreted {
296
+ font-family: sans-serif }
297
+
298
+ span.option {
299
+ white-space: nowrap }
300
+
301
+ span.pre {
302
+ white-space: pre }
303
+
304
+ span.problematic {
305
+ color: red }
306
+
307
+ span.section-subtitle {
308
+ /* font-size relative to parent (h1..h6 element) */
309
+ font-size: 80% }
310
+
311
+ table.citation {
312
+ border-left: solid 1px gray;
313
+ margin-left: 1px }
314
+
315
+ table.docinfo {
316
+ margin: 2em 4em }
317
+
318
+ table.docutils {
319
+ margin-top: 0.5em ;
320
+ margin-bottom: 0.5em }
321
+
322
+ table.footnote {
323
+ border-left: solid 1px black;
324
+ margin-left: 1px }
325
+
326
+ table.docutils td, table.docutils th,
327
+ table.docinfo td, table.docinfo th {
328
+ padding-left: 0.5em ;
329
+ padding-right: 0.5em ;
330
+ vertical-align: top }
331
+
332
+ table.docutils th.field-name, table.docinfo th.docinfo-name {
333
+ font-weight: bold ;
334
+ text-align: left ;
335
+ white-space: nowrap ;
336
+ padding-left: 0 }
337
+
338
+ /* "booktabs" style (no vertical lines) */
339
+ table.docutils.booktabs {
340
+ border: 0px;
341
+ border-top: 2px solid;
342
+ border-bottom: 2px solid;
343
+ border-collapse: collapse;
344
+ }
345
+ table.docutils.booktabs * {
346
+ border: 0px;
347
+ }
348
+ table.docutils.booktabs th {
349
+ border-bottom: thin solid;
350
+ text-align: left;
351
+ }
352
+
353
+ h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
354
+ h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
355
+ font-size: 100% }
356
+
357
+ ul.auto-toc {
358
+ list-style-type: none }
359
+
360
+ </style>
361
+ </head>
362
+ <body>
363
+ <div class="document" id="mrp-product-produce-delay-in-hour">
364
+ <h1 class="title">MRP Product Produce Delay in Hour</h1>
365
+
366
+ <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367
+ !! This file is generated by oca-gen-addon-readme !!
368
+ !! changes will be overwritten. !!
369
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
+ !! source digest: sha256:e6e41ec5f3ce4e9a5b3843b1191006d4d49593bdadfbe5142d25332ff028d757
371
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
+ <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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/manufacture/tree/16.0/mrp_product_produce_delay_in_hour"><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_product_produce_delay_in_hour"><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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
+ <p>This module is designed to handle Product Produce Delay in hours.
374
+ By default, Odoo only accepts Produce delay in days, but it’s not suitable for
375
+ all types of activity, such as artisanal food processing, where this
376
+ information can be used for a BoM as a recipe.</p>
377
+ <div class="figure">
378
+ <img alt="https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_product_produce_delay_in_hour/static/description/mrp_product_produce_delay_hour.png" src="https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_product_produce_delay_in_hour/static/description/mrp_product_produce_delay_hour.png" />
379
+ </div>
380
+ <p><strong>Table of contents</strong></p>
381
+ <div class="contents local topic" id="contents">
382
+ <ul class="simple">
383
+ <li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
384
+ <li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
385
+ <li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
386
+ <li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
387
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
388
+ </ul>
389
+ </li>
390
+ </ul>
391
+ </div>
392
+ <div class="section" id="bug-tracker">
393
+ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
394
+ <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/manufacture/issues">GitHub Issues</a>.
395
+ In case of trouble, please check there if your issue has already been reported.
396
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
397
+ <a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_product_produce_delay_in_hour%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398
+ <p>Do not contact contributors directly about support or help with technical issues.</p>
399
+ </div>
400
+ <div class="section" id="credits">
401
+ <h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
402
+ <div class="section" id="authors">
403
+ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
404
+ <ul class="simple">
405
+ <li>GRAP</li>
406
+ </ul>
407
+ </div>
408
+ <div class="section" id="contributors">
409
+ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
410
+ <ul class="simple">
411
+ <li>Quentin Dupont (<a class="reference external" href="mailto:quentin.dupont&#64;grap.coop">quentin.dupont&#64;grap.coop</a>)</li>
412
+ </ul>
413
+ </div>
414
+ <div class="section" id="maintainers">
415
+ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
416
+ <p>This module is maintained by the OCA.</p>
417
+ <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
418
+ <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
419
+ mission is to support the collaborative development of Odoo features and
420
+ promote its widespread use.</p>
421
+ <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
422
+ <p><a class="reference external image-reference" href="https://github.com/quentinDupont"><img alt="quentinDupont" src="https://github.com/quentinDupont.png?size=40px" /></a></p>
423
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/16.0/mrp_product_produce_delay_in_hour">OCA/manufacture</a> project on GitHub.</p>
424
+ <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>
425
+ </div>
426
+ </div>
427
+ </div>
428
+ </body>
429
+ </html>
@@ -0,0 +1 @@
1
+ from . import test_product_produce_delay
@@ -0,0 +1,18 @@
1
+ # Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
2
+ # @author: Quentin DUPONT (quentin.dupont@grap.coop)
3
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
+
5
+ from odoo.tests.common import TransactionCase
6
+
7
+
8
+ class TestProductProduceDelay(TransactionCase):
9
+ def setUp(self):
10
+ super(TestProductProduceDelay, self).setUp()
11
+ self.product_acoustic_bloc = self.env.ref(
12
+ "product.product_product_25_product_template"
13
+ )
14
+
15
+ def test_01_produce_delay_hour(self):
16
+ self.product_acoustic_bloc.write({"produce_delay_in_hour": 12})
17
+ self.product_acoustic_bloc._onchange_produce_delay_in_hour()
18
+ self.assertEqual(self.product_acoustic_bloc.produce_delay, 0.5)
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
4
+ @author: Quentin DUPONT (quentin.dupont@grap.coop)
5
+ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6
+ -->
7
+ <odoo>
8
+ <!-- Product Template -->
9
+ <record id="view_mrp_product_produce_delay_in_hour" model="ir.ui.view">
10
+ <field name="model">product.template</field>
11
+ <field name="inherit_id" ref="stock.view_template_property_form" />
12
+ <field name="arch" type="xml">
13
+ <xpath expr="//label[@for='produce_delay']" position="before">
14
+ <label
15
+ for="produce_delay_in_hour"
16
+ string="Manuf. Lead Time"
17
+ attrs="{'invisible':[('type','=','service')]}"
18
+ />
19
+ <div attrs="{'invisible':[('type','=','service')]}">
20
+ <field
21
+ name="produce_delay_in_hour"
22
+ widget="float_time"
23
+ class="oe_inline"
24
+ /> hours
25
+ </div>
26
+ </xpath>
27
+ <xpath expr="//field[@name='produce_delay']" position="attributes">
28
+ <attribute name="readonly">1</attribute>
29
+ <attribute name="force_save">1</attribute>
30
+ </xpath>
31
+ </field>
32
+ </record>
33
+ </odoo>
@@ -0,0 +1,104 @@
1
+ Metadata-Version: 2.1
2
+ Name: odoo-addon-mrp_product_produce_delay_in_hour
3
+ Version: 16.0.1.0.0.4
4
+ Summary: Handle MRP Product Produce Delay in hours not in days.
5
+ Home-page: https://github.com/OCA/manufacture
6
+ Author: GRAP, Odoo Community Association (OCA)
7
+ Author-email: support@odoo-community.org
8
+ License: AGPL-3
9
+ Classifier: Programming Language :: Python
10
+ Classifier: Framework :: Odoo
11
+ Classifier: Framework :: Odoo :: 16.0
12
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
+ Requires-Python: >=3.10
14
+ Requires-Dist: odoo<16.1dev,>=16.0a
15
+
16
+ =================================
17
+ MRP Product Produce Delay in Hour
18
+ =================================
19
+
20
+ ..
21
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22
+ !! This file is generated by oca-gen-addon-readme !!
23
+ !! changes will be overwritten. !!
24
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
25
+ !! source digest: sha256:e6e41ec5f3ce4e9a5b3843b1191006d4d49593bdadfbe5142d25332ff028d757
26
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
+
28
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
29
+ :target: https://odoo-community.org/page/development-status
30
+ :alt: Beta
31
+ .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
32
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
33
+ :alt: License: AGPL-3
34
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
35
+ :target: https://github.com/OCA/manufacture/tree/16.0/mrp_product_produce_delay_in_hour
36
+ :alt: OCA/manufacture
37
+ .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
38
+ :target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_product_produce_delay_in_hour
39
+ :alt: Translate me on Weblate
40
+ .. |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=16.0
42
+ :alt: Try me on Runboat
43
+
44
+ |badge1| |badge2| |badge3| |badge4| |badge5|
45
+
46
+ This module is designed to handle Product Produce Delay in hours.
47
+ By default, Odoo only accepts Produce delay in days, but it's not suitable for
48
+ all types of activity, such as artisanal food processing, where this
49
+ information can be used for a BoM as a recipe.
50
+
51
+ .. figure:: https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_product_produce_delay_in_hour/static/description/mrp_product_produce_delay_hour.png
52
+
53
+ **Table of contents**
54
+
55
+ .. contents::
56
+ :local:
57
+
58
+ Bug Tracker
59
+ ===========
60
+
61
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_.
62
+ In case of trouble, please check there if your issue has already been reported.
63
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
64
+ `feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_product_produce_delay_in_hour%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
65
+
66
+ Do not contact contributors directly about support or help with technical issues.
67
+
68
+ Credits
69
+ =======
70
+
71
+ Authors
72
+ ~~~~~~~
73
+
74
+ * GRAP
75
+
76
+ Contributors
77
+ ~~~~~~~~~~~~
78
+
79
+ * Quentin Dupont (quentin.dupont@grap.coop)
80
+
81
+ Maintainers
82
+ ~~~~~~~~~~~
83
+
84
+ This module is maintained by the OCA.
85
+
86
+ .. image:: https://odoo-community.org/logo.png
87
+ :alt: Odoo Community Association
88
+ :target: https://odoo-community.org
89
+
90
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
91
+ mission is to support the collaborative development of Odoo features and
92
+ promote its widespread use.
93
+
94
+ .. |maintainer-quentinDupont| image:: https://github.com/quentinDupont.png?size=40px
95
+ :target: https://github.com/quentinDupont
96
+ :alt: quentinDupont
97
+
98
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
99
+
100
+ |maintainer-quentinDupont|
101
+
102
+ This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/16.0/mrp_product_produce_delay_in_hour>`_ project on GitHub.
103
+
104
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1,20 @@
1
+ odoo/addons/mrp_product_produce_delay_in_hour/README.rst,sha256=3pQZ_8YtlIVJ67asACNOrkPs6Y9TzrhP0B4Dl5fedJw,3543
2
+ odoo/addons/mrp_product_produce_delay_in_hour/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
+ odoo/addons/mrp_product_produce_delay_in_hour/__manifest__.py,sha256=m4as_uFESkA9SlyhqDnmZl8hTUgAwyt2POtYkFZVUrw,687
4
+ odoo/addons/mrp_product_produce_delay_in_hour/data/decimal_precision.xml,sha256=ngtSCf13ikCAmTl3KwQiy7o0VZMEHJHWDFV1NKeILIk,482
5
+ odoo/addons/mrp_product_produce_delay_in_hour/i18n/fr.po,sha256=9kAZ8enDkCH6g9iCsWLCQw9HKtXRxXEiTrBOJ-GLmA0,3011
6
+ odoo/addons/mrp_product_produce_delay_in_hour/i18n/mrp_product_produce_delay_in_hour.pot,sha256=T5mmOnBgMRakZbEcP-6KBx6RosmtZMMBTC-MZjo_ydQ,2446
7
+ odoo/addons/mrp_product_produce_delay_in_hour/models/__init__.py,sha256=ocL5EWjUgdlVWcLpGjcO1Gkka2igyW2sutWqtdGvc-U,31
8
+ odoo/addons/mrp_product_produce_delay_in_hour/models/product_template.py,sha256=pqKnBpuhNgmfUhbwgVSy09Uo__DlfMRA29HoJZbFOgk,685
9
+ odoo/addons/mrp_product_produce_delay_in_hour/readme/CONTRIBUTORS.rst,sha256=8OihKakdOdlZJ5vq4U4ZqtxVJHjK-CD4CJQKNo7xUzw,44
10
+ odoo/addons/mrp_product_produce_delay_in_hour/readme/DESCRIPTION.rst,sha256=zXkkzCFLbHGaI7cqmiZoEOSVXC0stfOSfuB21G_n1Ps,331
11
+ odoo/addons/mrp_product_produce_delay_in_hour/static/description/icon.png,sha256=CgnOEZCwoe6f1vlLwkqFVfc2q_uwBMU0UnXN8j6X5ag,10254
12
+ odoo/addons/mrp_product_produce_delay_in_hour/static/description/index.html,sha256=lcKOzEX0veZJV-lMWfQ-HagnDgN-bNJXHhAyqPvYeEU,13021
13
+ odoo/addons/mrp_product_produce_delay_in_hour/static/description/mrp_product_produce_delay_hour.png,sha256=5x6j0yJHHaD9Uo02VPd8CBX832HR3vpx4P_71HykCr8,81059
14
+ odoo/addons/mrp_product_produce_delay_in_hour/tests/__init__.py,sha256=8BmIs07fLzdvLJa-8BFa0eV4sNk_3TepEWxMKfPy780,41
15
+ odoo/addons/mrp_product_produce_delay_in_hour/tests/test_product_produce_delay.py,sha256=XHPNx7dgi247Tu7KzQFYUrcLESHcoE0ykZ_ET_HxJZc,726
16
+ odoo/addons/mrp_product_produce_delay_in_hour/views/product_template.xml,sha256=ln0yiRNp42kyvMg_DvrBzBnmWH8ffbVMofs1eEfp5i0,1346
17
+ odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/METADATA,sha256=nlxM89SmlL1voCXBezaA4v4fR2z_ELqAFTnn_SGERdA,4100
18
+ odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
19
+ odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
20
+ odoo_addon_mrp_product_produce_delay_in_hour-16.0.1.0.0.4.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.45.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+