odoo-addon-shipment-advice 16.0.1.2.0__py3-none-any.whl → 16.0.1.3.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.
@@ -1281,8 +1281,8 @@ msgstr ""
1281
1281
  #: code:addons/shipment_advice/models/stock_move_line.py:0
1282
1282
  #, python-format
1283
1283
  msgid ""
1284
- "You cannot load this into this shipment because its content is planned "
1285
- "already."
1284
+ "You cannot load this into this shipment because its content is planned already.\n"
1285
+ "%(info)s"
1286
1286
  msgstr ""
1287
1287
 
1288
1288
  #. module: shipment_advice
@@ -1290,8 +1290,8 @@ msgstr ""
1290
1290
  #: code:addons/shipment_advice/models/stock_move_line.py:0
1291
1291
  #, python-format
1292
1292
  msgid ""
1293
- "You cannot load this move line alone, you have to move the whole package "
1294
- "content."
1293
+ "You cannot load this move line alone, you have to move the whole package content.\n"
1294
+ "%(info)s"
1295
1295
  msgstr ""
1296
1296
 
1297
1297
  #. module: shipment_advice
@@ -29,7 +29,9 @@ class StockMoveLine(models.Model):
29
29
  """Check that the lines represent whole packages (if applicable)."""
30
30
  for move_line in self:
31
31
  if move_line.package_level_id:
32
- package_lines = move_line.package_level_id.move_line_ids
32
+ package_lines = move_line.package_level_id.move_line_ids.filtered(
33
+ lambda l: l.state in ("partially_available", "assigned")
34
+ )
33
35
  if not set(package_lines.ids).issubset(set(self.ids)):
34
36
  return False
35
37
  return True
@@ -38,10 +40,21 @@ class StockMoveLine(models.Model):
38
40
  """Load the move lines into the given shipment advice."""
39
41
  # Entire package check
40
42
  if not self._check_entire_package():
43
+ move_lines = self.package_level_id.move_line_ids
44
+ pickings = move_lines.picking_id.mapped("name")
45
+ products = move_lines.product_id.mapped("display_name")
46
+ packages = move_lines.package_id.mapped("display_name")
41
47
  raise UserError(
42
48
  _(
43
49
  "You cannot load this move line alone, you have to "
44
- "move the whole package content."
50
+ "move the whole package content.\n%(info)s",
51
+ info="\n".join(
52
+ [
53
+ _("Transfers: %s", ", ".join(pickings)),
54
+ _("Products: %s", ", ".join(products)),
55
+ _("Packages: %s", ", ".join(packages)),
56
+ ]
57
+ ),
45
58
  )
46
59
  )
47
60
  for move_line in self:
@@ -60,7 +73,13 @@ class StockMoveLine(models.Model):
60
73
  raise UserError(
61
74
  _(
62
75
  "You cannot load this into this shipment because its "
63
- "content is planned already."
76
+ "content is planned already.\n%(info)s",
77
+ info="\n".join(
78
+ [
79
+ _("Transfer: %s", move_line.picking_id.name),
80
+ _("Product: %s", move_line.product_id.display_name),
81
+ ]
82
+ ),
64
83
  )
65
84
  )
66
85
  move_line.shipment_advice_id = shipment_advice.id
@@ -1,4 +1,3 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
3
  <head>
@@ -367,7 +366,7 @@ ul.auto-toc {
367
366
  !! This file is generated by oca-gen-addon-readme !!
368
367
  !! changes will be overwritten. !!
369
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:b9ffbb6e4337c56298d78514fade8b7fd405b3398a3c6c306602623bd4407898
369
+ !! source digest: sha256:2ddc1f8d0ab4ef22e857c5a6347e1fb7c1e35f9258b2f5da94b48d7cef1afc5b
371
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
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/stock-logistics-transport/tree/16.0/shipment_advice"><img alt="OCA/stock-logistics-transport" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--transport-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-transport-16-0/stock-logistics-transport-16-0-shipment_advice"><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/stock-logistics-transport&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
372
  <p>Manage your (un)loading process through shipment advices.</p>
@@ -149,3 +149,12 @@ class TestShipmentAdviceLoad(Common):
149
149
  self.shipment_advice_out,
150
150
  package_level,
151
151
  )
152
+
153
+ def test_load_check_package(self):
154
+ """load should ignore done and cancelled lines"""
155
+ move1lines = self.move_product_out1.move_line_ids
156
+ move2lines = self.move_product_out2.move_line_ids
157
+ picking = self.move_product_out1.picking_id
158
+ picking._put_in_pack(move1lines | move2lines)
159
+ self.move_product_out2._action_done()
160
+ move1lines._load_in_shipment(self.shipment_advice_out)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-shipment-advice
3
- Version: 16.0.1.2.0
3
+ Version: 16.0.1.3.0
4
4
  Summary: Manage your (un)loading process through shipment advices.
5
5
  Home-page: https://github.com/OCA/stock-logistics-transport
6
6
  Author: Camptocamp, Odoo Community Association (OCA)
@@ -24,7 +24,7 @@ Shipment Advice
24
24
  !! This file is generated by oca-gen-addon-readme !!
25
25
  !! changes will be overwritten. !!
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:b9ffbb6e4337c56298d78514fade8b7fd405b3398a3c6c306602623bd4407898
27
+ !! source digest: sha256:2ddc1f8d0ab4ef22e857c5a6347e1fb7c1e35f9258b2f5da94b48d7cef1afc5b
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,16 +1,17 @@
1
- odoo/addons/shipment_advice/README.rst,sha256=Lpd1-iKmanTeN6ChNiYEwXTC_V9GckpiWmH6I--CqYQ,3389
1
+ odoo/addons/shipment_advice/README.rst,sha256=SW0ypyD0n_EwsT4uO23I7Pm9fdBoH90-qf85Thns1mE,3389
2
2
  odoo/addons/shipment_advice/__init__.py,sha256=0XNpxETgFdVxFDEw03O8oL3NtTSk3we-HEZW2sPKzIU,43
3
- odoo/addons/shipment_advice/__manifest__.py,sha256=t8Lw_eVSMb7aw2rbZ6gclvnDPgY-icG14IoN46nuIhI,1183
3
+ odoo/addons/shipment_advice/__manifest__.py,sha256=6uEKKkSwea4hgEAsxwUrcWBDmCiqAdaYxP7wP2krzsg,1183
4
4
  odoo/addons/shipment_advice/data/ir_sequence.xml,sha256=7y13W1xPr3o_deB6s5a_UHSJGMpFGCA8JTc7xI5L0-c,1066
5
5
  odoo/addons/shipment_advice/demo/stock_dock.xml,sha256=hhwcQa6JGbN-oQYrkrrgPmH1hbH1p7YEGuKZY9NGMT0,267
6
6
  odoo/addons/shipment_advice/i18n/fr.po,sha256=lJvyeeaowMz3wruMw6qBAxjrDCVbl8qC4hcWWi_zlaU,51304
7
- odoo/addons/shipment_advice/i18n/shipment_advice.pot,sha256=WhCkqHx5PGkFjTBFHYoy5xdq8ljltgv2ZdZ5Xcn05rI,43929
7
+ odoo/addons/shipment_advice/i18n/it.po,sha256=H-EBJDOfZPAEpbMqS1-bmTgz-x9uGXpFtwZ-WEpBvj4,52919
8
+ odoo/addons/shipment_advice/i18n/shipment_advice.pot,sha256=5hsH8ZlNE7GIqeWEgBVhtIFJSz0KpSKgPko94rwlZWY,43949
8
9
  odoo/addons/shipment_advice/models/__init__.py,sha256=kvmDs7RDo8Tnvv0w_2GcxgVcw9nATFSixZ1tFlVNNz8,207
9
10
  odoo/addons/shipment_advice/models/res_company.py,sha256=EmsRYcCMQmKH4lFp1TN2jjyEubDjgubz5nVDCURA4CU,955
10
11
  odoo/addons/shipment_advice/models/res_config_settings.py,sha256=UIQqSIOH8CsbkLNdciKBusy21pDLVMIakK0E5oZ4euE,374
11
12
  odoo/addons/shipment_advice/models/shipment_advice.py,sha256=qoEN2LHyNK3o0SH9eLFVaEzzkT0BleKUD3822LcQTH8,18101
12
13
  odoo/addons/shipment_advice/models/stock_move.py,sha256=76z93nLjxFO3et79ogYALXsZadBBz-wqnpwENyDPtbY,543
13
- odoo/addons/shipment_advice/models/stock_move_line.py,sha256=EQE-rt7uolK3bpSUTQSXkJ3_fwFQwGa6TmE_FZEyH48,3264
14
+ odoo/addons/shipment_advice/models/stock_move_line.py,sha256=VdbjgK5Tu6GzbpEBcIbwa2Dn2Ajdr-8mVA47mzhTyQ0,4254
14
15
  odoo/addons/shipment_advice/models/stock_package_level.py,sha256=0_S4KRBy02kkmBu5Pbcw6g-etJtATveTZh42Srz1R_o,1431
15
16
  odoo/addons/shipment_advice/models/stock_picking.py,sha256=S_clpA7qtvwM88keWtF2CAPOuxSEc-JgDDY0GAMmOmA,8326
16
17
  odoo/addons/shipment_advice/readme/CONTRIBUTORS.rst,sha256=IWUYnivo0DXa4JN3euivIwPkudMEjRYeoY4qPiUvHSw,319
@@ -20,11 +21,11 @@ odoo/addons/shipment_advice/report/report_shipment_advice.xml,sha256=hKMUP7iuRLp
20
21
  odoo/addons/shipment_advice/report/reports.xml,sha256=8LeKVB1M0a4gsLyrwd68RMnxoUw0xCYIn2KN4jlCuLA,1523
21
22
  odoo/addons/shipment_advice/security/ir.model.access.csv,sha256=FeiNV6yP6OOOwJw2MHyo1B3TQQ-umOz75A7QAlCTPZs,657
22
23
  odoo/addons/shipment_advice/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
23
- odoo/addons/shipment_advice/static/description/index.html,sha256=kI6dADcmb5kHGJSCxKrzLFD2dsB9DlZJO8yI7-Sm9s4,13606
24
+ odoo/addons/shipment_advice/static/description/index.html,sha256=t7YHDUz73iJ5pEW8FkeQ9ZdnVsh6Gx_eoAgW-EYx428,13567
24
25
  odoo/addons/shipment_advice/tests/__init__.py,sha256=vME_yg018HaqWuRVwvoMrhS_9DzgRw6uMtIXr3_E8sA,203
25
26
  odoo/addons/shipment_advice/tests/common.py,sha256=ry1jywQT7E5Rim0l732BRyEIfxBm0fvNH5XKQGFkVNg,7132
26
27
  odoo/addons/shipment_advice/tests/test_shipment_advice.py,sha256=DdR5zjKXT-USFJHoyOUrBzsfoDo-popPPYd2NVELkts,7539
27
- odoo/addons/shipment_advice/tests/test_shipment_advice_load.py,sha256=ZaMMIFK5P-KmrUJ92www1wfs0UUoyZ1JXBZk056BVl0,7664
28
+ odoo/addons/shipment_advice/tests/test_shipment_advice_load.py,sha256=DUvZ_yBJRj75XPaLecibA1vp-k7TPaUFYMF4XxXM1wc,8093
28
29
  odoo/addons/shipment_advice/tests/test_shipment_advice_plan.py,sha256=7hUY4RRYi8-6_ovmYFA7DH85KP_kfy1J3O14beKG0hk,1550
29
30
  odoo/addons/shipment_advice/tests/test_shipment_advice_stock_user.py,sha256=7fd0AqX-OrCQH2zGB4L2SO4UUzjcSgzxHOdhmsWgDLw,4334
30
31
  odoo/addons/shipment_advice/tests/test_shipment_advice_unload.py,sha256=2BEJUEVSsh1MW_ke8-LK4vLsi7Sb3Ijs0T794yQdwdE,2727
@@ -43,7 +44,7 @@ odoo/addons/shipment_advice/wizards/unload_shipment.py,sha256=pYtnfooSzLsbaEhkb3
43
44
  odoo/addons/shipment_advice/wizards/unload_shipment.xml,sha256=xYL7hKrlH11PfRPOV9uTGDeafSA7KlmZbm5AZ8icqyQ,1562
44
45
  odoo/addons/shipment_advice/wizards/unplan_shipment.py,sha256=zdzK3vRbZW0eY3iw9eOGxXhs5YDTjZhT9JBSyRoqqoM,4163
45
46
  odoo/addons/shipment_advice/wizards/unplan_shipment.xml,sha256=KX4lF5O-HOwcylK3odlqfQd-TDvQLTYtfsxptinIsIQ,1832
46
- odoo_addon_shipment_advice-16.0.1.2.0.dist-info/METADATA,sha256=kyRPIu_jRZnvWPRvAF9OliFP6IwgTIgAPe1TsQj_T80,4026
47
- odoo_addon_shipment_advice-16.0.1.2.0.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
48
- odoo_addon_shipment_advice-16.0.1.2.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
49
- odoo_addon_shipment_advice-16.0.1.2.0.dist-info/RECORD,,
47
+ odoo_addon_shipment_advice-16.0.1.3.0.dist-info/METADATA,sha256=MH_dVGjwh65toMcee4XB6DnBbP6nwfuBTB0z88r6pJ8,4026
48
+ odoo_addon_shipment_advice-16.0.1.3.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
49
+ odoo_addon_shipment_advice-16.0.1.3.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
50
+ odoo_addon_shipment_advice-16.0.1.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5