odoo-addon-sale-blanket-order 16.0.1.2.0.1__py3-none-any.whl → 16.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.

Potentially problematic release.


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

@@ -7,7 +7,7 @@ Sale Blanket Orders
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:d5d1f4cfe953ae00daba19c3cd0f57fc737a69c986de051a73c55a0652555f51
10
+ !! source digest: sha256:ec0a30e1dd8b2346940c480c8a6e3541ebdb7c106b60a1228b1074966aebdfaf
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -5,7 +5,7 @@
5
5
  "category": "Sale",
6
6
  "license": "AGPL-3",
7
7
  "author": "Acsone SA/NV, Odoo Community Association (OCA)",
8
- "version": "16.0.1.2.0",
8
+ "version": "16.0.1.2.1",
9
9
  "website": "https://github.com/OCA/sale-workflow",
10
10
  "summary": "Blanket Orders",
11
11
  "depends": ["uom", "sale_management", "web_action_conditionable"],
@@ -317,6 +317,11 @@ msgstr ""
317
317
  msgid "Description"
318
318
  msgstr ""
319
319
 
320
+ #. module: sale_blanket_order
321
+ #: model:ir.model.fields,field_description:sale_blanket_order.field_sale_order__disable_adding_lines
322
+ msgid "Disable Adding Lines"
323
+ msgstr ""
324
+
320
325
  #. module: sale_blanket_order
321
326
  #: model:ir.model.fields,field_description:sale_blanket_order.field_res_config_settings__group_blanket_disable_adding_lines
322
327
  msgid "Disable adding more lines to SOs"
@@ -15,6 +15,9 @@ class SaleOrder(models.Model):
15
15
  string="Origin blanket order",
16
16
  related="order_line.blanket_order_line.order_id",
17
17
  )
18
+ disable_adding_lines = fields.Boolean(
19
+ compute="_compute_disable_adding_lines",
20
+ )
18
21
 
19
22
  @api.model
20
23
  def _check_exchausted_blanket_order_line(self):
@@ -47,6 +50,16 @@ class SaleOrder(models.Model):
47
50
  )
48
51
  )
49
52
 
53
+ @api.depends("blanket_order_id")
54
+ @api.depends_context("uid")
55
+ def _compute_disable_adding_lines(self):
56
+ self.disable_adding_lines = False
57
+ if self.env.user.has_group(
58
+ "sale_blanket_order.blanket_orders_disable_adding_lines"
59
+ ):
60
+ for order in self:
61
+ order.disable_adding_lines = order.blanket_order_id
62
+
50
63
 
51
64
  class SaleOrderLine(models.Model):
52
65
  _inherit = "sale.order.line"
@@ -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:d5d1f4cfe953ae00daba19c3cd0f57fc737a69c986de051a73c55a0652555f51
370
+ !! source digest: sha256:ec0a30e1dd8b2346940c480c8a6e3541ebdb7c106b60a1228b1074966aebdfaf
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/16.0/sale_blanket_order"><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-16-0/sale-workflow-16-0-sale_blanket_order"><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=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p>A blanket order is a pre-agreement to sell a certain number of quantities of
@@ -28,10 +28,11 @@
28
28
  <field name="model">sale.order</field>
29
29
  <field name="inherit_id" ref="sale.view_order_form" />
30
30
  <field name="arch" type="xml">
31
+ <xpath expr="//field[@name='order_line']" position="before">
32
+ <field name="disable_adding_lines" invisible="1" />
33
+ </xpath>
31
34
  <xpath expr="//field[@name='order_line']//tree" position="attributes">
32
- <t groups="sale_blanket_order.blanket_orders_disable_adding_lines">
33
- <attribute name="create">blanket_order_id==False</attribute>
34
- </t>
35
+ <attribute name="create">not disable_adding_lines</attribute>
35
36
  </xpath>
36
37
  </field>
37
38
  </record>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-sale_blanket_order
3
- Version: 16.0.1.2.0.1
3
+ Version: 16.0.1.2.1
4
4
  Summary: Blanket Orders
5
5
  Home-page: https://github.com/OCA/sale-workflow
6
6
  Author: Acsone SA/NV, Odoo Community Association (OCA)
@@ -23,7 +23,7 @@ Sale Blanket Orders
23
23
  !! This file is generated by oca-gen-addon-readme !!
24
24
  !! changes will be overwritten. !!
25
25
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
- !! source digest: sha256:d5d1f4cfe953ae00daba19c3cd0f57fc737a69c986de051a73c55a0652555f51
26
+ !! source digest: sha256:ec0a30e1dd8b2346940c480c8a6e3541ebdb7c106b60a1228b1074966aebdfaf
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
28
 
29
29
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/sale_blanket_order/README.rst,sha256=rR4D-rgGy0PUfDq4BqlqiS3mVpTNtuMSrqDk0ErkRzM,6131
1
+ odoo/addons/sale_blanket_order/README.rst,sha256=K8aOkB_uVSvxieJLq_aGIqqhXN0pMezuGNC2eIXROLs,6131
2
2
  odoo/addons/sale_blanket_order/__init__.py,sha256=rKfzYX9RhkkCxgh2f0PJLYN45Kw8T8-fwxw1pbjLuug,108
3
- odoo/addons/sale_blanket_order/__manifest__.py,sha256=e1EwpK_1xogd0ZkndnSuIyrytfmaYJnRzR4TgNMFiI8,884
3
+ odoo/addons/sale_blanket_order/__manifest__.py,sha256=L2Qv7FFVB4vliLt-3RRhbtsyxH0zSkmzUsb5_TfPdsk,884
4
4
  odoo/addons/sale_blanket_order/data/ir_cron.xml,sha256=B6mIBP7TGt_V0-2tb-GtXQrOXr_FY4D7B0qvvCf3qXc,837
5
5
  odoo/addons/sale_blanket_order/data/sequence.xml,sha256=xsEzImnYlOTADfACH_eBMFFjdy6nM_WqJTWJ3MN1_eM,416
6
6
  odoo/addons/sale_blanket_order/i18n/de.po,sha256=LIbQiWNdgBSGR-pUQZ_nsN5m3Pvf70V6QE1sCV1_VYw,44832
@@ -9,11 +9,11 @@ odoo/addons/sale_blanket_order/i18n/fr.po,sha256=gK36yv-T-EVCLfILdx72CaPezFQn8Og
9
9
  odoo/addons/sale_blanket_order/i18n/fr_FR.po,sha256=rNoQTWpwr4kbliXyQ7yHIz6n7SYUgfs4b-MpKLBgGLI,44639
10
10
  odoo/addons/sale_blanket_order/i18n/it.po,sha256=1LlWC1e6QxE0jF5_v30VVKU3a76EFQNUnWv_0BcbrvU,43733
11
11
  odoo/addons/sale_blanket_order/i18n/pt.po,sha256=Qf5dyxVau6fy4VJD9PIzjF6a8wWS_eZ8IzdFkSdyDaA,39750
12
- odoo/addons/sale_blanket_order/i18n/sale_blanket_order.pot,sha256=vPEXfzHayUfqrbP3Hpp39q7cy5XWJn851JLnPvjHjbM,38794
12
+ odoo/addons/sale_blanket_order/i18n/sale_blanket_order.pot,sha256=XIiV2ErZuF7GB8l5vB1Z5dfngTwYT9aDd7Y-7xY5PnE,38965
13
13
  odoo/addons/sale_blanket_order/models/__init__.py,sha256=7adrBSDps9-KQKNJjoCBKeoWgeF21I62H9yqyQVcZGM,90
14
14
  odoo/addons/sale_blanket_order/models/blanket_orders.py,sha256=vRLCMyCA_oej3Jr1tAPtVL8reDSoQR9JXNOAfFNBHZA,26288
15
15
  odoo/addons/sale_blanket_order/models/sale_config_settings.py,sha256=R71rDeTHdG70voBaBvOAIOS3raoK1hBE6c-Zh3AnQCM,411
16
- odoo/addons/sale_blanket_order/models/sale_orders.py,sha256=V_CrSt8xlSvkxwUP3GGF33DwsgRGBqP7WonM1_OAfA0,7045
16
+ odoo/addons/sale_blanket_order/models/sale_orders.py,sha256=VZhh1eWDQYoxVQ4o8sY52PhA5u6e4FWQ2piscIk_XNk,7515
17
17
  odoo/addons/sale_blanket_order/readme/CONTRIBUTORS.rst,sha256=HNpm8unv-C1qkVXG3tTxG6E8Wz-IadLxyep8KWkQ1VQ,419
18
18
  odoo/addons/sale_blanket_order/readme/CREDITS.rst,sha256=XtPazYj6oqxvg62KjKqErJ8pssTcghFavMtYTDMOozc,87
19
19
  odoo/addons/sale_blanket_order/readme/DESCRIPTION.rst,sha256=zYGPf0Hm3A_rhe0h_CRe4Vex9pwEaMpuOvPrZrY5Mhk,311
@@ -29,18 +29,18 @@ odoo/addons/sale_blanket_order/static/description/BO_menu.png,sha256=TWKnQPgzBgN
29
29
  odoo/addons/sale_blanket_order/static/description/PO_BOLine.png,sha256=O8dfvlVOqDcmrKrHtWw5J1gm76fOQ53YCtu9_ujb4bs,37234
30
30
  odoo/addons/sale_blanket_order/static/description/PO_from_BO.png,sha256=lmRWLs1DYkXmZfRVn_Hg2X8nEfazH2eVZ8unVlcdj-0,27671
31
31
  odoo/addons/sale_blanket_order/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
32
- odoo/addons/sale_blanket_order/static/description/index.html,sha256=iUQC9HFZMKpYg4khumgfFkwEPRydAZfI7nk5cXeBr4M,17135
32
+ odoo/addons/sale_blanket_order/static/description/index.html,sha256=BxCVAA-FHznhFjK0WYClSd76O-zYmsPFGuOjHYEsJpM,17135
33
33
  odoo/addons/sale_blanket_order/tests/__init__.py,sha256=0z5WGDe8esOreObf1dM01uMp-O3GmL20PeIvqK0usXY,130
34
34
  odoo/addons/sale_blanket_order/tests/test_blanket_orders.py,sha256=5pU4d7D1Y6JgGRs9BowsHs-Rioxvbg5mpZTHyo1SU38,16304
35
35
  odoo/addons/sale_blanket_order/tests/test_sale_order.py,sha256=m0zd0ghQEsjs9RoQo3mQkPraiAmNw5RStr_c_zG8jZ4,7561
36
36
  odoo/addons/sale_blanket_order/views/sale_blanket_order_line_views.xml,sha256=rgAsvqQwj_remT9Kr06FPFL8Lo10fMf1sy6VyAC-hR4,7628
37
37
  odoo/addons/sale_blanket_order/views/sale_blanket_order_views.xml,sha256=LYCIVgJJE98WCMfYRtvuT8wu6-uN5HzY3IHK0p--eUk,18307
38
38
  odoo/addons/sale_blanket_order/views/sale_config_settings.xml,sha256=GLW5MxOfAz0-NgnVH67K_UDMOzsAwezDmTVL9uppZ-g,1452
39
- odoo/addons/sale_blanket_order/views/sale_order_views.xml,sha256=1_p8LBGIiG-WNEa4MIwB0OFfYqKbmrTS8xyv92PfgGg,1708
39
+ odoo/addons/sale_blanket_order/views/sale_order_views.xml,sha256=dyB-P-5YeBbOIU2htrgDaTXhV_qvDmLE4atO1zGWzfI,1762
40
40
  odoo/addons/sale_blanket_order/wizard/__init__.py,sha256=4P5jq1IlE7JDNFP0ly3-alAHbqdIYf6fLjQjotKrG08,99
41
41
  odoo/addons/sale_blanket_order/wizard/create_sale_orders.py,sha256=rUyPggjar7usC4EjRGmF9SZpviHUqdH7xvzYwYeNhsg,8109
42
42
  odoo/addons/sale_blanket_order/wizard/create_sale_orders.xml,sha256=GjPlsYRKvN45F7ZSR-j7yJCW0U9OfBi-dIhRV8YqM8M,2091
43
- odoo_addon_sale_blanket_order-16.0.1.2.0.1.dist-info/METADATA,sha256=YcaVPOVzE9lrPUoplsWiknYId1GPg3rjCX-T2C71OIs,6712
44
- odoo_addon_sale_blanket_order-16.0.1.2.0.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
45
- odoo_addon_sale_blanket_order-16.0.1.2.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
46
- odoo_addon_sale_blanket_order-16.0.1.2.0.1.dist-info/RECORD,,
43
+ odoo_addon_sale_blanket_order-16.0.1.2.1.dist-info/METADATA,sha256=JL9H13pyVAyfuTw9aXw5j53ZoResK4v64OvqefVHnFc,6710
44
+ odoo_addon_sale_blanket_order-16.0.1.2.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
45
+ odoo_addon_sale_blanket_order-16.0.1.2.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
46
+ odoo_addon_sale_blanket_order-16.0.1.2.1.dist-info/RECORD,,