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