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

@@ -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:f0f9cee803ac6b3a9aaed08fda171398c5febb7e96021d27938e1377ce6a0847
14
+ !! source digest: sha256:aaae6e79ce4ede41911cbeb419334c2c0fbbd04aba08f4962e15c162ba312924
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -130,6 +130,14 @@ factors:
130
130
  .. |image5| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/BO_lines.png
131
131
  .. |image6| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/PO_BOLine.png
132
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.
140
+
133
141
  Bug Tracker
134
142
  ===========
135
143
 
@@ -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": "18.0.1.0.0",
8
+ "version": "18.0.1.0.1",
9
9
  "website": "https://github.com/OCA/sale-blanket",
10
10
  "summary": "Blanket Orders",
11
11
  "depends": ["uom", "sale_management"],
@@ -500,101 +500,27 @@ class BlanketOrderLine(models.Model):
500
500
  else:
501
501
  return super()._compute_display_name()
502
502
 
503
- def _get_real_price_currency(self, product, rule_id, qty, uom, pricelist_id):
504
- """Retrieve the price before applying the pricelist
505
- :param obj product: object of current product record
506
- :param float qty: total quentity of product
507
- :param tuple price_and_rule: tuple(price, suitable_rule) coming
508
- from pricelist computation
509
- :param obj uom: unit of measure of current order line
510
- :param integer pricelist_id: pricelist id of sale order"""
511
- # Copied and adapted from the sale module
512
- PricelistItem = self.env["product.pricelist.item"]
513
- field_name = "lst_price"
514
- currency_id = None
515
- product_currency = None
516
- if rule_id:
517
- pricelist_item = PricelistItem.browse(rule_id)
518
- if pricelist_item._show_discount():
519
- while (
520
- pricelist_item.base == "pricelist"
521
- and pricelist_item.base_pricelist_id
522
- and pricelist_item._show_discount()
523
- ):
524
- price, rule_id = pricelist_item.base_pricelist_id.with_context(
525
- uom=uom.id
526
- )._get_product_price_rule(product, qty, uom)
527
- pricelist_item = PricelistItem.browse(rule_id)
528
-
529
- if pricelist_item.base == "standard_price":
530
- field_name = "standard_price"
531
- if pricelist_item.base == "pricelist" and pricelist_item.base_pricelist_id:
532
- field_name = "price"
533
- product = product.with_context(
534
- pricelist=pricelist_item.base_pricelist_id.id
535
- )
536
- product_currency = pricelist_item.base_pricelist_id.currency_id
537
- currency_id = pricelist_item.pricelist_id.currency_id
538
-
539
- product_currency = (
540
- product_currency
541
- or (product.company_id and product.company_id.currency_id)
542
- or self.env.company.currency_id
543
- )
544
- if not currency_id:
545
- currency_id = product_currency
546
- cur_factor = 1.0
547
- else:
548
- if currency_id.id == product_currency.id:
549
- cur_factor = 1.0
550
- else:
551
- cur_factor = currency_id._get_conversion_rate(
552
- product_currency, currency_id
553
- )
554
-
555
- product_uom = product.uom_id.id
556
- if uom and uom.id != product_uom:
557
- # the unit price is in a different uom
558
- uom_factor = uom._compute_price(1.0, product.uom_id)
559
- else:
560
- uom_factor = 1.0
561
-
562
- return product[field_name] * uom_factor * cur_factor, currency_id.id
563
-
564
503
  def _get_display_price(self):
565
504
  # Copied and adapted from the sale module
505
+ # No need to call _get_pricelist_price_before_discount()
506
+ # since BO lines cannot have discounts
507
+ # TODO: handle combos the way Odoo does in the sale module
566
508
  self.ensure_one()
567
- self.product_id.ensure_one()
509
+ pricelist_price = self._get_pricelist_price()
510
+ return pricelist_price
568
511
 
569
- pricelist_price = self.pricelist_item_id._compute_price(
570
- product=self.product_id,
571
- quantity=self.original_uom_qty or 1.0,
572
- uom=self.product_uom,
573
- date=fields.Date.today(),
574
- currency=self.currency_id,
575
- )
576
-
577
- if not self.pricelist_item_id:
578
- # No pricelist rule found => no discount from pricelist
579
- return pricelist_price
580
-
581
- base_price = self._get_pricelist_price_before_discount()
582
-
583
- # negative discounts (= surcharge) are included in the display price
584
- return max(base_price, pricelist_price)
585
-
586
- def _get_pricelist_price_before_discount(self):
512
+ def _get_pricelist_price(self):
587
513
  # Copied and adapted from the sale module
588
514
  self.ensure_one()
589
515
  self.product_id.ensure_one()
590
-
591
- return self.pricelist_item_id._compute_price_before_discount(
516
+ price = self.pricelist_item_id._compute_price(
592
517
  product=self.product_id,
593
518
  quantity=self.original_uom_qty or 1.0,
594
519
  uom=self.product_uom,
595
520
  date=fields.Date.today(),
596
521
  currency=self.currency_id,
597
522
  )
523
+ return price
598
524
 
599
525
  @api.onchange("product_id", "original_uom_qty")
600
526
  def onchange_product(self):
@@ -0,0 +1,3 @@
1
+ - Currently, combo products are not supported in blanket orders nor blanket
2
+ order lines, they are treated as regular products. Future versions of the
3
+ module should include support for these types of products.
@@ -372,7 +372,7 @@ ul.auto-toc {
372
372
  !! This file is generated by oca-gen-addon-readme !!
373
373
  !! changes will be overwritten. !!
374
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
- !! source digest: sha256:f0f9cee803ac6b3a9aaed08fda171398c5febb7e96021d27938e1377ce6a0847
375
+ !! source digest: sha256:aaae6e79ce4ede41911cbeb419334c2c0fbbd04aba08f4962e15c162ba312924
376
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377
377
  <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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sale-blanket/tree/18.0/sale_blanket_order"><img alt="OCA/sale-blanket" src="https://img.shields.io/badge/github-OCA%2Fsale--blanket-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-blanket-18-0/sale-blanket-18-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-blanket&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
378
  <p>A blanket order is a pre-agreement to sell a certain number of
@@ -385,12 +385,13 @@ exhausting all the quantities of products.</p>
385
385
  <ul class="simple">
386
386
  <li><a class="reference internal" href="#use-cases-context" id="toc-entry-1">Use Cases / Context</a></li>
387
387
  <li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
388
- <li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
389
- <li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
390
- <li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
391
- <li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
392
- <li><a class="reference internal" href="#other-credits" id="toc-entry-7">Other credits</a></li>
393
- <li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
388
+ <li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-3">Known issues / Roadmap</a></li>
389
+ <li><a class="reference internal" href="#bug-tracker" id="toc-entry-4">Bug Tracker</a></li>
390
+ <li><a class="reference internal" href="#credits" id="toc-entry-5">Credits</a><ul>
391
+ <li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
392
+ <li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
393
+ <li><a class="reference internal" href="#other-credits" id="toc-entry-8">Other credits</a></li>
394
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-9">Maintainers</a></li>
394
395
  </ul>
395
396
  </li>
396
397
  </ul>
@@ -459,8 +460,17 @@ factors:</p>
459
460
  </ul>
460
461
  <p><img alt="image6" src="https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/PO_BOLine.png" /></p>
461
462
  </div>
463
+ <div class="section" id="known-issues-roadmap">
464
+ <h2><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h2>
465
+ <ul class="simple">
466
+ <li>Currently, combo products are not supported in blanket orders nor
467
+ blanket order lines, they are treated as regular products. Future
468
+ versions of the module should include support for these types of
469
+ products.</li>
470
+ </ul>
471
+ </div>
462
472
  <div class="section" id="bug-tracker">
463
- <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
473
+ <h2><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h2>
464
474
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-blanket/issues">GitHub Issues</a>.
465
475
  In case of trouble, please check there if your issue has already been reported.
466
476
  If you spotted it first, help us to smash it by providing a detailed and welcomed
@@ -468,15 +478,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
468
478
  <p>Do not contact contributors directly about support or help with technical issues.</p>
469
479
  </div>
470
480
  <div class="section" id="credits">
471
- <h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
481
+ <h2><a class="toc-backref" href="#toc-entry-5">Credits</a></h2>
472
482
  <div class="section" id="authors">
473
- <h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
483
+ <h3><a class="toc-backref" href="#toc-entry-6">Authors</a></h3>
474
484
  <ul class="simple">
475
485
  <li>Acsone SA/NV</li>
476
486
  </ul>
477
487
  </div>
478
488
  <div class="section" id="contributors">
479
- <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
489
+ <h3><a class="toc-backref" href="#toc-entry-7">Contributors</a></h3>
480
490
  <ul>
481
491
  <li><p class="first">André Pereira &lt;<a class="reference external" href="mailto:github&#64;andreparames.com">github&#64;andreparames.com</a>&gt; (<a class="reference external" href="https://www.acsone.eu/">https://www.acsone.eu/</a>)</p>
482
492
  </li>
@@ -504,12 +514,12 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
504
514
  </ul>
505
515
  </div>
506
516
  <div class="section" id="other-credits">
507
- <h3><a class="toc-backref" href="#toc-entry-7">Other credits</a></h3>
517
+ <h3><a class="toc-backref" href="#toc-entry-8">Other credits</a></h3>
508
518
  <p>The migration of this module from 15.0 to 16.0 was financially supported
509
519
  by Camptocamp</p>
510
520
  </div>
511
521
  <div class="section" id="maintainers">
512
- <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
522
+ <h3><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h3>
513
523
  <p>This module is maintained by the OCA.</p>
514
524
  <a class="reference external image-reference" href="https://odoo-community.org">
515
525
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-sale_blanket_order
3
- Version: 18.0.1.0.0.13
3
+ Version: 18.0.1.0.1
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo==18.0.*
6
6
  Summary: Blanket Orders
@@ -27,7 +27,7 @@ Sale Blanket Orders
27
27
  !! This file is generated by oca-gen-addon-readme !!
28
28
  !! changes will be overwritten. !!
29
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
- !! source digest: sha256:f0f9cee803ac6b3a9aaed08fda171398c5febb7e96021d27938e1377ce6a0847
30
+ !! source digest: sha256:aaae6e79ce4ede41911cbeb419334c2c0fbbd04aba08f4962e15c162ba312924
31
31
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
32
 
33
33
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -146,6 +146,14 @@ factors:
146
146
  .. |image5| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/BO_lines.png
147
147
  .. |image6| image:: https://raw.githubusercontent.com/OCA/sale-blanket/18.0/sale_blanket_order/static/description/PO_BOLine.png
148
148
 
149
+ Known issues / Roadmap
150
+ ======================
151
+
152
+ - Currently, combo products are not supported in blanket orders nor
153
+ blanket order lines, they are treated as regular products. Future
154
+ versions of the module should include support for these types of
155
+ products.
156
+
149
157
  Bug Tracker
150
158
  ===========
151
159
 
@@ -1,6 +1,6 @@
1
- odoo/addons/sale_blanket_order/README.rst,sha256=6zmBOczrsVe7xnTksneSv_BBOOmz1RXwKvFSzKITAOU,6900
1
+ odoo/addons/sale_blanket_order/README.rst,sha256=kuQE9cMWXIpHf8xu7wBgsnnJzdr2iKdYsmFKWw8IQS0,7163
2
2
  odoo/addons/sale_blanket_order/__init__.py,sha256=rKfzYX9RhkkCxgh2f0PJLYN45Kw8T8-fwxw1pbjLuug,108
3
- odoo/addons/sale_blanket_order/__manifest__.py,sha256=-bAEuKoBr2v0VrkbsedCJI1cwtgTR-S_7uJylps5kcE,999
3
+ odoo/addons/sale_blanket_order/__manifest__.py,sha256=ZLB3hdwzON1aeLKv8H--UaJVaHQZXS87IuMAmdZe2BY,999
4
4
  odoo/addons/sale_blanket_order/data/ir_cron.xml,sha256=X7ZZAlOwACAxbhWWI8ml7OhLHOF_gWaI8zJtLe-SMts,749
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=Bxbp9pBtzg6cANls-puIwA9n--CD0PFl_xWwrV9lghU,43507
@@ -11,13 +11,14 @@ odoo/addons/sale_blanket_order/i18n/it.po,sha256=rCqr1a9bwEV7WW99yKLL7aVQc6niV5Y
11
11
  odoo/addons/sale_blanket_order/i18n/pt.po,sha256=KaUVIngbe6A60uEcctZZV-ONz0UMbZf8eX8xX1xEtLw,38132
12
12
  odoo/addons/sale_blanket_order/i18n/sale_blanket_order.pot,sha256=2wgvZqwWpLCa-4le4StdN8wA5QccI7bHy7fm1hCFArg,37641
13
13
  odoo/addons/sale_blanket_order/models/__init__.py,sha256=7adrBSDps9-KQKNJjoCBKeoWgeF21I62H9yqyQVcZGM,90
14
- odoo/addons/sale_blanket_order/models/blanket_orders.py,sha256=c_H-pp0SQdervNLGjm-ahSwkKsrCIcOAcSeUjVrbQIw,26325
14
+ odoo/addons/sale_blanket_order/models/blanket_orders.py,sha256=DxIFbhJCHZ8PWom3H1Ll-jTrmKzBNUpLFpvySrHQ-go,23282
15
15
  odoo/addons/sale_blanket_order/models/sale_config_settings.py,sha256=zYTEVPXYmCUp8p-OYyIiGdZajGl07HGNBrrIkxB1GwQ,410
16
16
  odoo/addons/sale_blanket_order/models/sale_orders.py,sha256=EAuIqDG4Z7ABxbSBUQ7FzKEzb7BrRhZNB92Elo_4l8E,7572
17
17
  odoo/addons/sale_blanket_order/readme/CONTEXT.md,sha256=wOxt02O7J6yLZOTTC6V-f5k0IIXEmxRzAM88lJQrM4o,633
18
18
  odoo/addons/sale_blanket_order/readme/CONTRIBUTORS.md,sha256=fJugLGdf1dLnUhz5Z07BBOrKRhY6IViSzuhhZdNuLKw,529
19
19
  odoo/addons/sale_blanket_order/readme/CREDITS.md,sha256=YP3UAmtN99a01txssowJnlWMSHoFGSrDmvhW_kir-dQ,87
20
20
  odoo/addons/sale_blanket_order/readme/DESCRIPTION.md,sha256=zLsygDRJRyguTPv-AbBQ-o-qDNMcLF5WhO-W5sCQIzo,311
21
+ odoo/addons/sale_blanket_order/readme/ROADMAP.md,sha256=VgWgOGaGcDcLzx6_M5sW-C3d93rfTHXkQ2NfB26XVLg,213
21
22
  odoo/addons/sale_blanket_order/readme/USAGE.md,sha256=F3duHsDRx_XpUM66kQnLlUouNttk_7KsJhRzmfsaKHY,1795
22
23
  odoo/addons/sale_blanket_order/report/report.xml,sha256=BOdh42iNPyEQw0307Q3WhoQ0CILhLWj44UfJjogPQJg,708
23
24
  odoo/addons/sale_blanket_order/report/templates.xml,sha256=IXb4Ufp29mdNtsogBiBoOrP-HE31nA3RoKwKmr-T77M,9084
@@ -30,7 +31,7 @@ odoo/addons/sale_blanket_order/static/description/BO_menu.png,sha256=TWKnQPgzBgN
30
31
  odoo/addons/sale_blanket_order/static/description/PO_BOLine.png,sha256=O8dfvlVOqDcmrKrHtWw5J1gm76fOQ53YCtu9_ujb4bs,37234
31
32
  odoo/addons/sale_blanket_order/static/description/PO_from_BO.png,sha256=lmRWLs1DYkXmZfRVn_Hg2X8nEfazH2eVZ8unVlcdj-0,27671
32
33
  odoo/addons/sale_blanket_order/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
33
- odoo/addons/sale_blanket_order/static/description/index.html,sha256=uyVplISL2QP7GxvHA57IkZp1fe2Gs9_JoYLEhASIprc,18226
34
+ odoo/addons/sale_blanket_order/static/description/index.html,sha256=dfjqkBSdVDeya0SzQshryrPN1J1SKjOO6wfdnd3xVS0,18714
34
35
  odoo/addons/sale_blanket_order/static/src/js/disable_add_order_line.esm.js,sha256=7qz-sPBpoESHDvSsD9USVX_2relewhEDXLsY_CpiCOg,893
35
36
  odoo/addons/sale_blanket_order/tests/__init__.py,sha256=0z5WGDe8esOreObf1dM01uMp-O3GmL20PeIvqK0usXY,130
36
37
  odoo/addons/sale_blanket_order/tests/test_blanket_orders.py,sha256=aPYPtMgeuViTlIk6-rxMpGvUDDr2Ot-Dxzdvrc9wmaQ,18465
@@ -42,7 +43,7 @@ odoo/addons/sale_blanket_order/views/sale_order_views.xml,sha256=RUObyUYPm3yCtp1
42
43
  odoo/addons/sale_blanket_order/wizard/__init__.py,sha256=4P5jq1IlE7JDNFP0ly3-alAHbqdIYf6fLjQjotKrG08,99
43
44
  odoo/addons/sale_blanket_order/wizard/create_sale_orders.py,sha256=pgB2SjEF09Wdq4f2Gbhalk2JycCns073Rmg8PzPu74w,8644
44
45
  odoo/addons/sale_blanket_order/wizard/create_sale_orders.xml,sha256=AkNfOsEqqrb5ruxbsdX9NSJfAbUDeY6fD4kJxvz-59Y,2637
45
- odoo_addon_sale_blanket_order-18.0.1.0.0.13.dist-info/METADATA,sha256=_coUKjSq6zCQg0K2S-h38q3bTY2Bvo8Rt69uVLJQsgM,7441
46
- odoo_addon_sale_blanket_order-18.0.1.0.0.13.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
47
- odoo_addon_sale_blanket_order-18.0.1.0.0.13.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
48
- odoo_addon_sale_blanket_order-18.0.1.0.0.13.dist-info/RECORD,,
46
+ odoo_addon_sale_blanket_order-18.0.1.0.1.dist-info/METADATA,sha256=0JPRHVIOaWcBwzprX0ncbDUrvWaoTRcjTKyev6R-sNg,7701
47
+ odoo_addon_sale_blanket_order-18.0.1.0.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
48
+ odoo_addon_sale_blanket_order-18.0.1.0.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
49
+ odoo_addon_sale_blanket_order-18.0.1.0.1.dist-info/RECORD,,