odoo-addon-shipment-advice 16.0.1.3.0.2__py3-none-any.whl → 16.0.1.3.1.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.
@@ -7,7 +7,7 @@ Shipment Advice
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:2ddc1f8d0ab4ef22e857c5a6347e1fb7c1e35f9258b2f5da94b48d7cef1afc5b
10
+ !! source digest: sha256:2ce9096e86385f60cb183efb0745bb01324df6f1dee67604801fd7b364a0a68e
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": "Shipment Advice",
6
6
  "summary": "Manage your (un)loading process through shipment advices.",
7
- "version": "16.0.1.3.0",
7
+ "version": "16.0.1.3.1",
8
8
  "author": "Camptocamp, Odoo Community Association (OCA)",
9
9
  "website": "https://github.com/OCA/stock-logistics-transport",
10
10
  "category": "Warehouse Management",
@@ -705,6 +705,15 @@ msgid ""
705
705
  "shipment)."
706
706
  msgstr ""
707
707
 
708
+ #. module: shipment_advice
709
+ #. odoo-python
710
+ #: code:addons/shipment_advice/models/stock_move_line.py:0
711
+ #, python-format
712
+ msgid ""
713
+ "Nothing to load for %(product)s.\n"
714
+ "Picking: %(picking)s"
715
+ msgstr ""
716
+
708
717
  #. module: shipment_advice
709
718
  #: model:ir.model.fields,field_description:shipment_advice.field_shipment_advice__message_needaction_counter
710
719
  msgid "Number of Actions"
@@ -1070,6 +1079,16 @@ msgstr ""
1070
1079
  msgid "This Week"
1071
1080
  msgstr "Cette semaine"
1072
1081
 
1082
+ #. module: shipment_advice
1083
+ #. odoo-python
1084
+ #: code:addons/shipment_advice/models/stock_move_line.py:0
1085
+ #, python-format
1086
+ msgid ""
1087
+ "This move is already loaded in another shipment.\n"
1088
+ "Product: %(product)s.\n"
1089
+ "Picking: %(picking)s"
1090
+ msgstr ""
1091
+
1073
1092
  #. module: shipment_advice
1074
1093
  #: model_terms:ir.ui.view,arch_db:shipment_advice.view_picking_internal_search
1075
1094
  msgid "To plan in Shipment Advice"
@@ -711,6 +711,15 @@ msgstr ""
711
711
  "Nessun trasferimento da depianificare tra quelli selezionati (già eseguiti, "
712
712
  "non collegati a spedizione)."
713
713
 
714
+ #. module: shipment_advice
715
+ #. odoo-python
716
+ #: code:addons/shipment_advice/models/stock_move_line.py:0
717
+ #, python-format
718
+ msgid ""
719
+ "Nothing to load for %(product)s.\n"
720
+ "Picking: %(picking)s"
721
+ msgstr ""
722
+
714
723
  #. module: shipment_advice
715
724
  #: model:ir.model.fields,field_description:shipment_advice.field_shipment_advice__message_needaction_counter
716
725
  msgid "Number of Actions"
@@ -1073,6 +1082,16 @@ msgstr "L'azienda è impostata automaticamente in base alle preferenze utente."
1073
1082
  msgid "This Week"
1074
1083
  msgstr "Questa settimana"
1075
1084
 
1085
+ #. module: shipment_advice
1086
+ #. odoo-python
1087
+ #: code:addons/shipment_advice/models/stock_move_line.py:0
1088
+ #, python-format
1089
+ msgid ""
1090
+ "This move is already loaded in another shipment.\n"
1091
+ "Product: %(product)s.\n"
1092
+ "Picking: %(picking)s"
1093
+ msgstr ""
1094
+
1076
1095
  #. module: shipment_advice
1077
1096
  #: model_terms:ir.ui.view,arch_db:shipment_advice.view_picking_internal_search
1078
1097
  msgid "To plan in Shipment Advice"
@@ -657,6 +657,15 @@ msgid ""
657
657
  "shipment)."
658
658
  msgstr ""
659
659
 
660
+ #. module: shipment_advice
661
+ #. odoo-python
662
+ #: code:addons/shipment_advice/models/stock_move_line.py:0
663
+ #, python-format
664
+ msgid ""
665
+ "Nothing to load for %(product)s.\n"
666
+ "Picking: %(picking)s"
667
+ msgstr ""
668
+
660
669
  #. module: shipment_advice
661
670
  #: model:ir.model.fields,field_description:shipment_advice.field_shipment_advice__message_needaction_counter
662
671
  msgid "Number of Actions"
@@ -1010,6 +1019,16 @@ msgstr ""
1010
1019
  msgid "This Week"
1011
1020
  msgstr ""
1012
1021
 
1022
+ #. module: shipment_advice
1023
+ #. odoo-python
1024
+ #: code:addons/shipment_advice/models/stock_move_line.py:0
1025
+ #, python-format
1026
+ msgid ""
1027
+ "This move is already loaded in another shipment.\n"
1028
+ "Product: %(product)s.\n"
1029
+ "Picking: %(picking)s"
1030
+ msgstr ""
1031
+
1013
1032
  #. module: shipment_advice
1014
1033
  #: model_terms:ir.ui.view,arch_db:shipment_advice.view_picking_internal_search
1015
1034
  msgid "To plan in Shipment Advice"
@@ -3,6 +3,7 @@
3
3
 
4
4
  from odoo import _, fields, models
5
5
  from odoo.exceptions import UserError
6
+ from odoo.tools import float_is_zero
6
7
 
7
8
 
8
9
  class StockMoveLine(models.Model):
@@ -82,8 +83,32 @@ class StockMoveLine(models.Model):
82
83
  ),
83
84
  )
84
85
  )
85
- move_line.shipment_advice_id = shipment_advice.id
86
- move_line.qty_done = move_line.reserved_uom_qty
86
+ if (
87
+ move_line.shipment_advice_id
88
+ and move_line.shipment_advice_id != shipment_advice
89
+ ):
90
+ raise UserError(
91
+ _(
92
+ "This move is already loaded in another shipment."
93
+ "\nProduct: %(product)s.\nPicking: %(picking)s",
94
+ product=move_line.product_id.display_name,
95
+ picking=move_line.picking_id.name,
96
+ )
97
+ )
98
+ move_line.shipment_advice_id = shipment_advice
99
+ uom = move_line.product_uom_id or move_line.product_id.uom_id
100
+ if float_is_zero(
101
+ move_line.reserved_uom_qty, precision_rounding=uom.rounding
102
+ ):
103
+ raise UserError(
104
+ _(
105
+ "Nothing to load for %(product)s.\nPicking: %(picking)s",
106
+ product=move_line.product_id.display_name,
107
+ picking=move_line.picking_id.name,
108
+ )
109
+ )
110
+ if move_line.state in ("partially_available", "assigned"):
111
+ move_line.qty_done = move_line.reserved_uom_qty
87
112
 
88
113
  def _unload_from_shipment(self):
89
114
  """Unload the move lines from their related shipment advice."""
@@ -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:2ddc1f8d0ab4ef22e857c5a6347e1fb7c1e35f9258b2f5da94b48d7cef1afc5b
369
+ !! source digest: sha256:2ce9096e86385f60cb183efb0745bb01324df6f1dee67604801fd7b364a0a68e
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/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>
372
372
  <p>Manage your (un)loading process through shipment advices.</p>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-shipment-advice
3
- Version: 16.0.1.3.0.2
3
+ Version: 16.0.1.3.1.1
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:2ddc1f8d0ab4ef22e857c5a6347e1fb7c1e35f9258b2f5da94b48d7cef1afc5b
27
+ !! source digest: sha256:2ce9096e86385f60cb183efb0745bb01324df6f1dee67604801fd7b364a0a68e
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,17 +1,17 @@
1
- odoo/addons/shipment_advice/README.rst,sha256=SW0ypyD0n_EwsT4uO23I7Pm9fdBoH90-qf85Thns1mE,3389
1
+ odoo/addons/shipment_advice/README.rst,sha256=BrmiZd-cCFddOPb2CurV6RMctjn4cfc3opLt6Ywwme0,3389
2
2
  odoo/addons/shipment_advice/__init__.py,sha256=0XNpxETgFdVxFDEw03O8oL3NtTSk3we-HEZW2sPKzIU,43
3
- odoo/addons/shipment_advice/__manifest__.py,sha256=6uEKKkSwea4hgEAsxwUrcWBDmCiqAdaYxP7wP2krzsg,1183
3
+ odoo/addons/shipment_advice/__manifest__.py,sha256=YGEV67iBKPIFQSlS55KjNfA63lRh8dR_P9-MgznLn58,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
- odoo/addons/shipment_advice/i18n/fr.po,sha256=UujqIJwEAluNnJmZ9YLStZKjVp8tPzDrdW2WrutE2qc,51330
7
- odoo/addons/shipment_advice/i18n/it.po,sha256=o9MvCBDt54YCnqIniMV-FJq94sk5INBNXkycuuTmJSM,53392
8
- odoo/addons/shipment_advice/i18n/shipment_advice.pot,sha256=5hsH8ZlNE7GIqeWEgBVhtIFJSz0KpSKgPko94rwlZWY,43949
6
+ odoo/addons/shipment_advice/i18n/fr.po,sha256=5DWTGpIE9t7WO6UmJDhqB5B0UYGc_JIbkyTtIoDWyts,51769
7
+ odoo/addons/shipment_advice/i18n/it.po,sha256=hUtRFYukWJ17WnIk1xkhR6V7LWysulqULpYjeF_lljg,53831
8
+ odoo/addons/shipment_advice/i18n/shipment_advice.pot,sha256=i-nNFo79lMrJoc0w-sndUTXMvckQOJ21ILGXTWzFsKM,44388
9
9
  odoo/addons/shipment_advice/models/__init__.py,sha256=kvmDs7RDo8Tnvv0w_2GcxgVcw9nATFSixZ1tFlVNNz8,207
10
10
  odoo/addons/shipment_advice/models/res_company.py,sha256=EmsRYcCMQmKH4lFp1TN2jjyEubDjgubz5nVDCURA4CU,955
11
11
  odoo/addons/shipment_advice/models/res_config_settings.py,sha256=UIQqSIOH8CsbkLNdciKBusy21pDLVMIakK0E5oZ4euE,374
12
12
  odoo/addons/shipment_advice/models/shipment_advice.py,sha256=qoEN2LHyNK3o0SH9eLFVaEzzkT0BleKUD3822LcQTH8,18101
13
13
  odoo/addons/shipment_advice/models/stock_move.py,sha256=76z93nLjxFO3et79ogYALXsZadBBz-wqnpwENyDPtbY,543
14
- odoo/addons/shipment_advice/models/stock_move_line.py,sha256=VdbjgK5Tu6GzbpEBcIbwa2Dn2Ajdr-8mVA47mzhTyQ0,4254
14
+ odoo/addons/shipment_advice/models/stock_move_line.py,sha256=gkGBrDFJ1BZC8uY9wwwFSuk_xw__HdRTW2DTGk2WdxI,5378
15
15
  odoo/addons/shipment_advice/models/stock_package_level.py,sha256=0_S4KRBy02kkmBu5Pbcw6g-etJtATveTZh42Srz1R_o,1431
16
16
  odoo/addons/shipment_advice/models/stock_picking.py,sha256=S_clpA7qtvwM88keWtF2CAPOuxSEc-JgDDY0GAMmOmA,8326
17
17
  odoo/addons/shipment_advice/readme/CONTRIBUTORS.rst,sha256=IWUYnivo0DXa4JN3euivIwPkudMEjRYeoY4qPiUvHSw,319
@@ -21,7 +21,7 @@ odoo/addons/shipment_advice/report/report_shipment_advice.xml,sha256=hKMUP7iuRLp
21
21
  odoo/addons/shipment_advice/report/reports.xml,sha256=8LeKVB1M0a4gsLyrwd68RMnxoUw0xCYIn2KN4jlCuLA,1523
22
22
  odoo/addons/shipment_advice/security/ir.model.access.csv,sha256=FeiNV6yP6OOOwJw2MHyo1B3TQQ-umOz75A7QAlCTPZs,657
23
23
  odoo/addons/shipment_advice/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
24
- odoo/addons/shipment_advice/static/description/index.html,sha256=t7YHDUz73iJ5pEW8FkeQ9ZdnVsh6Gx_eoAgW-EYx428,13567
24
+ odoo/addons/shipment_advice/static/description/index.html,sha256=o2LRPs-5TFsVTXbumE4RTvY8FWZVL5Yi3FuUBmgZjlQ,13567
25
25
  odoo/addons/shipment_advice/tests/__init__.py,sha256=vME_yg018HaqWuRVwvoMrhS_9DzgRw6uMtIXr3_E8sA,203
26
26
  odoo/addons/shipment_advice/tests/common.py,sha256=ry1jywQT7E5Rim0l732BRyEIfxBm0fvNH5XKQGFkVNg,7132
27
27
  odoo/addons/shipment_advice/tests/test_shipment_advice.py,sha256=DdR5zjKXT-USFJHoyOUrBzsfoDo-popPPYd2NVELkts,7539
@@ -44,7 +44,7 @@ odoo/addons/shipment_advice/wizards/unload_shipment.py,sha256=pYtnfooSzLsbaEhkb3
44
44
  odoo/addons/shipment_advice/wizards/unload_shipment.xml,sha256=xYL7hKrlH11PfRPOV9uTGDeafSA7KlmZbm5AZ8icqyQ,1562
45
45
  odoo/addons/shipment_advice/wizards/unplan_shipment.py,sha256=zdzK3vRbZW0eY3iw9eOGxXhs5YDTjZhT9JBSyRoqqoM,4163
46
46
  odoo/addons/shipment_advice/wizards/unplan_shipment.xml,sha256=KX4lF5O-HOwcylK3odlqfQd-TDvQLTYtfsxptinIsIQ,1832
47
- odoo_addon_shipment_advice-16.0.1.3.0.2.dist-info/METADATA,sha256=txknl6aMUDwYwtCZq6HOqMV7i1ifcmkD0RndeBx_gmA,4028
48
- odoo_addon_shipment_advice-16.0.1.3.0.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
49
- odoo_addon_shipment_advice-16.0.1.3.0.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
50
- odoo_addon_shipment_advice-16.0.1.3.0.2.dist-info/RECORD,,
47
+ odoo_addon_shipment_advice-16.0.1.3.1.1.dist-info/METADATA,sha256=JyLaSMVolLDSmf0fR5jODJy4AB5xfvGmBiQIYoEele8,4028
48
+ odoo_addon_shipment_advice-16.0.1.3.1.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
49
+ odoo_addon_shipment_advice-16.0.1.3.1.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
50
+ odoo_addon_shipment_advice-16.0.1.3.1.1.dist-info/RECORD,,