odoo-addon-stock-release-channel 16.0.2.11.0.1__py3-none-any.whl → 16.0.2.12.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:217b2be093fd4971b1de4cc00f80a44aa60bd8df976e50e84f566ace85868052
10
+ !! source digest: sha256:1e584645561ee8312397475dae89f423c3d796b83ddaa5ed3fd91d33a97d18e9
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -5,7 +5,7 @@
5
5
  {
6
6
  "name": "Stock Release Channels",
7
7
  "summary": "Manage workload in WMS with release channels",
8
- "version": "16.0.2.11.0",
8
+ "version": "16.0.2.12.0",
9
9
  "development_status": "Beta",
10
10
  "license": "AGPL-3",
11
11
  "author": "Camptocamp, BCIM, ACSONE SA/NV, Odoo Community Association (OCA)",
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 16.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2024-03-21 15:36+0000\n"
9
+ "PO-Revision-Date: 2024-04-02 12:37+0000\n"
10
10
  "Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11
11
  "Language-Team: none\n"
12
12
  "Language: it\n"
@@ -398,7 +398,7 @@ msgstr "Bloccato"
398
398
  #. module: stock_release_channel
399
399
  #: model:ir.model.fields,field_description:stock_release_channel.field_stock_release_channel__is_manual_assignment
400
400
  msgid "Manual assignment"
401
- msgstr ""
401
+ msgstr "Assegnazione manuale"
402
402
 
403
403
  #. module: stock_release_channel
404
404
  #: model:ir.model.fields.selection,name:stock_release_channel.selection__stock_release_channel__batch_mode__max
@@ -377,6 +377,7 @@ msgstr ""
377
377
 
378
378
  #. module: stock_release_channel
379
379
  #: model:ir.model.fields.selection,name:stock_release_channel.selection__stock_release_channel__state__locked
380
+ #: model:ir.model.fields.selection,name:stock_release_channel.selection__stock_release_channel__state_at_wakeup__locked
380
381
  #: model_terms:ir.ui.view,arch_db:stock_release_channel.stock_release_channel_search_view
381
382
  msgid "Locked"
382
383
  msgstr ""
@@ -440,6 +441,7 @@ msgstr ""
440
441
 
441
442
  #. module: stock_release_channel
442
443
  #: model:ir.model.fields.selection,name:stock_release_channel.selection__stock_release_channel__state__open
444
+ #: model:ir.model.fields.selection,name:stock_release_channel.selection__stock_release_channel__state_at_wakeup__open
443
445
  #: model_terms:ir.ui.view,arch_db:stock_release_channel.stock_release_channel_search_view
444
446
  msgid "Open"
445
447
  msgstr ""
@@ -592,6 +594,11 @@ msgstr ""
592
594
  msgid "State"
593
595
  msgstr ""
594
596
 
597
+ #. module: stock_release_channel
598
+ #: model:ir.model.fields,field_description:stock_release_channel.field_stock_release_channel__state_at_wakeup
599
+ msgid "State At Wakeup"
600
+ msgstr ""
601
+
595
602
  #. module: stock_release_channel
596
603
  #: model:ir.model,name:stock_release_channel.model_stock_move
597
604
  msgid "Stock Move"
@@ -652,6 +659,11 @@ msgid ""
652
659
  "* Asleep: Assigned pickings not processed are unassigned from the release channel.\n"
653
660
  msgstr ""
654
661
 
662
+ #. module: stock_release_channel
663
+ #: model:ir.model.fields,help:stock_release_channel.field_stock_release_channel__state_at_wakeup
664
+ msgid "The state of the channel upon waking it up"
665
+ msgstr ""
666
+
655
667
  #. module: stock_release_channel
656
668
  #: model:ir.model.fields,help:stock_release_channel.field_stock_release_channel__count_picking_full_progress
657
669
  msgid "The total number of pickings to achieve 100% of progress."
@@ -184,6 +184,12 @@ class StockReleaseChannel(models.Model):
184
184
  "channel.\n",
185
185
  default="asleep",
186
186
  )
187
+ state_at_wakeup = fields.Selection(
188
+ selection=[("open", "Open"), ("locked", "Locked")],
189
+ default="open",
190
+ required=True,
191
+ help="The state of the channel upon waking it up",
192
+ )
187
193
  is_action_lock_allowed = fields.Boolean(
188
194
  compute="_compute_is_action_lock_allowed",
189
195
  help="Technical field to check if the " "action 'Lock' is allowed.",
@@ -849,7 +855,8 @@ class StockReleaseChannel(models.Model):
849
855
 
850
856
  def action_wake_up(self):
851
857
  self._check_is_action_wake_up_allowed()
852
- self.write({"state": "open"})
858
+ for rec in self:
859
+ rec.state = rec.state_at_wakeup
853
860
  self.assign_pickings()
854
861
 
855
862
  @api.model
@@ -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:217b2be093fd4971b1de4cc00f80a44aa60bd8df976e50e84f566ace85868052
369
+ !! source digest: sha256:1e584645561ee8312397475dae89f423c3d796b83ddaa5ed3fd91d33a97d18e9
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>
@@ -60,8 +60,21 @@ class TestReleaseChannelLifeCycle(ReleaseChannelCase):
60
60
  ),
61
61
  )
62
62
  trap.enqueued_jobs[0].perform()
63
+ self.assertEqual(self.default_channel.state, "open")
63
64
  self.assertEqual(move.picking_id.release_channel_id, self.default_channel)
64
65
 
66
+ def test_release_channel_wake_up_at_open_state(self):
67
+ self.assertEqual(self.default_channel.state_at_wakeup, "open")
68
+ self.default_channel.action_sleep()
69
+ self.default_channel.action_wake_up()
70
+ self.assertEqual(self.default_channel.state, "open")
71
+
72
+ def test_release_channel_wake_up_at_locked_state(self):
73
+ self.default_channel.state_at_wakeup = "locked"
74
+ self.default_channel.action_sleep()
75
+ self.default_channel.action_wake_up()
76
+ self.assertEqual(self.default_channel.state, "locked")
77
+
65
78
  def test_release_channel_sleep_unassign(self):
66
79
  self.move = self._create_single_move(self.product1, 10)
67
80
  self.move.picking_id.assign_release_channel()
@@ -72,6 +72,7 @@
72
72
  groups="stock.group_stock_manager"
73
73
  >
74
74
  <group name="options">
75
+ <field name="state_at_wakeup" />
75
76
  <field name="release_forbidden" />
76
77
  <field
77
78
  name="release_mode"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-stock-release-channel
3
- Version: 16.0.2.11.0.1
3
+ Version: 16.0.2.12.0
4
4
  Summary: Manage workload in WMS with release channels
5
5
  Home-page: https://github.com/OCA/wms
6
6
  Author: Camptocamp, BCIM, 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:217b2be093fd4971b1de4cc00f80a44aa60bd8df976e50e84f566ace85868052
29
+ !! source digest: sha256:1e584645561ee8312397475dae89f423c3d796b83ddaa5ed3fd91d33a97d18e9
30
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
31
 
32
32
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,13 +1,13 @@
1
- odoo/addons/stock_release_channel/README.rst,sha256=KKdX-55SUDGEEuR10iKxTJwQBGCH9NyQvUx-_XqT5j8,6403
1
+ odoo/addons/stock_release_channel/README.rst,sha256=Hp-1dPIrpIQEdjk9zYYHssvygWV7cAo_wuxuJhw4a3A,6403
2
2
  odoo/addons/stock_release_channel/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/stock_release_channel/__manifest__.py,sha256=DaMCtEepjDYEOzde46Zefieg0CHdKM_82-tsxE92gRY,1296
3
+ odoo/addons/stock_release_channel/__manifest__.py,sha256=UM8NffwqkICXwYbSrvMdfJ6P_CKhhoR6MFAMR44MI7o,1296
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=vV4B7aykN0VNn0xxubIHikwVi0RPMhZDWcYn5BH68ck,334
7
7
  odoo/addons/stock_release_channel/i18n/es.po,sha256=_ai5wicbExooLHcWIydnCCudg_uYkFKiqSBJsMFGb2U,31875
8
8
  odoo/addons/stock_release_channel/i18n/fr.po,sha256=WVFX9OuFnOXQh_VeqpgdOtHS56Nf6Pe29CiQEf1GAF0,27217
9
- odoo/addons/stock_release_channel/i18n/it.po,sha256=tipHBa2lAIzLHHHN1dVe4F3u7G7NXc2cSnnWTiD65JA,32087
10
- odoo/addons/stock_release_channel/i18n/stock_release_channel.pot,sha256=VNDITYR_7NXjuGt7S40C66gLGeRh7n3-j4GCEOYDRSw,26744
9
+ odoo/addons/stock_release_channel/i18n/it.po,sha256=fvjJxibLz9EzYRoR9lUMvwmyENossGEW_oalh6f7chg,32107
10
+ odoo/addons/stock_release_channel/i18n/stock_release_channel.pot,sha256=jy6n_a1wuEncwSHzbracoKQ-gUayIceuZ1-NSWNfRws,27352
11
11
  odoo/addons/stock_release_channel/migrations/16.0.1.0.1/pre-migrate.py,sha256=lEss8ujyoQWzjjKzMCOmV79BNEVNPshmY-Xanl7H9CQ,375
12
12
  odoo/addons/stock_release_channel/models/__init__.py,sha256=7bzf3wef0yG6SnmE67xQwGn1EM4phSOfm0o4t8k6-oU,175
13
13
  odoo/addons/stock_release_channel/models/res_company.py,sha256=wxNc06Ct2hnnWPgoI_PEsFR4T0b06mD9n8hV74RloVU,486
@@ -15,7 +15,7 @@ odoo/addons/stock_release_channel/models/res_config_settings.py,sha256=vz4o-cSDo
15
15
  odoo/addons/stock_release_channel/models/res_partner.py,sha256=DFaj1L1QFnUNhRGrOlyturX3BYjXrplk-Om4skzmPCI,448
16
16
  odoo/addons/stock_release_channel/models/stock_move.py,sha256=awRUgnWEnczsQ5u5IGwSoOhMkyWDiK2eGmz-c1bMk_M,1315
17
17
  odoo/addons/stock_release_channel/models/stock_picking.py,sha256=ByS0jEkNzvh1EaFcIAFmBXQuoVHcwwv-aNlTteYwS3M,4679
18
- odoo/addons/stock_release_channel/models/stock_release_channel.py,sha256=OKKpn5wUu89HWCMKO6gHJW-WFp9WsdCAv-wj2NaxTyU,33283
18
+ odoo/addons/stock_release_channel/models/stock_release_channel.py,sha256=TqJ6v9w8H2Wt-YgsS1u9feE6IpvLeQ0J0pd7tZ1kU_A,33526
19
19
  odoo/addons/stock_release_channel/readme/CONFIGURE.rst,sha256=foUMWWFytuVRVkV1V4uA4FvsW2I5izyrcR1CzZ6mQTI,93
20
20
  odoo/addons/stock_release_channel/readme/CONTRIBUTORS.rst,sha256=q95yj-6flBF2N4IB-vbF_p06ClGmIrCySl2bfz9ExPA,414
21
21
  odoo/addons/stock_release_channel/readme/CREDITS.rst,sha256=-JppA6kiiAVqptoc7ytAB6vOqf_0W5uJrZLh70XGE3w,50
@@ -23,7 +23,7 @@ odoo/addons/stock_release_channel/readme/DESCRIPTION.rst,sha256=LJj2UQ3g5NteOFkf
23
23
  odoo/addons/stock_release_channel/readme/USAGE.rst,sha256=uKImsGjEDoJdmYBbgXcDLcBQ8eh4wZzPE8kGfAQvyDA,1588
24
24
  odoo/addons/stock_release_channel/security/stock_release_channel.xml,sha256=U0WfLbMKR4mnNdI4mfN8e7UTxLnyd17eVNhsBy-dMSc,1471
25
25
  odoo/addons/stock_release_channel/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
26
- odoo/addons/stock_release_channel/static/description/index.html,sha256=whSGx0VVOR_71Ajmuv4QyyUR10YanO3Lx6OuI2IKIMg,17341
26
+ odoo/addons/stock_release_channel/static/description/index.html,sha256=e9lyveRdSTKBcSAepk9alZXL5Ur93fPNANb7voTXQ70,17341
27
27
  odoo/addons/stock_release_channel/static/src/js/progressbar_fractional_widget.js,sha256=sZBSmKdZSR1GFeu04iOH72h7FX5CqujgfTRmFYhh5z0,3184
28
28
  odoo/addons/stock_release_channel/static/src/scss/stock_release_channel.scss,sha256=DK0Azc8Gk3FlxeKzjZpLhRZzCQmgXdfLNmfz1CbNN0g,975
29
29
  odoo/addons/stock_release_channel/tests/__init__.py,sha256=kjERz9Kti9xbMmP0MgbNnnSDUdMRzZqH78VLjFn3xfk,226
@@ -33,13 +33,13 @@ odoo/addons/stock_release_channel/tests/test_channel_action.py,sha256=jt6IPBPFDi
33
33
  odoo/addons/stock_release_channel/tests/test_channel_computed_fields.py,sha256=TbVkrpn5Sq6nt-QRQEi2OisjkwUuvwPJ75a0V77FsM0,4725
34
34
  odoo/addons/stock_release_channel/tests/test_channel_release_batch.py,sha256=nvLf6TqcnhaA78gSpmK7Pb9unqxTm0RnY4f1QcqFlkY,2247
35
35
  odoo/addons/stock_release_channel/tests/test_release_channel.py,sha256=pZXJv90-ojX6nhX7sGYOcBY5bPCt4rs64H_oSVFhAeE,2691
36
- odoo/addons/stock_release_channel/tests/test_release_channel_lifecycle.py,sha256=RuPG8resHWW0jyyQIbt4s9P_ByMBBV_2-ZZMkLS1JAQ,3263
36
+ odoo/addons/stock_release_channel/tests/test_release_channel_lifecycle.py,sha256=e102LQrHpdGRYWqrVdojIf4pkr1BkVnLk7GHKKFU1X4,3875
37
37
  odoo/addons/stock_release_channel/tests/test_release_channel_partner.py,sha256=hr7pvlxHrpPk2pIosivIiboJZGcv4HnE8D6AZ-Zhiwc,3407
38
38
  odoo/addons/stock_release_channel/views/res_config_settings.xml,sha256=m_S-PNQ-0e-1LEdBoo-6D-ooEZlyJ_xu9JzAgWahgxo,1140
39
39
  odoo/addons/stock_release_channel/views/res_partner.xml,sha256=_eJwfkaXRVNSVcg62MyTg7EJjA4fxQdCujMkDylio0Q,995
40
40
  odoo/addons/stock_release_channel/views/stock_picking_views.xml,sha256=lpVhHSEczWZbwx609P6dTOij44LWurxMwxvaHEbdrk8,2794
41
- odoo/addons/stock_release_channel/views/stock_release_channel_views.xml,sha256=V2aGzPkTESqL5uUzxUTPGjfJ9cW2sIqvAYxJmdVd2AU,47299
42
- odoo_addon_stock_release_channel-16.0.2.11.0.1.dist-info/METADATA,sha256=3Pjqyu84Tr7gaCMCXdK64inT14xE6i-gHNZ9K4KmP9A,7156
43
- odoo_addon_stock_release_channel-16.0.2.11.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
44
- odoo_addon_stock_release_channel-16.0.2.11.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
45
- odoo_addon_stock_release_channel-16.0.2.11.0.1.dist-info/RECORD,,
41
+ odoo/addons/stock_release_channel/views/stock_release_channel_views.xml,sha256=e32iJEoOtwNFKFdp7V-MbNqD8MP8OgVRghf0ZUkJrbM,47356
42
+ odoo_addon_stock_release_channel-16.0.2.12.0.dist-info/METADATA,sha256=I2v0B07od7aks30HEEEIJ0yBTJZEEBeltWAjNFbY5Yc,7154
43
+ odoo_addon_stock_release_channel-16.0.2.12.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
44
+ odoo_addon_stock_release_channel-16.0.2.12.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
45
+ odoo_addon_stock_release_channel-16.0.2.12.0.dist-info/RECORD,,