forked from OCA/wms
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'refs/pull/775/head' of github.com:OCA/wms into merge-br…
…anch-2477-BSCOS-4099-10871866
- Loading branch information
Showing
13 changed files
with
121 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2023-10-29 08:27+0000\n" | ||
"PO-Revision-Date: 2023-11-12 17:37+0000\n" | ||
"Last-Translator: mymage <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: it\n" | ||
|
@@ -1020,7 +1020,7 @@ msgstr "Imballo non trovato nel trasferimento attuale." | |
#: code:addons/shopfloor/actions/message.py:0 | ||
#, python-format | ||
msgid "Packaging {} dimension updated." | ||
msgstr "" | ||
msgstr "Dimensione imballo {} aggiornata." | ||
|
||
#. module: shopfloor | ||
#: code:addons/shopfloor/actions/message.py:0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 2023 Camptocamp SA (http://www.camptocamp.com) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
import json | ||
import logging | ||
|
||
from odoo import SUPERUSER_ID, api | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
|
||
def migrate(cr, version): | ||
if not version: | ||
return | ||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
checkout_scenario = env["shopfloor.scenario"].search([("key", "=", "checkout")]) | ||
_update_scenario_options(checkout_scenario) | ||
checkout_menus = env["shopfloor.menu"].search( | ||
[("scenario_id", "=", checkout_scenario.id)] | ||
) | ||
_enable_option_in_menus(checkout_menus) | ||
|
||
|
||
def _update_scenario_options(scenario): | ||
options = scenario.options | ||
options["ask_for_leaf_destination_location"] = True | ||
options_edit = json.dumps(options or {}, indent=4, sort_keys=True) | ||
scenario.write({"options_edit": options_edit}) | ||
_logger.info( | ||
"Option ask_for_leaf_destination_location added to the Checkout scenario" | ||
) | ||
|
||
|
||
def _enable_option_in_menus(menus): | ||
for menu in menus: | ||
menu.ask_for_leaf_destination_location = True | ||
_logger.info( | ||
"Option ask_for_leaf_destination_location enabled for menu {}".format( | ||
menu.name | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,47 +6,51 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: Automatically generated\n" | ||
"PO-Revision-Date: 2023-11-12 17:37+0000\n" | ||
"Last-Translator: mymage <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: it\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
|
||
#. module: shopfloor_reception_packaging_dimension | ||
#: model:ir.model.fields,field_description:shopfloor_reception_packaging_dimension.field_shopfloor_menu__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
msgstr "Nome visualizzato" | ||
|
||
#. module: shopfloor_reception_packaging_dimension | ||
#: model:ir.model.fields,field_description:shopfloor_reception_packaging_dimension.field_shopfloor_menu__id | ||
msgid "ID" | ||
msgstr "" | ||
msgstr "ID" | ||
|
||
#. module: shopfloor_reception_packaging_dimension | ||
#: model:ir.model.fields,help:shopfloor_reception_packaging_dimension.field_shopfloor_menu__set_packaging_dimension | ||
msgid "" | ||
"If for the product being processed, its related packaging dimension are not " | ||
"set, ask to fill them up." | ||
msgstr "" | ||
"Se per il prodotto che deve essere lavorato, non è impostata la dimensione " | ||
"dell'imballo, chiede di compilarla." | ||
|
||
#. module: shopfloor_reception_packaging_dimension | ||
#: model:ir.model.fields,field_description:shopfloor_reception_packaging_dimension.field_shopfloor_menu____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
msgstr "Ultima modifica il" | ||
|
||
#. module: shopfloor_reception_packaging_dimension | ||
#: model:ir.model,name:shopfloor_reception_packaging_dimension.model_shopfloor_menu | ||
msgid "Menu displayed in the scanner application" | ||
msgstr "" | ||
msgstr "Menu visualizzato nell'applicazione di scansione" | ||
|
||
#. module: shopfloor_reception_packaging_dimension | ||
#: model:ir.model.fields,field_description:shopfloor_reception_packaging_dimension.field_shopfloor_menu__set_packaging_dimension_is_possible | ||
msgid "Set Packaging Dimension Is Possible" | ||
msgstr "" | ||
msgstr "È possibile impostare la dimensione dell'imballo" | ||
|
||
#. module: shopfloor_reception_packaging_dimension | ||
#: model:ir.model.fields,field_description:shopfloor_reception_packaging_dimension.field_shopfloor_menu__set_packaging_dimension | ||
msgid "Set packaging dimension" | ||
msgstr "" | ||
msgstr "Imposta dimensione imballo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2023-10-29 08:27+0000\n" | ||
"PO-Revision-Date: 2023-11-12 17:37+0000\n" | ||
"Last-Translator: mymage <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: it\n" | ||
|
@@ -122,12 +122,12 @@ msgstr "Instradamento dinamico" | |
#. module: stock_dynamic_routing | ||
#: model:stock.picking.type,name:stock_dynamic_routing.stock_picking_type_handover_to_highbay_demo | ||
msgid "Handover → Highbay" | ||
msgstr "" | ||
msgstr "Trasferimento → Scaffale" | ||
|
||
#. module: stock_dynamic_routing | ||
#: model:stock.picking.type,name:stock_dynamic_routing.stock_picking_type_highbay_to_handover_demo | ||
msgid "Highbay → Handover" | ||
msgstr "" | ||
msgstr "Scaffale → Trasferimento" | ||
|
||
#. module: stock_dynamic_routing | ||
#: model:ir.model.fields,field_description:stock_dynamic_routing.field_stock_location__id | ||
|