odoo-addon-sale-order-line-sequence 17.0.1.1.0.3__py3-none-any.whl → 17.0.1.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of odoo-addon-sale-order-line-sequence might be problematic. Click here for more details.

@@ -7,7 +7,7 @@ Sale Order Line Sequence
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:c004e5e74ba0553f40870012c2581c62810ca54892eb3250b2dcfafa4b701750
10
+ !! source digest: sha256:d455ab841a15a0dde801efbe483902d8d76856c7078779e46d53d2e2a586a3d7
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -58,9 +58,9 @@ Authors
58
58
  Contributors
59
59
  ------------
60
60
 
61
- - ForgeFlow S.L. <contact@forgeflow.com>
62
- - Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
63
- - Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
61
+ - ForgeFlow S.L. <contact@forgeflow.com>
62
+ - Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
63
+ - Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
64
64
 
65
65
  Other credits
66
66
  -------------
@@ -68,8 +68,8 @@ Other credits
68
68
  Images
69
69
  ~~~~~~
70
70
 
71
- - Odoo Community Association:
72
- `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`__.
71
+ - Odoo Community Association:
72
+ `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`__.
73
73
 
74
74
  Maintainers
75
75
  -----------
@@ -5,7 +5,7 @@
5
5
  {
6
6
  "name": "Sale Order Line Sequence",
7
7
  "summary": "Propagates SO line sequence to invoices and stock picking.",
8
- "version": "17.0.1.1.0",
8
+ "version": "17.0.1.1.1",
9
9
  "author": "ForgeFlow, Serpent CS, Odoo Community Association (OCA)",
10
10
  "category": "Sales",
11
11
  "website": "https://github.com/OCA/sale-workflow",
@@ -14,11 +14,20 @@ class AccountMoveLine(models.Model):
14
14
 
15
15
  @api.depends("move_id.invoice_line_ids")
16
16
  def _compute_related_so_sequence(self):
17
+ """Reflect the sale line sequence(s) on the invoice line"""
17
18
  for rec in self:
18
- if len(rec.move_id.mapped("line_ids.sale_line_ids.order_id")) > 1:
19
- rec.related_so_sequence = "{}/{}".format(
20
- rec.sale_line_ids.order_id.name,
21
- rec.sale_line_ids.visible_sequence,
19
+ if (
20
+ len(rec.move_id.line_ids.sale_line_ids.order_id) > 1
21
+ or len(rec.sale_line_ids) > 1
22
+ ):
23
+ sequences = sorted(
24
+ set(
25
+ (sale_line.visible_sequence, sale_line.order_id.name)
26
+ for sale_line in rec.sale_line_ids
27
+ )
28
+ )
29
+ rec.related_so_sequence = ", ".join(
30
+ f"{sequence[1]}/{sequence[0]}" for sequence in sequences
22
31
  )
23
32
  else:
24
33
  rec.related_so_sequence = str(rec.sale_line_ids.visible_sequence)
@@ -367,7 +367,7 @@ ul.auto-toc {
367
367
  !! This file is generated by oca-gen-addon-readme !!
368
368
  !! changes will be overwritten. !!
369
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:c004e5e74ba0553f40870012c2581c62810ca54892eb3250b2dcfafa4b701750
370
+ !! source digest: sha256:d455ab841a15a0dde801efbe483902d8d76856c7078779e46d53d2e2a586a3d7
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
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/sale-workflow/tree/17.0/sale_order_line_sequence"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_line_sequence"><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/sale-workflow&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p>Displays the sequence of Sale order line and helps to maintain the
@@ -102,3 +102,25 @@ class TestSaleOrderLineSequence(TransactionCase):
102
102
  str(so.order_line[1].visible_sequence),
103
103
  self.invoice.line_ids[1].related_so_sequence,
104
104
  )
105
+
106
+ def test_combined_invoice_sequence(self):
107
+ """A combination of sequences is rendered correctly on the invoice line"""
108
+ so = self._create_sale_order()
109
+ so.action_confirm()
110
+ so.order_line.qty_delivered = 5
111
+ so2 = so.copy()
112
+ so2.order_line.visible_sequence = 2
113
+ so2.action_confirm()
114
+ so2.order_line.qty_delivered = 4
115
+ invoice = (so + so2)._create_invoices()
116
+ self.assertEqual(so.invoice_ids, so2.invoice_ids)
117
+
118
+ # Merge move lines (as per customization)
119
+ invoice_lines = so2.order_line.invoice_lines
120
+ so2.order_line.invoice_lines = so.order_line.invoice_lines
121
+ so.order_line.invoice_lines.quantity = 9
122
+ invoice_lines.unlink()
123
+
124
+ self.assertEqual(
125
+ invoice.line_ids[0].related_so_sequence, f"{so.name}/1, {so2.name}/2"
126
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-sale_order_line_sequence
3
- Version: 17.0.1.1.0.3
3
+ Version: 17.0.1.1.1
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Summary: Propagates SO line sequence to invoices and stock picking.
@@ -22,7 +22,7 @@ Sale Order Line Sequence
22
22
  !! This file is generated by oca-gen-addon-readme !!
23
23
  !! changes will be overwritten. !!
24
24
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
25
- !! source digest: sha256:c004e5e74ba0553f40870012c2581c62810ca54892eb3250b2dcfafa4b701750
25
+ !! source digest: sha256:d455ab841a15a0dde801efbe483902d8d76856c7078779e46d53d2e2a586a3d7
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
27
 
28
28
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -73,9 +73,9 @@ Authors
73
73
  Contributors
74
74
  ------------
75
75
 
76
- - ForgeFlow S.L. <contact@forgeflow.com>
77
- - Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
78
- - Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
76
+ - ForgeFlow S.L. <contact@forgeflow.com>
77
+ - Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
78
+ - Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
79
79
 
80
80
  Other credits
81
81
  -------------
@@ -83,8 +83,8 @@ Other credits
83
83
  Images
84
84
  ~~~~~~
85
85
 
86
- - Odoo Community Association:
87
- `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`__.
86
+ - Odoo Community Association:
87
+ `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`__.
88
88
 
89
89
  Maintainers
90
90
  -----------
@@ -1,6 +1,6 @@
1
- odoo/addons/sale_order_line_sequence/README.rst,sha256=YJslhqYeRCnzij0dARPEAdJ-3hKqo-ovZZWjFU72HAY,3286
1
+ odoo/addons/sale_order_line_sequence/README.rst,sha256=Uzwv1sN-MAZq6Ql4AAejA5aJvDWK-9q4ADj8E17E7HM,3281
2
2
  odoo/addons/sale_order_line_sequence/__init__.py,sha256=QXl_U5mKDJfzIWJDZpUzH9Rf4Zda8Ko8Q1Df6Lc0MF8,92
3
- odoo/addons/sale_order_line_sequence/__manifest__.py,sha256=BWJg4NSkUU8gu1mFVWXsgPIbpZqrIuoaUwg1iPslgCQ,701
3
+ odoo/addons/sale_order_line_sequence/__manifest__.py,sha256=4vVOxsua6gOaz3V8TrOn5xlQd78ejxPBnPnedNdD5-w,701
4
4
  odoo/addons/sale_order_line_sequence/i18n/ca.po,sha256=7yEPiuaRACguMgRTB9zrBBEuAvd_9JTWvcH_djNy8x0,2571
5
5
  odoo/addons/sale_order_line_sequence/i18n/de.po,sha256=se9wS16jFQtVw4xyriAQXENfIso0xR9qvKT1Adw-3sw,2893
6
6
  odoo/addons/sale_order_line_sequence/i18n/el_GR.po,sha256=RPU95vKiARmDdOE7N0En_9dRDUrGwzdag1aFpL9jJ7I,2570
@@ -26,21 +26,21 @@ odoo/addons/sale_order_line_sequence/i18n/tr_TR.po,sha256=dyh3lbCpaQH31Se4NrdRpG
26
26
  odoo/addons/sale_order_line_sequence/i18n/vi_VN.po,sha256=VOH7gJ99xLut-Gl5-ZhKRTSw8iiy4uF816Ax_QW51_o,2559
27
27
  odoo/addons/sale_order_line_sequence/i18n/zh_CN.po,sha256=3E8-BzYIv-c9kFqeGrfiAibOt7vaViijnU6Wcma5Jy8,2831
28
28
  odoo/addons/sale_order_line_sequence/models/__init__.py,sha256=VRPd35ij54tshK-q0rTvzxebdiyow6L25QcghlF1TKQ,158
29
- odoo/addons/sale_order_line_sequence/models/account_move_line.py,sha256=o2NdsXBlHVnpSsXkLd3FM82i0T3WNI-N-WoT78NTCxE,820
29
+ odoo/addons/sale_order_line_sequence/models/account_move_line.py,sha256=yaYMUKHHNYvr8scpIaz-2MEMSDmKcrK4ZD2A9NgLa1M,1157
30
30
  odoo/addons/sale_order_line_sequence/models/sale_order.py,sha256=B8VS4-qU1gPXjjoKBBgC7KwpwXXFLKYQNrN6EFdtSog,914
31
31
  odoo/addons/sale_order_line_sequence/models/sale_order_line.py,sha256=MsAZT5SXS6QSyHGQ4ZAPb3e5sel0JA4hd12di5XoNhU,1114
32
32
  odoo/addons/sale_order_line_sequence/readme/CONTRIBUTORS.md,sha256=38hwC3KDaKbW3aUpL5MnroFoaqjyGD6QagqPXT7Bf2w,170
33
33
  odoo/addons/sale_order_line_sequence/readme/CREDITS.md,sha256=zjq-9glj9FlRHMVAtE7bmB70S8WGEsls0lYAxLwhNQ8,148
34
34
  odoo/addons/sale_order_line_sequence/readme/DESCRIPTION.md,sha256=rANc1gszzHTruCg-uf2I2_egPE1ECQdEO9BNBZZADN4,140
35
35
  odoo/addons/sale_order_line_sequence/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
36
- odoo/addons/sale_order_line_sequence/static/description/index.html,sha256=eR9YWIGD-v1FhCnvKA7aI9DJxrrLWlQFASQk1VqcqbE,13216
36
+ odoo/addons/sale_order_line_sequence/static/description/index.html,sha256=xaaazq8Sl9THFMv3lzV1awzVaGxivMPXqf4He6fVmVo,13216
37
37
  odoo/addons/sale_order_line_sequence/tests/__init__.py,sha256=nrrUFWs1sNdScz5WKYeeT3b75RGu9EYowrBNnl9z1X0,44
38
- odoo/addons/sale_order_line_sequence/tests/test_sale_order_line_sequence.py,sha256=TgZRTqCMlYBMMqpZVDQpl7nNoHgTjUSttwUakBolerc,3562
38
+ odoo/addons/sale_order_line_sequence/tests/test_sale_order_line_sequence.py,sha256=4foCr_PzvZSDJvXMeBtwrc-SDnvqJYUInTBNqgzLI-o,4413
39
39
  odoo/addons/sale_order_line_sequence/views/account_move_view.xml,sha256=ue33bGcUmgjSeN5xzNS82uXb3xH8YAeB32_OUJYa_Dc,677
40
40
  odoo/addons/sale_order_line_sequence/views/report_invoice.xml,sha256=PQf7Lo9jAQCVRlE658Zs_s6QO8lyPBJiI_R6yvPzrNg,948
41
41
  odoo/addons/sale_order_line_sequence/views/report_saleorder.xml,sha256=JVvnNxK871yr0fbD-CwRIu4863wVsC1_CFRkByP2yRY,663
42
42
  odoo/addons/sale_order_line_sequence/views/sale_view.xml,sha256=ZB_hybarQxn5ctk-j1EtWFaf3LWGLaltPGh_41Cw7a0,913
43
- odoo_addon_sale_order_line_sequence-17.0.1.1.0.3.dist-info/METADATA,sha256=ZRlAETz38I4rfE5CYwO3_rbBLXm3P7NVa9K252QAzP0,3857
44
- odoo_addon_sale_order_line_sequence-17.0.1.1.0.3.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
45
- odoo_addon_sale_order_line_sequence-17.0.1.1.0.3.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
46
- odoo_addon_sale_order_line_sequence-17.0.1.1.0.3.dist-info/RECORD,,
43
+ odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info/METADATA,sha256=V3mtPdGLxUybAcXDnvJ14g49xTJR1XVQpDnk_WMVRGU,3850
44
+ odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
45
+ odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
46
+ odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info/RECORD,,