odoo-addon-sale-blanket-order 16.0.1.0.0.5__py3-none-any.whl → 18.0.1.2.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.
- odoo/addons/sale_blanket_order/README.rst +116 -64
- odoo/addons/sale_blanket_order/__manifest__.py +8 -3
- odoo/addons/sale_blanket_order/data/ir_cron.xml +0 -2
- odoo/addons/sale_blanket_order/i18n/de.po +117 -109
- odoo/addons/sale_blanket_order/i18n/es.po +91 -91
- odoo/addons/sale_blanket_order/i18n/fr.po +99 -97
- odoo/addons/sale_blanket_order/i18n/fr_FR.po +91 -91
- odoo/addons/sale_blanket_order/i18n/it.po +69 -80
- odoo/addons/sale_blanket_order/i18n/pt.po +51 -88
- odoo/addons/sale_blanket_order/i18n/sale_blanket_order.pot +26 -67
- odoo/addons/sale_blanket_order/models/blanket_orders.py +84 -146
- odoo/addons/sale_blanket_order/models/sale_config_settings.py +0 -1
- odoo/addons/sale_blanket_order/models/sale_orders.py +20 -7
- odoo/addons/sale_blanket_order/readme/CONTEXT.md +5 -0
- odoo/addons/sale_blanket_order/readme/CONTRIBUTORS.md +17 -0
- odoo/addons/sale_blanket_order/readme/{CREDITS.rst → CREDITS.md} +2 -1
- odoo/addons/sale_blanket_order/readme/DESCRIPTION.md +5 -0
- odoo/addons/sale_blanket_order/readme/ROADMAP.md +3 -0
- odoo/addons/sale_blanket_order/readme/USAGE.md +58 -0
- odoo/addons/sale_blanket_order/report/report.xml +0 -2
- odoo/addons/sale_blanket_order/report/templates.xml +32 -35
- odoo/addons/sale_blanket_order/static/description/index.html +103 -69
- odoo/addons/sale_blanket_order/static/src/js/disable_add_order_line.esm.js +22 -0
- odoo/addons/sale_blanket_order/tests/test_blanket_orders.py +99 -50
- odoo/addons/sale_blanket_order/tests/test_sale_order.py +7 -21
- odoo/addons/sale_blanket_order/views/sale_blanket_order_line_views.xml +17 -28
- odoo/addons/sale_blanket_order/views/sale_blanket_order_views.xml +36 -58
- odoo/addons/sale_blanket_order/views/sale_config_settings.xml +11 -19
- odoo/addons/sale_blanket_order/views/sale_order_views.xml +7 -9
- odoo/addons/sale_blanket_order/wizard/create_sale_orders.py +58 -41
- odoo/addons/sale_blanket_order/wizard/create_sale_orders.xml +12 -2
- odoo_addon_sale_blanket_order-18.0.1.2.1.dist-info/METADATA +216 -0
- odoo_addon_sale_blanket_order-18.0.1.2.1.dist-info/RECORD +49 -0
- {odoo_addon_sale_blanket_order-16.0.1.0.0.5.dist-info → odoo_addon_sale_blanket_order-18.0.1.2.1.dist-info}/WHEEL +1 -1
- odoo_addon_sale_blanket_order-18.0.1.2.1.dist-info/top_level.txt +1 -0
- odoo/addons/sale_blanket_order/readme/CONTRIBUTORS.rst +0 -8
- odoo/addons/sale_blanket_order/readme/DESCRIPTION.rst +0 -4
- odoo/addons/sale_blanket_order/readme/USAGE.rst +0 -53
- odoo_addon_sale_blanket_order-16.0.1.0.0.5.dist-info/METADATA +0 -167
- odoo_addon_sale_blanket_order-16.0.1.0.0.5.dist-info/RECORD +0 -46
- odoo_addon_sale_blanket_order-16.0.1.0.0.5.dist-info/top_level.txt +0 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
2
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
3
|
+
:alt: Odoo Community Association
|
|
4
|
+
|
|
1
5
|
===================
|
|
2
6
|
Sale Blanket Orders
|
|
3
7
|
===================
|
|
@@ -7,101 +11,140 @@ Sale Blanket Orders
|
|
|
7
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
12
|
!! changes will be overwritten. !!
|
|
9
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:00fac5d1161a77a5a6a5380509418cd7612e2ed365042549c170804219b62fd0
|
|
11
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
16
|
|
|
13
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
14
18
|
:target: https://odoo-community.org/page/development-status
|
|
15
19
|
:alt: Beta
|
|
16
|
-
.. |badge2| image:: https://img.shields.io/badge/
|
|
20
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
17
21
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
22
|
:alt: License: AGPL-3
|
|
19
|
-
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--
|
|
20
|
-
:target: https://github.com/OCA/sale-
|
|
21
|
-
:alt: OCA/sale-
|
|
23
|
+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--blanket-lightgray.png?logo=github
|
|
24
|
+
:target: https://github.com/OCA/sale-blanket/tree/18.0/sale_blanket_order
|
|
25
|
+
:alt: OCA/sale-blanket
|
|
22
26
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/sale-
|
|
27
|
+
:target: https://translation.odoo-community.org/projects/sale-blanket-18-0/sale-blanket-18-0-sale_blanket_order
|
|
24
28
|
:alt: Translate me on Weblate
|
|
25
29
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-
|
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-blanket&target_branch=18.0
|
|
27
31
|
:alt: Try me on Runboat
|
|
28
32
|
|
|
29
33
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
30
34
|
|
|
31
|
-
A blanket order is a pre-agreement to sell a certain number of
|
|
32
|
-
products at a specific price. From a confirmed blanket
|
|
33
|
-
create new sale orders at such price, until the
|
|
34
|
-
due to reaching the validity date or
|
|
35
|
+
A blanket order is a pre-agreement to sell a certain number of
|
|
36
|
+
quantities of products at a specific price. From a confirmed blanket
|
|
37
|
+
order, the users can create new sale orders at such price, until the
|
|
38
|
+
blanket order expires, either due to reaching the validity date or
|
|
39
|
+
exhausting all the quantities of products.
|
|
35
40
|
|
|
36
41
|
**Table of contents**
|
|
37
42
|
|
|
38
43
|
.. contents::
|
|
39
44
|
:local:
|
|
40
45
|
|
|
46
|
+
Use Cases / Context
|
|
47
|
+
===================
|
|
48
|
+
|
|
49
|
+
Others modules provide similar features. The module
|
|
50
|
+
(sale_order_blanket_order)[https://pypi.org/project/odoo-addon-sale-order-blanket-order]
|
|
51
|
+
also defines the concept of sale blanket order. The main differences
|
|
52
|
+
are:
|
|
53
|
+
|
|
54
|
+
- This module integrates Blanket Orders and Call-Off Orders into the
|
|
55
|
+
sale.blanket.order object, whereas the other module extends the
|
|
56
|
+
sale.order object. This means that any extensions made to the sale
|
|
57
|
+
order model can also apply to blanket orders.
|
|
58
|
+
|
|
59
|
+
- In the other module, you can deliver and invoice directly from the
|
|
60
|
+
blanket order. You can also create a separate call-off order to
|
|
61
|
+
partially deliver the blanket order.
|
|
62
|
+
|
|
41
63
|
Usage
|
|
42
64
|
=====
|
|
43
65
|
|
|
44
|
-
A new menu in the Sales area is created, allowing users to create new
|
|
66
|
+
A new menu in the Sales area is created, allowing users to create new
|
|
67
|
+
blanket orders.
|
|
68
|
+
|
|
69
|
+
To create a new Sale Blanket Order go to the sale menu in the Sales
|
|
70
|
+
section:
|
|
71
|
+
|
|
72
|
+
|image1|
|
|
73
|
+
|
|
74
|
+
Hitting the button create will open the form view in which we can
|
|
75
|
+
introduce the following information:
|
|
76
|
+
|
|
77
|
+
- Vendor
|
|
45
78
|
|
|
46
|
-
|
|
79
|
+
- Salesperson
|
|
47
80
|
|
|
48
|
-
|
|
49
|
-
:alt: Blanket Orders menu
|
|
81
|
+
- Payment Terms
|
|
50
82
|
|
|
51
|
-
|
|
52
|
-
information:
|
|
83
|
+
- Validity date
|
|
53
84
|
|
|
54
|
-
|
|
55
|
-
* Salesperson
|
|
56
|
-
* Payment Terms
|
|
57
|
-
* Validity date
|
|
58
|
-
* Order lines:
|
|
59
|
-
* Product
|
|
60
|
-
* Accorded price
|
|
61
|
-
* Original, Ordered, Invoiced, Received and Remaining quantities
|
|
62
|
-
* Terms and Conditions of the Blanket Order
|
|
85
|
+
- Order lines:
|
|
63
86
|
|
|
64
|
-
|
|
65
|
-
|
|
87
|
+
- Product
|
|
88
|
+
- Accorded price
|
|
89
|
+
- Original, Ordered, Invoiced, Received and Remaining quantities
|
|
66
90
|
|
|
67
|
-
|
|
68
|
-
create a Sale Order, check the Sale Orders associated to the Blanket Order and/or
|
|
69
|
-
see the Blanket Order lines associated to the BO.
|
|
91
|
+
- Terms and Conditions of the Blanket Order
|
|
70
92
|
|
|
71
|
-
|
|
72
|
-
:alt: Actions that can be done from Blanket Order
|
|
93
|
+
|image2|
|
|
73
94
|
|
|
74
|
-
|
|
75
|
-
|
|
95
|
+
From the form, once the Blanket Order has been confirmed and its state
|
|
96
|
+
is open, the user can create a Sale Order, check the Sale Orders
|
|
97
|
+
associated to the Blanket Order and/or see the Blanket Order lines
|
|
98
|
+
associated to the BO.
|
|
76
99
|
|
|
77
|
-
|
|
78
|
-
:alt: Create Sale Order from Blanket Order
|
|
100
|
+
|image3|
|
|
79
101
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
102
|
+
Hitting the button Create Sale Order will open a wizard that will ask
|
|
103
|
+
for the amount of each product in the BO lines for which the Sale Order
|
|
104
|
+
will be created.
|
|
83
105
|
|
|
84
|
-
|
|
85
|
-
:alt: Blanket Order lines and actions
|
|
106
|
+
|image4|
|
|
86
107
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
108
|
+
Installing this module will add an additional menu which will show all
|
|
109
|
+
the blanket order lines currently defined in the system. From this list
|
|
110
|
+
the user can create customized Sale Orders selecting the lines for which
|
|
111
|
+
the PO (or POs if the customers are different) is (are) created.
|
|
112
|
+
|
|
113
|
+
|image5|
|
|
114
|
+
|
|
115
|
+
In the Sale Order form one field is added in the PO lines, the Blanket
|
|
116
|
+
Order line field. This field keeps track to which Blanket Order line the
|
|
117
|
+
PO line is associated. Upon adding a new product in a newly created Sale
|
|
118
|
+
Order a blanket order line will be suggested depending on the following
|
|
90
119
|
factors:
|
|
91
120
|
|
|
92
|
-
|
|
93
|
-
|
|
121
|
+
- Closer Validity date
|
|
122
|
+
- Remaining quantity > Quantity introduced in the Sale Order line
|
|
123
|
+
|
|
124
|
+
|image6|
|
|
94
125
|
|
|
95
|
-
..
|
|
96
|
-
|
|
126
|
+
.. |image1| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/BO_menu.png
|
|
127
|
+
.. |image2| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/BO_form.png
|
|
128
|
+
.. |image3| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/BO_actions.png
|
|
129
|
+
.. |image4| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/PO_from_BO.png
|
|
130
|
+
.. |image5| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/BO_lines.png
|
|
131
|
+
.. |image6| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/PO_BOLine.png
|
|
132
|
+
|
|
133
|
+
Known issues / Roadmap
|
|
134
|
+
======================
|
|
135
|
+
|
|
136
|
+
- Currently, combo products are not supported in blanket orders nor
|
|
137
|
+
blanket order lines, they are treated as regular products. Future
|
|
138
|
+
versions of the module should include support for these types of
|
|
139
|
+
products.
|
|
97
140
|
|
|
98
141
|
Bug Tracker
|
|
99
142
|
===========
|
|
100
143
|
|
|
101
|
-
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-
|
|
144
|
+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-blanket/issues>`_.
|
|
102
145
|
In case of trouble, please check there if your issue has already been reported.
|
|
103
146
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
104
|
-
`feedback <https://github.com/OCA/sale-
|
|
147
|
+
`feedback <https://github.com/OCA/sale-blanket/issues/new?body=module:%20sale_blanket_order%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
105
148
|
|
|
106
149
|
Do not contact contributors directly about support or help with technical issues.
|
|
107
150
|
|
|
@@ -109,29 +152,38 @@ Credits
|
|
|
109
152
|
=======
|
|
110
153
|
|
|
111
154
|
Authors
|
|
112
|
-
|
|
155
|
+
-------
|
|
113
156
|
|
|
114
157
|
* Acsone SA/NV
|
|
115
158
|
|
|
116
159
|
Contributors
|
|
117
|
-
|
|
160
|
+
------------
|
|
161
|
+
|
|
162
|
+
- André Pereira <github@andreparames.com> (https://www.acsone.eu/)
|
|
163
|
+
|
|
164
|
+
- Adrià Gil Sorribes <adria.gil@eficent.com> (https://www.eficent.com/)
|
|
165
|
+
|
|
166
|
+
- Jordi Ballester Alomar <jordi.ballester@eficent.com>
|
|
167
|
+
|
|
168
|
+
- Alex Comba <alex.comba@agilebg.com> (https://www.agilebg.com/)
|
|
169
|
+
|
|
170
|
+
- Codeforward (https://www.codeforward.nl/):
|
|
171
|
+
|
|
172
|
+
- Jasper Jumelet <jasper.jumelet@codeforward.nl>
|
|
173
|
+
- Chris Bergman <chris.bergman@codeforward.nl>
|
|
118
174
|
|
|
119
|
-
|
|
120
|
-
* Adrià Gil Sorribes <adria.gil@eficent.com> (https://www.eficent.com/)
|
|
121
|
-
* Jordi Ballester Alomar <jordi.ballester@eficent.com>
|
|
122
|
-
* Alex Comba <alex.comba@agilebg.com> (https://www.agilebg.com/)
|
|
123
|
-
* Jasper Jumelet <jasper.jumelet@codeforward.nl> (https://www.codeforward.nl/)
|
|
124
|
-
* `Trobz <https://trobz.com>`_:
|
|
175
|
+
- `Trobz <https://trobz.com>`__:
|
|
125
176
|
|
|
126
|
-
|
|
177
|
+
- Nguyễn Minh Chiến <chien@trobz.com>
|
|
127
178
|
|
|
128
179
|
Other credits
|
|
129
|
-
|
|
180
|
+
-------------
|
|
130
181
|
|
|
131
|
-
The migration of this module from 15.0 to 16.0 was financially supported
|
|
182
|
+
The migration of this module from 15.0 to 16.0 was financially supported
|
|
183
|
+
by Camptocamp
|
|
132
184
|
|
|
133
185
|
Maintainers
|
|
134
|
-
|
|
186
|
+
-----------
|
|
135
187
|
|
|
136
188
|
This module is maintained by the OCA.
|
|
137
189
|
|
|
@@ -143,6 +195,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
143
195
|
mission is to support the collaborative development of Odoo features and
|
|
144
196
|
promote its widespread use.
|
|
145
197
|
|
|
146
|
-
This module is part of the `OCA/sale-
|
|
198
|
+
This module is part of the `OCA/sale-blanket <https://github.com/OCA/sale-blanket/tree/18.0/sale_blanket_order>`_ project on GitHub.
|
|
147
199
|
|
|
148
200
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"category": "Sale",
|
|
6
6
|
"license": "AGPL-3",
|
|
7
7
|
"author": "Acsone SA/NV, Odoo Community Association (OCA)",
|
|
8
|
-
"version": "
|
|
9
|
-
"website": "https://github.com/OCA/sale-
|
|
8
|
+
"version": "18.0.1.2.1",
|
|
9
|
+
"website": "https://github.com/OCA/sale-blanket",
|
|
10
10
|
"summary": "Blanket Orders",
|
|
11
|
-
"depends": ["uom", "sale_management"
|
|
11
|
+
"depends": ["uom", "sale_management"],
|
|
12
12
|
"data": [
|
|
13
13
|
"security/security.xml",
|
|
14
14
|
"security/ir.model.access.csv",
|
|
@@ -22,5 +22,10 @@
|
|
|
22
22
|
"report/templates.xml",
|
|
23
23
|
"report/report.xml",
|
|
24
24
|
],
|
|
25
|
+
"assets": {
|
|
26
|
+
"web.assets_backend": [
|
|
27
|
+
"sale_blanket_order/static/src/js/disable_add_order_line.esm.js",
|
|
28
|
+
],
|
|
29
|
+
},
|
|
25
30
|
"installable": True,
|
|
26
31
|
}
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
name="nextcall"
|
|
11
11
|
eval="(DateTime.now() + relativedelta(hour=00, minute=1, second=0)).strftime('%Y-%m-%d %H:%M:%S')"
|
|
12
12
|
/>
|
|
13
|
-
<field name="numbercall">-1</field>
|
|
14
|
-
<field name="doall" eval="False" />
|
|
15
13
|
<field name="model_id" ref="model_sale_blanket_order" />
|
|
16
14
|
<field name="state">code</field>
|
|
17
15
|
<field name="code">model.expire_orders()</field>
|