diff --git a/stock_whole_kit_constraint/i18n/es.po b/stock_whole_kit_constraint/i18n/es.po index 8e5a1b473..cc1ab5e9a 100644 --- a/stock_whole_kit_constraint/i18n/es.po +++ b/stock_whole_kit_constraint/i18n/es.po @@ -10,11 +10,11 @@ msgstr "" "PO-Revision-Date: 2021-03-19 11:41+0100\n" "Last-Translator: <>\n" "Language-Team: \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" -"Language: es\n" "X-Generator: Poedit 2.3\n" #. module: stock_whole_kit_constraint @@ -27,8 +27,10 @@ msgstr "Permitir entrega parcial de kit" #. module: stock_whole_kit_constraint #: model:ir.model.fields,help:stock_whole_kit_constraint.field_product_product__allow_partial_kit_delivery #: model:ir.model.fields,help:stock_whole_kit_constraint.field_product_template__allow_partial_kit_delivery -msgid "If not set when a kit product components are delivered, it won't be allowed to do it partially." -msgstr "No no está activo, cuando haya una entrega con un kit, no se permitirá la entrega parcial de sus componentes." +msgid "" +"If not set, and this product is delivered with a BoM of type kit, partial " +"deliveries of the components won't be allowed." +msgstr "" #. module: stock_whole_kit_constraint #: model:ir.model,name:stock_whole_kit_constraint.model_product_template @@ -46,7 +48,14 @@ msgid "Transfer" msgstr "Albarán" #. module: stock_whole_kit_constraint -#: code:addons/stock_whole_kit_constraint/models/stock_picking.py:23 +#: code:addons/stock_whole_kit_constraint/models/stock_picking.py:0 #, python-format msgid "You can't make a partial delivery of components of the %s kit" msgstr "No puede realizar una entrega parcial de los componentes del kit %s" + +#~ msgid "" +#~ "If not set when a kit product components are delivered, it won't be " +#~ "allowed to do it partially." +#~ msgstr "" +#~ "No no está activo, cuando haya una entrega con un kit, no se permitirá la " +#~ "entrega parcial de sus componentes." diff --git a/stock_whole_kit_constraint/models/stock_move.py b/stock_whole_kit_constraint/models/stock_move.py index aaaa4249a..acf7830b4 100644 --- a/stock_whole_kit_constraint/models/stock_move.py +++ b/stock_whole_kit_constraint/models/stock_move.py @@ -7,7 +7,8 @@ class StockMove(models.Model): _inherit = "stock.move" allow_partial_kit_delivery = fields.Boolean( - compute="_compute_allow_partial_kit_delivery", compute_sudo=True, + compute="_compute_allow_partial_kit_delivery", + compute_sudo=True, ) @api.depends("product_id.product_tmpl_id.allow_partial_kit_delivery", "state") @@ -27,7 +28,7 @@ class StockMove(models.Model): def _check_backorder_moves(self): """Check if there are partial deliveries on any set of moves. The - computing is done in the same way the main picking method does it """ + computing is done in the same way the main picking method does it""" quantity_todo = {} quantity_done = {} for move in self: