odoo-addon-sale-order-line-sequence 17.0.1.1.0.2__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.
- odoo/addons/sale_order_line_sequence/README.rst +6 -6
- odoo/addons/sale_order_line_sequence/__manifest__.py +1 -1
- odoo/addons/sale_order_line_sequence/i18n/fr.po +4 -4
- odoo/addons/sale_order_line_sequence/models/account_move_line.py +13 -4
- odoo/addons/sale_order_line_sequence/static/description/index.html +1 -1
- odoo/addons/sale_order_line_sequence/tests/test_sale_order_line_sequence.py +22 -0
- {odoo_addon_sale_order_line_sequence-17.0.1.1.0.2.dist-info → odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info}/METADATA +7 -7
- {odoo_addon_sale_order_line_sequence-17.0.1.1.0.2.dist-info → odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info}/RECORD +10 -10
- {odoo_addon_sale_order_line_sequence-17.0.1.1.0.2.dist-info → odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info}/WHEEL +0 -0
- {odoo_addon_sale_order_line_sequence-17.0.1.1.0.2.dist-info → odoo_addon_sale_order_line_sequence-17.0.1.1.1.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
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
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
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
|
-
-
|
|
72
|
-
|
|
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.
|
|
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",
|
|
@@ -9,7 +9,7 @@ msgstr ""
|
|
|
9
9
|
"Project-Id-Version: Odoo Server 10.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
11
|
"POT-Creation-Date: 2017-07-08 00:49+0000\n"
|
|
12
|
-
"PO-Revision-Date: 2024-11-
|
|
12
|
+
"PO-Revision-Date: 2024-11-17 18:06+0000\n"
|
|
13
13
|
"Last-Translator: Julien Hémono <julien@hemono.fr>\n"
|
|
14
14
|
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
|
|
15
15
|
"Language: fr\n"
|
|
@@ -37,7 +37,7 @@ msgstr "Donne la position de la ligne à l'affichage de la commande."
|
|
|
37
37
|
#. module: sale_order_line_sequence
|
|
38
38
|
#: model:ir.model,name:sale_order_line_sequence.model_account_move_line
|
|
39
39
|
msgid "Journal Item"
|
|
40
|
-
msgstr ""
|
|
40
|
+
msgstr "Écriture comptable"
|
|
41
41
|
|
|
42
42
|
#. module: sale_order_line_sequence
|
|
43
43
|
#: model:ir.model.fields,field_description:sale_order_line_sequence.field_sale_order_line__visible_sequence
|
|
@@ -58,12 +58,12 @@ msgstr "Ligne de commande n°"
|
|
|
58
58
|
#. module: sale_order_line_sequence
|
|
59
59
|
#: model:ir.model,name:sale_order_line_sequence.model_sale_order
|
|
60
60
|
msgid "Sales Order"
|
|
61
|
-
msgstr ""
|
|
61
|
+
msgstr "Bon de commande"
|
|
62
62
|
|
|
63
63
|
#. module: sale_order_line_sequence
|
|
64
64
|
#: model:ir.model,name:sale_order_line_sequence.model_sale_order_line
|
|
65
65
|
msgid "Sales Order Line"
|
|
66
|
-
msgstr ""
|
|
66
|
+
msgstr "Ligne de commande"
|
|
67
67
|
|
|
68
68
|
#. module: sale_order_line_sequence
|
|
69
69
|
#: model:ir.model.fields,field_description:sale_order_line_sequence.field_sale_order_line__sequence
|
|
@@ -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
|
|
19
|
-
rec.
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
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&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.
|
|
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:
|
|
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
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
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
|
-
-
|
|
87
|
-
|
|
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=
|
|
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=
|
|
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
|
|
@@ -8,7 +8,7 @@ odoo/addons/sale_order_line_sequence/i18n/es.po,sha256=eaZpUfIMVKltp5gP3iy9PFnaT
|
|
|
8
8
|
odoo/addons/sale_order_line_sequence/i18n/es_ES.po,sha256=b4i0IX6Pm1BSQT1gZds-yLv2PrXSltf4EIZ8YpkwXHo,2559
|
|
9
9
|
odoo/addons/sale_order_line_sequence/i18n/es_VE.po,sha256=NBkGOBLQmH0kKdnFWiwxUZhbo0x7Y_kSCg1tQfnGuck,2589
|
|
10
10
|
odoo/addons/sale_order_line_sequence/i18n/fi.po,sha256=V3WNCLc3SlMGfGCW86jQoPrhQoWU1ObYXQkQzoYjxXA,2539
|
|
11
|
-
odoo/addons/sale_order_line_sequence/i18n/fr.po,sha256=
|
|
11
|
+
odoo/addons/sale_order_line_sequence/i18n/fr.po,sha256=ZAbxhb3hborfXyDCKXGYrzckdLDADg0KhpKwunZrPBk,2808
|
|
12
12
|
odoo/addons/sale_order_line_sequence/i18n/hr.po,sha256=kSBbGwv_WaYUmMJB3SbideWgo2V_vUA0jXCOKZSVobQ,2937
|
|
13
13
|
odoo/addons/sale_order_line_sequence/i18n/hr_HR.po,sha256=fR1xMRNG_QSZ-bqeB6h6NAE-70jk644Ls7GLrHJTkRw,2636
|
|
14
14
|
odoo/addons/sale_order_line_sequence/i18n/hu.po,sha256=rNmNRan2tqrVfiBFdpRR-fmt02CUxNvJNBARrywRm1o,2548
|
|
@@ -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=
|
|
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=
|
|
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=
|
|
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.
|
|
44
|
-
odoo_addon_sale_order_line_sequence-17.0.1.1.
|
|
45
|
-
odoo_addon_sale_order_line_sequence-17.0.1.1.
|
|
46
|
-
odoo_addon_sale_order_line_sequence-17.0.1.1.
|
|
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,,
|
|
File without changes
|