odoo-addon-stock-release-channel 16.0.2.6.4__py3-none-any.whl → 16.0.2.7.0__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.
@@ -7,7 +7,7 @@ Stock Release Channels
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:89f01e69b4583aa13420a7ab9727f82479803d017ffc71e5262834294e43e3ec
10
+ !! source digest: sha256:b29030bbe3d15a55ba6374afe50a9c09f1f6e6399ef9349dc5798dc58723641a
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "name": "Stock Release Channels",
6
6
  "summary": "Manage workload in WMS with release channels",
7
- "version": "16.0.2.6.4",
7
+ "version": "16.0.2.7.0",
8
8
  "development_status": "Beta",
9
9
  "license": "AGPL-3",
10
10
  "author": "Camptocamp, ACSONE SA/NV,Odoo Community Association (OCA)",
@@ -485,13 +485,14 @@ class StockReleaseChannel(models.Model):
485
485
  for channel in picking._find_release_channel_possible_candidate():
486
486
  current = picking
487
487
  domain = channel._prepare_domain()
488
- if not domain and not channel.code:
488
+ code = channel.sudo().code
489
+ if not domain and not code:
489
490
  current.release_channel_id = channel
490
491
  if domain:
491
492
  current = picking.filtered_domain(domain)
492
493
  if not current:
493
494
  continue
494
- if channel.code:
495
+ if code:
495
496
  current = channel._eval_code(current)
496
497
  if not current:
497
498
  continue
@@ -536,7 +537,8 @@ class StockReleaseChannel(models.Model):
536
537
  return eval_context
537
538
 
538
539
  def _eval_code(self, pickings):
539
- expr = self.code.strip()
540
+ code = self.sudo().code
541
+ expr = code.strip()
540
542
  eval_context = self._eval_context(pickings)
541
543
  try:
542
544
  safe_eval(expr, eval_context, mode="exec", nocopy=True)
@@ -366,7 +366,7 @@ ul.auto-toc {
366
366
  !! This file is generated by oca-gen-addon-readme !!
367
367
  !! changes will be overwritten. !!
368
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:89f01e69b4583aa13420a7ab9727f82479803d017ffc71e5262834294e43e3ec
369
+ !! source digest: sha256:b29030bbe3d15a55ba6374afe50a9c09f1f6e6399ef9349dc5798dc58723641a
370
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
371
  <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/wms/tree/16.0/stock_release_channel"><img alt="OCA/wms" src="https://img.shields.io/badge/github-OCA%2Fwms-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-stock_release_channel"><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/wms&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
372
  <p>Release channels are:</p>
@@ -55,6 +55,6 @@ class TestChannelReleaseBatch(ChannelReleaseCase):
55
55
  )
56
56
 
57
57
  def test_release_auto_max_no_next_batch(self):
58
- self.pickings.need_release = False # cheat for getting the right condition
58
+ action = self.channel.release_next_batch()
59
59
  action = self.channel.release_next_batch()
60
60
  self._assert_action_nothing_in_the_queue(action)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-stock-release-channel
3
- Version: 16.0.2.6.4
3
+ Version: 16.0.2.7.0
4
4
  Summary: Manage workload in WMS with release channels
5
5
  Home-page: https://github.com/OCA/wms
6
6
  Author: Camptocamp, ACSONE SA/NV,Odoo Community Association (OCA)
@@ -26,7 +26,7 @@ Stock Release Channels
26
26
  !! This file is generated by oca-gen-addon-readme !!
27
27
  !! changes will be overwritten. !!
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
- !! source digest: sha256:89f01e69b4583aa13420a7ab9727f82479803d017ffc71e5262834294e43e3ec
29
+ !! source digest: sha256:b29030bbe3d15a55ba6374afe50a9c09f1f6e6399ef9349dc5798dc58723641a
30
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
31
 
32
32
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/stock_release_channel/README.rst,sha256=Fb1MEbpcOuT6IX5EDZTxMBkaa66E0g4rwaIg01E4AwU,5997
1
+ odoo/addons/stock_release_channel/README.rst,sha256=h3NUjNJqcT0Ar4JZ0KlSDvSBkB7lw0e7XGESxPukwJ0,5997
2
2
  odoo/addons/stock_release_channel/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/stock_release_channel/__manifest__.py,sha256=XUR8QZmdDUc4OoIqgwVod2yU-OmIKOosKuoxLgsRH18,1148
3
+ odoo/addons/stock_release_channel/__manifest__.py,sha256=uPDdFqzL1mhhQ6GS7tjPcNY_4nl9J2-elWhNRXnOZbI,1148
4
4
  odoo/addons/stock_release_channel/data/ir_cron_data.xml,sha256=Fs0se4lPKelUpNvJnfEde32718SRlKCt0hEqQWQ-tQg,639
5
5
  odoo/addons/stock_release_channel/data/queue_job_data.xml,sha256=MyCGOSZNti3sgtwtco1_EBCM246w2JG8F478tczgbtA,592
6
6
  odoo/addons/stock_release_channel/demo/stock_release_channel.xml,sha256=NRy2ijgGrgLx0FL7spJC1BiaECEDBlMuarFii52jaPE,293
@@ -13,7 +13,7 @@ odoo/addons/stock_release_channel/models/__init__.py,sha256=ExoKDJJZxEWlC39qM0gl
13
13
  odoo/addons/stock_release_channel/models/res_partner.py,sha256=DFaj1L1QFnUNhRGrOlyturX3BYjXrplk-Om4skzmPCI,448
14
14
  odoo/addons/stock_release_channel/models/stock_move.py,sha256=CE7bMzHCdsHJXDNND0dbC6Solr6cQexhqiPoy10H2Iw,969
15
15
  odoo/addons/stock_release_channel/models/stock_picking.py,sha256=CbJLIE2wQaEmaBzgRWuRLsQTggtCKj25dq0TpzvEuic,3567
16
- odoo/addons/stock_release_channel/models/stock_release_channel.py,sha256=H0t2_af-zVXTTgid1GJQ0d7OLZIv4Vxov3NwPcD6740,30164
16
+ odoo/addons/stock_release_channel/models/stock_release_channel.py,sha256=muEGpy225k2rKQRvRckW8Usb0pl-mut8iMEXH-nZvGo,30214
17
17
  odoo/addons/stock_release_channel/readme/CONFIGURE.rst,sha256=foUMWWFytuVRVkV1V4uA4FvsW2I5izyrcR1CzZ6mQTI,93
18
18
  odoo/addons/stock_release_channel/readme/CONTRIBUTORS.rst,sha256=8ROGX1tlE1yiYn-56P088w9g3tdPomWs-fL8AxRwV30,360
19
19
  odoo/addons/stock_release_channel/readme/CREDITS.rst,sha256=-JppA6kiiAVqptoc7ytAB6vOqf_0W5uJrZLh70XGE3w,50
@@ -21,7 +21,7 @@ odoo/addons/stock_release_channel/readme/DESCRIPTION.rst,sha256=LJj2UQ3g5NteOFkf
21
21
  odoo/addons/stock_release_channel/readme/USAGE.rst,sha256=uKImsGjEDoJdmYBbgXcDLcBQ8eh4wZzPE8kGfAQvyDA,1588
22
22
  odoo/addons/stock_release_channel/security/stock_release_channel.xml,sha256=U0WfLbMKR4mnNdI4mfN8e7UTxLnyd17eVNhsBy-dMSc,1471
23
23
  odoo/addons/stock_release_channel/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
24
- odoo/addons/stock_release_channel/static/description/index.html,sha256=v91YHbRtAMOUpUep19nVvBO_NIckSfpJBCqQk-JdTPc,16851
24
+ odoo/addons/stock_release_channel/static/description/index.html,sha256=P_Ob0AFkCbuoXFjT-jc5sGEDZq05PE35BzcQTGY_9d8,16851
25
25
  odoo/addons/stock_release_channel/static/src/js/progressbar_fractional_widget.js,sha256=sZBSmKdZSR1GFeu04iOH72h7FX5CqujgfTRmFYhh5z0,3184
26
26
  odoo/addons/stock_release_channel/static/src/scss/stock_release_channel.scss,sha256=DK0Azc8Gk3FlxeKzjZpLhRZzCQmgXdfLNmfz1CbNN0g,975
27
27
  odoo/addons/stock_release_channel/tests/__init__.py,sha256=kjERz9Kti9xbMmP0MgbNnnSDUdMRzZqH78VLjFn3xfk,226
@@ -29,14 +29,14 @@ odoo/addons/stock_release_channel/tests/common.py,sha256=6BuJPWg8xi22MuSY8oVDYZk
29
29
  odoo/addons/stock_release_channel/tests/test_assign_job.py,sha256=E8k9L8VPSE9Pk_xK8U9qlqYUttrYJ0iGub8MolU06fk,2847
30
30
  odoo/addons/stock_release_channel/tests/test_channel_action.py,sha256=jt6IPBPFDiVcvx6kXcSjEoUzRntFmbD5-BK6VVWGP0E,5583
31
31
  odoo/addons/stock_release_channel/tests/test_channel_computed_fields.py,sha256=nf9_KYdx-Kvcy_BP9q7vJP2DPwrBiRN-hOXsZ1qXqbA,3231
32
- odoo/addons/stock_release_channel/tests/test_channel_release_batch.py,sha256=OHp2VBPyjZV10r5IcnEENYB9qalJofbvlKUYWrXRZ_Q,2280
32
+ odoo/addons/stock_release_channel/tests/test_channel_release_batch.py,sha256=nvLf6TqcnhaA78gSpmK7Pb9unqxTm0RnY4f1QcqFlkY,2247
33
33
  odoo/addons/stock_release_channel/tests/test_release_channel.py,sha256=ZMFqP9KI3mR9Pw72VmAY-CuVBtbtCkGF1NHIP5nNAIg,2099
34
34
  odoo/addons/stock_release_channel/tests/test_release_channel_lifecycle.py,sha256=RuPG8resHWW0jyyQIbt4s9P_ByMBBV_2-ZZMkLS1JAQ,3263
35
35
  odoo/addons/stock_release_channel/tests/test_release_channel_partner.py,sha256=hr7pvlxHrpPk2pIosivIiboJZGcv4HnE8D6AZ-Zhiwc,3407
36
36
  odoo/addons/stock_release_channel/views/res_partner.xml,sha256=_eJwfkaXRVNSVcg62MyTg7EJjA4fxQdCujMkDylio0Q,995
37
37
  odoo/addons/stock_release_channel/views/stock_picking_views.xml,sha256=lpVhHSEczWZbwx609P6dTOij44LWurxMwxvaHEbdrk8,2794
38
38
  odoo/addons/stock_release_channel/views/stock_release_channel_views.xml,sha256=9Lee4BryhgrDZu7Eajf4goZpUnXibC7jGqo0oWryaWs,39406
39
- odoo_addon_stock_release_channel-16.0.2.6.4.dist-info/METADATA,sha256=Xj5hOSaB4e_a9VXxJMD3HZ7yvd5sEpwwAmQAv4itH9U,6740
40
- odoo_addon_stock_release_channel-16.0.2.6.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
41
- odoo_addon_stock_release_channel-16.0.2.6.4.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
42
- odoo_addon_stock_release_channel-16.0.2.6.4.dist-info/RECORD,,
39
+ odoo_addon_stock_release_channel-16.0.2.7.0.dist-info/METADATA,sha256=MDs3eXUsP5kcVyyvkP1il1PowCfj3b2JEGAUsNFs9zU,6740
40
+ odoo_addon_stock_release_channel-16.0.2.7.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
41
+ odoo_addon_stock_release_channel-16.0.2.7.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
42
+ odoo_addon_stock_release_channel-16.0.2.7.0.dist-info/RECORD,,