odoo13-addon-shopinvader-sale-order-line-delivery-state 13.0.1.0.2.dev1__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 (18) hide show
  1. odoo/addons/shopinvader_sale_order_line_delivery_state/README.rst +66 -0
  2. odoo/addons/shopinvader_sale_order_line_delivery_state/__init__.py +3 -0
  3. odoo/addons/shopinvader_sale_order_line_delivery_state/__manifest__.py +16 -0
  4. odoo/addons/shopinvader_sale_order_line_delivery_state/hooks.py +14 -0
  5. odoo/addons/shopinvader_sale_order_line_delivery_state/i18n/shopinvader_sale_order_line_delivery_state.pot +44 -0
  6. odoo/addons/shopinvader_sale_order_line_delivery_state/models/__init__.py +1 -0
  7. odoo/addons/shopinvader_sale_order_line_delivery_state/models/sale_order_line.py +34 -0
  8. odoo/addons/shopinvader_sale_order_line_delivery_state/readme/CONTRIBUTORS.rst +1 -0
  9. odoo/addons/shopinvader_sale_order_line_delivery_state/readme/DESCRIPTION.rst +7 -0
  10. odoo/addons/shopinvader_sale_order_line_delivery_state/services/__init__.py +1 -0
  11. odoo/addons/shopinvader_sale_order_line_delivery_state/services/abstract_sale.py +12 -0
  12. odoo/addons/shopinvader_sale_order_line_delivery_state/static/description/index.html +420 -0
  13. odoo/addons/shopinvader_sale_order_line_delivery_state/tests/__init__.py +1 -0
  14. odoo/addons/shopinvader_sale_order_line_delivery_state/tests/test_sale.py +54 -0
  15. odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.dist-info/METADATA +82 -0
  16. odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.dist-info/RECORD +18 -0
  17. odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.dist-info/WHEEL +5 -0
  18. odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,66 @@
1
+ ==========================================
2
+ Shopinvader Sale Order Line Delivery State
3
+ ==========================================
4
+
5
+ ..
6
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
+ !! This file is generated by oca-gen-addon-readme !!
8
+ !! changes will be overwritten. !!
9
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
+ !! source digest: sha256:f9a4eed0b3fb4ec62515f65a8a13dc42a1eacdf0648d8d57220a160b8e6c7ef2
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-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github
20
+ :target: https://github.com/shopinvader/odoo-shopinvader/tree/13.0/shopinvader_sale_order_line_delivery_state
21
+ :alt: shopinvader/odoo-shopinvader
22
+
23
+ |badge1| |badge2| |badge3|
24
+
25
+ Integrate `sale_order_line_delivery_state` with Shopinvader.
26
+
27
+ When `sale_order_line_delivery_state` is installed this module will be
28
+ automatically installed.
29
+
30
+ This allows to have the delivery state of the sales order lines available
31
+ in Shopinvader.
32
+
33
+ **Table of contents**
34
+
35
+ .. contents::
36
+ :local:
37
+
38
+ Bug Tracker
39
+ ===========
40
+
41
+ Bugs are tracked on `GitHub Issues <https://github.com/shopinvader/odoo-shopinvader/issues>`_.
42
+ In case of trouble, please check there if your issue has already been reported.
43
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
44
+ `feedback <https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_sale_order_line_delivery_state%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
45
+
46
+ Do not contact contributors directly about support or help with technical issues.
47
+
48
+ Credits
49
+ =======
50
+
51
+ Authors
52
+ ~~~~~~~
53
+
54
+ * ForgeFlow
55
+
56
+ Contributors
57
+ ~~~~~~~~~~~~
58
+
59
+ * Jordi Masvidal <jordi.masvidal@forgeflow.com>
60
+
61
+ Maintainers
62
+ ~~~~~~~~~~~
63
+
64
+ This module is part of the `shopinvader/odoo-shopinvader <https://github.com/shopinvader/odoo-shopinvader/tree/13.0/shopinvader_sale_order_line_delivery_state>`_ project on GitHub.
65
+
66
+ You are welcome to contribute.
@@ -0,0 +1,3 @@
1
+ from . import models
2
+ from . import services
3
+ from .hooks import post_init_hook
@@ -0,0 +1,16 @@
1
+ # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3
+
4
+ {
5
+ "name": "Shopinvader Sale Order Line Delivery State",
6
+ "Summary": """
7
+ Integrate `sale_order_line_delivery_state` with Shopinvader
8
+ """,
9
+ "version": "13.0.1.0.1",
10
+ "license": "AGPL-3",
11
+ "author": "ForgeFlow",
12
+ "website": "https://github.com/shopinvader/odoo-shopinvader",
13
+ "depends": ["shopinvader", "sale_order_line_delivery_state"],
14
+ "auto_install": True,
15
+ "post_init_hook": "post_init_hook",
16
+ }
@@ -0,0 +1,14 @@
1
+ # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
2
+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
3
+
4
+ import logging
5
+
6
+ from odoo import SUPERUSER_ID, api
7
+
8
+ _logger = logging.getLogger(__name__)
9
+
10
+
11
+ def post_init_hook(cr, registry):
12
+ _logger.info("Recompute sale.order.line.shopinvader_delivery_state")
13
+ env = api.Environment(cr, SUPERUSER_ID, {})
14
+ env["sale.order.line"].search([])._compute_shopinvader_delivery_state()
@@ -0,0 +1,44 @@
1
+ # Translation of Odoo Server.
2
+ # This file contains the translation of the following modules:
3
+ # * shopinvader_sale_order_line_delivery_state
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Odoo Server 13.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: shopinvader_sale_order_line_delivery_state
17
+ #: model:ir.model.fields.selection,name:shopinvader_sale_order_line_delivery_state.selection__sale_order_line__shopinvader_delivery_state__shipping_done
18
+ msgid "Fully shipped"
19
+ msgstr ""
20
+
21
+ #. module: shopinvader_sale_order_line_delivery_state
22
+ #: model:ir.model.fields.selection,name:shopinvader_sale_order_line_delivery_state.selection__sale_order_line__shopinvader_delivery_state__shipping_no
23
+ msgid "No shipping"
24
+ msgstr ""
25
+
26
+ #. module: shopinvader_sale_order_line_delivery_state
27
+ #: model:ir.model.fields.selection,name:shopinvader_sale_order_line_delivery_state.selection__sale_order_line__shopinvader_delivery_state__shipping_unprocessed
28
+ msgid "No shipping yet"
29
+ msgstr ""
30
+
31
+ #. module: shopinvader_sale_order_line_delivery_state
32
+ #: model:ir.model.fields.selection,name:shopinvader_sale_order_line_delivery_state.selection__sale_order_line__shopinvader_delivery_state__shipping_partially
33
+ msgid "Partially shipped"
34
+ msgstr ""
35
+
36
+ #. module: shopinvader_sale_order_line_delivery_state
37
+ #: model:ir.model,name:shopinvader_sale_order_line_delivery_state.model_sale_order_line
38
+ msgid "Sales Order Line"
39
+ msgstr ""
40
+
41
+ #. module: shopinvader_sale_order_line_delivery_state
42
+ #: model:ir.model.fields,field_description:shopinvader_sale_order_line_delivery_state.field_sale_order_line__shopinvader_delivery_state
43
+ msgid "Shopinvader Delivery State"
44
+ msgstr ""
@@ -0,0 +1 @@
1
+ from . import sale_order_line
@@ -0,0 +1,34 @@
1
+ # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from odoo import api, fields, models
5
+
6
+
7
+ class SaleOrderLine(models.Model):
8
+ _inherit = "sale.order.line"
9
+
10
+ shopinvader_delivery_state = fields.Selection(
11
+ [
12
+ ("shipping_no", "No shipping"),
13
+ ("shipping_unprocessed", "No shipping yet"),
14
+ ("shipping_partially", "Partially shipped"),
15
+ ("shipping_done", "Fully shipped"),
16
+ ],
17
+ compute="_compute_shopinvader_delivery_state",
18
+ store=True,
19
+ )
20
+
21
+ def _get_shopinvader_delivery_state(self):
22
+ return "shipping_" + self.delivery_state
23
+
24
+ def _compute_shopinvader_delivery_state_depends(self):
25
+ return ("delivery_state",)
26
+
27
+ @api.depends(
28
+ lambda self: self._compute_shopinvader_delivery_state_depends()
29
+ )
30
+ def _compute_shopinvader_delivery_state(self):
31
+ for record in self:
32
+ record.shopinvader_delivery_state = (
33
+ record._get_shopinvader_delivery_state()
34
+ )
@@ -0,0 +1 @@
1
+ * Jordi Masvidal <jordi.masvidal@forgeflow.com>
@@ -0,0 +1,7 @@
1
+ Integrate `sale_order_line_delivery_state` with Shopinvader.
2
+
3
+ When `sale_order_line_delivery_state` is installed this module will be
4
+ automatically installed.
5
+
6
+ This allows to have the delivery state of the sales order lines available
7
+ in Shopinvader.
@@ -0,0 +1 @@
1
+ from . import abstract_sale
@@ -0,0 +1,12 @@
1
+ # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+ from odoo.addons.component.core import AbstractComponent
4
+
5
+
6
+ class AbstractSaleService(AbstractComponent):
7
+ _inherit = "shopinvader.abstract.sale.service"
8
+
9
+ def _convert_one_line(self, line):
10
+ res = super()._convert_one_line(line)
11
+ res.update({"delivery_state": line.shopinvader_delivery_state})
12
+ return res
@@ -0,0 +1,420 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
+ <title>Shopinvader Sale Order Line Delivery State</title>
7
+ <style type="text/css">
8
+
9
+ /*
10
+ :Author: David Goodger (goodger@python.org)
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
12
+ :Copyright: This stylesheet has been placed in the public domain.
13
+
14
+ Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
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: gray; } /* 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, pre.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="shopinvader-sale-order-line-delivery-state">
364
+ <h1 class="title">Shopinvader Sale Order Line Delivery State</h1>
365
+
366
+ <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367
+ !! This file is generated by oca-gen-addon-readme !!
368
+ !! changes will be overwritten. !!
369
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
+ !! source digest: sha256:f9a4eed0b3fb4ec62515f65a8a13dc42a1eacdf0648d8d57220a160b8e6c7ef2
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/shopinvader/odoo-shopinvader/tree/13.0/shopinvader_sale_order_line_delivery_state"><img alt="shopinvader/odoo-shopinvader" src="https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github" /></a></p>
373
+ <p>Integrate <cite>sale_order_line_delivery_state</cite> with Shopinvader.</p>
374
+ <p>When <cite>sale_order_line_delivery_state</cite> is installed this module will be
375
+ automatically installed.</p>
376
+ <p>This allows to have the delivery state of the sales order lines available
377
+ in Shopinvader.</p>
378
+ <p><strong>Table of contents</strong></p>
379
+ <div class="contents local topic" id="contents">
380
+ <ul class="simple">
381
+ <li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
382
+ <li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
383
+ <li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
384
+ <li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
385
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
386
+ </ul>
387
+ </li>
388
+ </ul>
389
+ </div>
390
+ <div class="section" id="bug-tracker">
391
+ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
392
+ <p>Bugs are tracked on <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues">GitHub Issues</a>.
393
+ In case of trouble, please check there if your issue has already been reported.
394
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
395
+ <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_sale_order_line_delivery_state%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
396
+ <p>Do not contact contributors directly about support or help with technical issues.</p>
397
+ </div>
398
+ <div class="section" id="credits">
399
+ <h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
400
+ <div class="section" id="authors">
401
+ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
402
+ <ul class="simple">
403
+ <li>ForgeFlow</li>
404
+ </ul>
405
+ </div>
406
+ <div class="section" id="contributors">
407
+ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
408
+ <ul class="simple">
409
+ <li>Jordi Masvidal &lt;<a class="reference external" href="mailto:jordi.masvidal&#64;forgeflow.com">jordi.masvidal&#64;forgeflow.com</a>&gt;</li>
410
+ </ul>
411
+ </div>
412
+ <div class="section" id="maintainers">
413
+ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
414
+ <p>This module is part of the <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/tree/13.0/shopinvader_sale_order_line_delivery_state">shopinvader/odoo-shopinvader</a> project on GitHub.</p>
415
+ <p>You are welcome to contribute.</p>
416
+ </div>
417
+ </div>
418
+ </div>
419
+ </body>
420
+ </html>
@@ -0,0 +1 @@
1
+ from . import test_sale
@@ -0,0 +1,54 @@
1
+ # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from odoo.addons.shopinvader.tests.common import CommonCase
5
+
6
+
7
+ class TestSalesService(CommonCase):
8
+ @classmethod
9
+ def setUpClass(cls):
10
+ super().setUpClass()
11
+ cls.partner = cls.env.ref("shopinvader.partner_1")
12
+ cls.shop_sales = cls.env.ref("shopinvader.sale_order_2")
13
+
14
+ def _get_service(self):
15
+ work_ctx = dict(
16
+ partner=self.partner, shopinvader_session=self.shopinvader_session
17
+ )
18
+ with self.work_on_services(**work_ctx) as work:
19
+ return work.component(usage="sales")
20
+
21
+ def test_state_unprocessed(self):
22
+ self.shop_sales.action_confirm()
23
+ service = self._get_service()
24
+ res = service.search()
25
+ states = sorted(
26
+ [x["delivery_state"] for x in res["data"][0]["lines"]["items"]]
27
+ )
28
+ self.assertEqual(
29
+ states, ["shipping_unprocessed", "shipping_unprocessed"]
30
+ )
31
+
32
+ def test_state_partial(self):
33
+ self.shop_sales.action_confirm()
34
+ line = self.shop_sales.order_line[0]
35
+ line.qty_delivered = 1.0
36
+ service = self._get_service()
37
+ res = service.search()
38
+ states = sorted(
39
+ [x["delivery_state"] for x in res["data"][0]["lines"]["items"]]
40
+ )
41
+ self.assertEqual(
42
+ states, ["shipping_partially", "shipping_unprocessed"]
43
+ )
44
+
45
+ def test_state_done(self):
46
+ self.shop_sales.action_confirm()
47
+ line = self.shop_sales.order_line[0]
48
+ line.qty_delivered = line.product_uom_qty
49
+ service = self._get_service()
50
+ res = service.search()
51
+ states = sorted(
52
+ [x["delivery_state"] for x in res["data"][0]["lines"]["items"]]
53
+ )
54
+ self.assertEqual(states, ["shipping_done", "shipping_unprocessed"])
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.1
2
+ Name: odoo13-addon-shopinvader_sale_order_line_delivery_state
3
+ Version: 13.0.1.0.2.dev1
4
+ Summary: Shopinvader Sale Order Line Delivery State
5
+ Home-page: https://github.com/shopinvader/odoo-shopinvader
6
+ Author: ForgeFlow
7
+ License: AGPL-3
8
+ Classifier: Programming Language :: Python
9
+ Classifier: Framework :: Odoo
10
+ Classifier: Framework :: Odoo :: 13.0
11
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
12
+ Requires-Python: >=3.5
13
+ Requires-Dist: odoo13-addon-sale-order-line-delivery-state
14
+ Requires-Dist: odoo13-addon-shopinvader
15
+ Requires-Dist: odoo<13.1dev,>=13.0a
16
+
17
+ ==========================================
18
+ Shopinvader Sale Order Line Delivery State
19
+ ==========================================
20
+
21
+ ..
22
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
23
+ !! This file is generated by oca-gen-addon-readme !!
24
+ !! changes will be overwritten. !!
25
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
+ !! source digest: sha256:f9a4eed0b3fb4ec62515f65a8a13dc42a1eacdf0648d8d57220a160b8e6c7ef2
27
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
+
29
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
30
+ :target: https://odoo-community.org/page/development-status
31
+ :alt: Beta
32
+ .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
33
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
34
+ :alt: License: AGPL-3
35
+ .. |badge3| image:: https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github
36
+ :target: https://github.com/shopinvader/odoo-shopinvader/tree/13.0/shopinvader_sale_order_line_delivery_state
37
+ :alt: shopinvader/odoo-shopinvader
38
+
39
+ |badge1| |badge2| |badge3|
40
+
41
+ Integrate `sale_order_line_delivery_state` with Shopinvader.
42
+
43
+ When `sale_order_line_delivery_state` is installed this module will be
44
+ automatically installed.
45
+
46
+ This allows to have the delivery state of the sales order lines available
47
+ in Shopinvader.
48
+
49
+ **Table of contents**
50
+
51
+ .. contents::
52
+ :local:
53
+
54
+ Bug Tracker
55
+ ===========
56
+
57
+ Bugs are tracked on `GitHub Issues <https://github.com/shopinvader/odoo-shopinvader/issues>`_.
58
+ In case of trouble, please check there if your issue has already been reported.
59
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
60
+ `feedback <https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_sale_order_line_delivery_state%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
61
+
62
+ Do not contact contributors directly about support or help with technical issues.
63
+
64
+ Credits
65
+ =======
66
+
67
+ Authors
68
+ ~~~~~~~
69
+
70
+ * ForgeFlow
71
+
72
+ Contributors
73
+ ~~~~~~~~~~~~
74
+
75
+ * Jordi Masvidal <jordi.masvidal@forgeflow.com>
76
+
77
+ Maintainers
78
+ ~~~~~~~~~~~
79
+
80
+ This module is part of the `shopinvader/odoo-shopinvader <https://github.com/shopinvader/odoo-shopinvader/tree/13.0/shopinvader_sale_order_line_delivery_state>`_ project on GitHub.
81
+
82
+ You are welcome to contribute.
@@ -0,0 +1,18 @@
1
+ odoo/addons/shopinvader_sale_order_line_delivery_state/README.rst,sha256=j6rDgTzpLJ4NYKxbbbeT75D52weJfXHHA6UNPgkihxo,2398
2
+ odoo/addons/shopinvader_sale_order_line_delivery_state/__init__.py,sha256=m6j-IK-RLmplHB4TzZd2ScNF_CEXiK-oKzsYfQu-M80,78
3
+ odoo/addons/shopinvader_sale_order_line_delivery_state/__manifest__.py,sha256=P_AttUUrHCiKhbP1odyzXdr8ztQ_zSRvLHk9mvthzHI,562
4
+ odoo/addons/shopinvader_sale_order_line_delivery_state/hooks.py,sha256=6Tuy5jDrKL-WZv7YSv5UfZZMHCyTIiSQ8JzI8ec8zKw,453
5
+ odoo/addons/shopinvader_sale_order_line_delivery_state/i18n/shopinvader_sale_order_line_delivery_state.pot,sha256=QcsWj4IixIMVsPrFyfp71b8kRp-RF8RIOQdoFFBCmbE,1777
6
+ odoo/addons/shopinvader_sale_order_line_delivery_state/models/__init__.py,sha256=0XTNG-MzihYtVvjGhNDM789gpRyLtTlIZGa1FuLbzV8,30
7
+ odoo/addons/shopinvader_sale_order_line_delivery_state/models/sale_order_line.py,sha256=tzsTglBzvWAqU0HUlMQsegKjVTt27KjqXjTw8_EsxRg,1086
8
+ odoo/addons/shopinvader_sale_order_line_delivery_state/readme/CONTRIBUTORS.rst,sha256=HX0cxy6MM65zsPQoPFeaWLphlqNSJCttD6XMBrOWlvY,48
9
+ odoo/addons/shopinvader_sale_order_line_delivery_state/readme/DESCRIPTION.rst,sha256=65PeDZlIzlKD3Wt_Pok74Lj_d3SJzNSX-KOICq1Wvcc,249
10
+ odoo/addons/shopinvader_sale_order_line_delivery_state/services/__init__.py,sha256=M10sPi1VlX7vB6rEf4EegMae-btiTh2xlShiKfuMXpU,28
11
+ odoo/addons/shopinvader_sale_order_line_delivery_state/services/abstract_sale.py,sha256=ZCgbgLPnUzwxV6WnZOns7D5eTzcjRGk2T8LE56fz3-M,462
12
+ odoo/addons/shopinvader_sale_order_line_delivery_state/static/description/index.html,sha256=GKrOazCLegPxEEboIgdB0ehLQTspcrU00aaoGrJBDTE,11554
13
+ odoo/addons/shopinvader_sale_order_line_delivery_state/tests/__init__.py,sha256=Enjrby54D0RP3sL8NO97i34pHNabeVriMVStkaVzvvo,24
14
+ odoo/addons/shopinvader_sale_order_line_delivery_state/tests/test_sale.py,sha256=FHBxjvdf-cgX43LmNEDRialIo2twBYe8HXQDqXZMqJI,1897
15
+ odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.dist-info/METADATA,sha256=2Q0Yn0b5kKZyt3hxsbVY1F8WUMPfVLgbE3RQrHSEWrs,2998
16
+ odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
17
+ odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
18
+ odoo13_addon_shopinvader_sale_order_line_delivery_state-13.0.1.0.2.dev1.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
+