From 5a2c2793e060238cf405f8e83584bcb0f1b5fd3c Mon Sep 17 00:00:00 2001 From: Sergio Teruel Albert Date: Fri, 24 Mar 2017 17:34:18 +0100 Subject: [PATCH 01/26] [9.0][ADD] stock_picking_operation_quick_change (#299) New module to allow change target location in picking operations --- .../README.rst | 68 +++++++++ .../__init__.py | 3 + .../__openerp__.py | 23 +++ .../i18n/es.po | 133 +++++++++++++++++ .../static/description/icon.png | Bin 0 -> 1411 bytes .../static/description/icon.svg | 9 ++ .../tests/__init__.py | 5 + ...st_stock_picking_operation_quick_change.py | 135 ++++++++++++++++++ .../views/stock_picking_view.xml | 20 +++ .../wizards/__init__.py | 3 + .../wizards/stock_picking_wizard.py | 85 +++++++++++ .../wizards/stock_picking_wizard_view.xml | 46 ++++++ 12 files changed, 530 insertions(+) create mode 100644 stock_picking_operation_quick_change/README.rst create mode 100644 stock_picking_operation_quick_change/__init__.py create mode 100644 stock_picking_operation_quick_change/__openerp__.py create mode 100644 stock_picking_operation_quick_change/i18n/es.po create mode 100644 stock_picking_operation_quick_change/static/description/icon.png create mode 100644 stock_picking_operation_quick_change/static/description/icon.svg create mode 100644 stock_picking_operation_quick_change/tests/__init__.py create mode 100644 stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py create mode 100644 stock_picking_operation_quick_change/views/stock_picking_view.xml create mode 100644 stock_picking_operation_quick_change/wizards/__init__.py create mode 100644 stock_picking_operation_quick_change/wizards/stock_picking_wizard.py create mode 100644 stock_picking_operation_quick_change/wizards/stock_picking_wizard_view.xml diff --git a/stock_picking_operation_quick_change/README.rst b/stock_picking_operation_quick_change/README.rst new file mode 100644 index 00000000000..88882c897d2 --- /dev/null +++ b/stock_picking_operation_quick_change/README.rst @@ -0,0 +1,68 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +==================================== +Stock Picking Operation Quick Change +==================================== + +This module extends standard WMS to allow change destination location for all +picking operations. + + +Usage +===== + +To use this module, you need to: + +#. Go to products and create one of type "Stockable". +#. Update quantities on hand to have stock of it. +#. Go to inventory dashboard and click on "Delivery Out" card to do a new + transfer. +#. Create a picking and select the product to do the transfer. +#. Reserve the picking. +#. Click on button *Change Location*, select in wizard the old location and + new location. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/154/9.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. +* Open Clipart: `Icon `_. + + +Contributors +------------ + +* Sergio Teruel + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/stock_picking_operation_quick_change/__init__.py b/stock_picking_operation_quick_change/__init__.py new file mode 100644 index 00000000000..9e69410edad --- /dev/null +++ b/stock_picking_operation_quick_change/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import wizards diff --git a/stock_picking_operation_quick_change/__openerp__.py b/stock_picking_operation_quick_change/__openerp__.py new file mode 100644 index 00000000000..68b48d9c5b3 --- /dev/null +++ b/stock_picking_operation_quick_change/__openerp__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# © 2017 Sergio Teruel +# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +{ + "name": "Stock Picking Operation Quick Change", + "summary": "Change location of all picking operations", + "version": "9.0.1.0.0", + "category": "Inventory", + "website": "http://www.tecnativa.com", + "author": "Tecnativa, " + "Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "stock", + ], + "data": [ + "wizards/stock_picking_wizard_view.xml", + "views/stock_picking_view.xml", + ], +} diff --git a/stock_picking_operation_quick_change/i18n/es.po b/stock_picking_operation_quick_change/i18n/es.po new file mode 100644 index 00000000000..1e386c06696 --- /dev/null +++ b/stock_picking_operation_quick_change/i18n/es.po @@ -0,0 +1,133 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_operation_quick_change +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-09 09:08+0100\n" +"PO-Revision-Date: 2017-02-09 09:09+0100\n" +"Last-Translator: Sergio Teruel \n" +"Language-Team: \n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.7.1\n" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id +msgid "Actual destination location" +msgstr "Ubicación actual de destino del albarán" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Apply" +msgstr "Aplicar" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Cancel" +msgstr "Cancelar" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Change All" +msgstr "Cambiar todas" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.view_picking_form +msgid "Change Location" +msgstr "Cambiar ubicación" + +#. module: stock_picking_operation_quick_change +#: model:ir.actions.act_window,name:stock_picking_operation_quick_change.action_stock_picking_operation_change_location +msgid "Change Operation Destination Location" +msgstr "Cambia la ubicación de destino de las operaciones" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Check if you want change all operations without filter by old location" +msgstr "Marca esta opción si quieres cambiar todas operaciones" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_date +msgid "Created on" +msgstr "Creado en" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_display_name +msgid "Display Name" +msgstr "Nombre a mostrar" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_id +msgid "ID" +msgstr "ID (identificación)" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard___last_update +msgid "Last Modified on" +msgstr "Última modificación en" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_uid +msgid "Last Updated by" +msgstr "Última actualización de" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_date +msgid "Last Updated on" +msgstr "Última actualización en" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_new_location_dest_id +msgid "New destination location" +msgstr "Nueva ubicación de destino" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_old_location_dest_id +msgid "Old destination location" +msgstr "Anterior ubicación de destino" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Stock Picking" +msgstr "Albarán" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"You can change destination location in operations.\n" +"
" +msgstr "" +"Puedes cambiar la ubicación de destino de todas las operaciones del " +"albarán.\n" +"
" + +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:60 +#, python-format +msgid "" +"You can not change operations destination location if picking state not is " +"in %s" +msgstr "" +"No puedes cambiar la ubicación de destino de operaciones que su estado no " +"sea %s" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "or" +msgstr "o" + +#. module: stock_picking_operation_quick_change +#: model:ir.model,name:stock_picking_operation_quick_change.model_stock_picking_operation_wizard +#, fuzzy +msgid "stock.picking.operation.wizard" +msgstr "Mensaje para albarán de stock" diff --git a/stock_picking_operation_quick_change/static/description/icon.png b/stock_picking_operation_quick_change/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0f7543540df57eae9982d7744444fbab8e19ed28 GIT binary patch literal 1411 zcmeAS@N?(olHy`uVBq!ia0vp^4M1GR!3HE5zRo@mBw31`JVQ8upoSx*1IXtr@Q5sC zU}(Dw!i;sgQh$Mhk|nMYCBgY=CFO}lsSM@i<$9TU*~Q6;1*v-ZMd`EO*+?-kurheM zIEGZrd3!gyV@j#S@sI1|iKXTRGu>tU6j_vX8s^mN3Ply-IHIdvY$YtmEN^FfWt zk+bW?BBQ1cN{f^xEM2`-nN87+okPdU!K3T~-@0|x_w@dKK4kUo%^u^=fBwH;bN)T^ z`@7b^>*sy{dG?I;?)TQ#-1Eg4&NHlM`rMG;@X$$nlFBqjea6}YKU&_}6bM8_#AFHu zoBiO9vHS5!m;2D7q*Eff&A`;Uzy!E+9tkX=3~?? z3wVX%1aIZ?x65a5kpJU)Xu;o@_%)>*yYDF27y;nJGc#9sFX!NXFU z71kK8D!kQc_#^R{u-4>C&%a|XwmHY_I2JFRzf&)e z|70%EM&*`+_or;=@7%><8~L?3lr2&Ep+clxv>S*1Y-yoyhErt^7(QZ2tUYAsbGPm9 z19#5m`!hE5N8RDA@tLDw;(cTFt-ikxj&ra-eAZHHvPjyZu~wjpBY&yy%d!RHx0h`` znD2R`eQDkUmBOYCx{30^ua4Axc-*44Tj-nMX`Tm;547LRm$7Zxe#@yuF#kij+8gDm zGY=d-pb50GdX?Kdg>w)38OxVuEpmtys5|ga;+xRDuEjgpE#wxy=;ug3e=mml4O`u! zlg$PCg>3&h?bze<_%?`J_|8!%xfXpx59nW(hi@YErn5dYf5f8rowL-ukgZ;b*RKC{ z!}5mv8|NP^Oh{kaD$e}gHR4P4gTRC^X7;0tT@Ns>+ta!AVlK}QrizqDNuL|@d&PeV z-e5jsX02kkmErv5AG&#ybM;fYZPI@@*E7ng&w1K4_szSs)2~I3H?|*mX8dyf0pXU( zlAX(CD_D2`R)QXgKUDGZ|6s0|^CT?^&2R$?X}S3@xsk!$VT-|+{|cV4%dUA*7kGye9@Bdw&+VS(?|Gc|vZcGYbFH^>%V^R6H%eqv=chTrgTe~DWM4ff46hn literal 0 HcmV?d00001 diff --git a/stock_picking_operation_quick_change/static/description/icon.svg b/stock_picking_operation_quick_change/static/description/icon.svg new file mode 100644 index 00000000000..89d7794c69a --- /dev/null +++ b/stock_picking_operation_quick_change/static/description/icon.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/stock_picking_operation_quick_change/tests/__init__.py b/stock_picking_operation_quick_change/tests/__init__.py new file mode 100644 index 00000000000..9e7b3293f98 --- /dev/null +++ b/stock_picking_operation_quick_change/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2017 Sergio Teruel +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_stock_picking_operation_quick_change diff --git a/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py b/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py new file mode 100644 index 00000000000..bf140a08df3 --- /dev/null +++ b/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- +# © 2017 Sergio Teruel +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp.tests.common import TransactionCase +from openerp.exceptions import UserError + + +class TestOperationQuickChange(TransactionCase): + + def setUp(self): + super(TestOperationQuickChange, self).setUp() + self.Location = self.env['stock.location'] + self.PickingType = self.env['stock.picking.type'] + self.Picking = self.env['stock.picking'] + self.Product = self.env['product.template'] + self.Wizard = self.env['stock.picking.operation.wizard'] + self.warehouse = self.env['stock.warehouse'].create({ + 'name': 'warehouse - test', + 'code': 'WH-TEST', + }) + + # self.warehouse.lot_stock_id.id + self.product = self.Product.create({ + 'name': 'Product - Test', + 'type': 'product', + 'list_price': 100.00, + 'standard_price': 100.00, + }) + self.qty_on_hand(self.product.product_variant_ids[:1]) + self.product2 = self.Product.create({ + 'name': 'Product2 - Test', + 'type': 'product', + 'list_price': 100.00, + 'standard_price': 100.00, + }) + self.qty_on_hand(self.product2.product_variant_ids[:1]) + self.customer = self.env['res.partner'].create({ + 'name': 'Customer - test', + 'customer': True, + }) + self.picking_type = self.PickingType.search([ + ('warehouse_id', '=', self.warehouse.id), + ('code', '=', 'outgoing'), + ]) + self.picking = self.Picking.create({ + 'name': 'picking - test 01', + 'location_id': self.warehouse.lot_stock_id.id, + 'location_dest_id': self.warehouse.wh_output_stock_loc_id.id, + 'picking_type_id': self.picking_type.id, + 'move_lines': [(0, 0, { + 'name': self.product.name, + 'product_id': self.product.product_variant_ids[:1].id, + 'product_uom_qty': 20.0, + 'product_uom': self.product.uom_id.id, + }), (0, 0, { + 'name': self.product.name, + 'product_id': self.product2.product_variant_ids[:1].id, + 'product_uom_qty': 60.0, + 'product_uom': self.product.uom_id.id, + })] + }) + + def qty_on_hand(self, product): + stock_change_obj = self.env['stock.change.product.qty'] + vals = { + 'product_id': product.id, + 'new_quantity': 200.0, + 'location_id': self.warehouse.lot_stock_id.id, + } + wiz = stock_change_obj.create(vals) + wiz.change_product_qty() + + def test_picking_operation_change_location_dest_all(self): + self.picking.action_assign() + new_location_dest_id = self.Location.create({ + 'name': 'New Test Customer Location', + 'location_id': self.picking.location_dest_id.location_id.id + }) + wiz = self.Wizard.with_context( + active_model=self.picking._name, + active_ids=self.picking.ids, + ).create({ + 'new_location_dest_id': new_location_dest_id.id, + 'change_all': True, + }) + operations = self.picking.mapped('pack_operation_product_ids') + self.assertEqual(wiz.location_dest_id, self.picking.location_dest_id) + self.assertEqual(wiz.old_location_dest_id, + operations[:1].location_dest_id) + wiz.action_apply() + operations = self.picking.mapped( + 'pack_operation_product_ids.location_dest_id') + self.assertEqual(len(operations), 1) + + def test_picking_operation_change_location_dest(self): + new_location_dest_id = self.Location.create({ + 'name': 'New Test Customer Location', + 'location_id': self.picking.location_dest_id.location_id.id + }) + other_location_dest_id = self.Location.create({ + 'name': 'New Test Customer Location', + 'location_id': self.picking.location_dest_id.location_id.id + }) + self.picking.action_assign() + operations = self.picking.mapped('pack_operation_product_ids') + operations[:1].write({'location_dest_id': other_location_dest_id.id}) + wiz = self.Wizard.with_context( + active_model=self.picking._name, + active_ids=self.picking.ids, + ).create({ + 'old_location_dest_id': self.picking.location_dest_id.id, + 'new_location_dest_id': new_location_dest_id.id, + }) + wiz.action_apply() + operations = self.picking.mapped( + 'pack_operation_product_ids.location_dest_id') + self.assertEqual(len(operations), 2) + + def test_picking_operation_change_location_dest_failed(self): + self.picking.action_assign() + self.picking.action_done() + new_location_dest_id = self.Location.create({ + 'name': 'New Test Customer Location', + 'location_id': self.picking.location_dest_id.location_id.id + }) + wiz = self.Wizard.with_context( + active_model=self.picking._name, + active_ids=self.picking.ids, + ).create({ + 'new_location_dest_id': new_location_dest_id.id, + 'change_all': True, + }) + with self.assertRaises(UserError): + wiz.action_apply() diff --git a/stock_picking_operation_quick_change/views/stock_picking_view.xml b/stock_picking_operation_quick_change/views/stock_picking_view.xml new file mode 100644 index 00000000000..dc3954f0425 --- /dev/null +++ b/stock_picking_operation_quick_change/views/stock_picking_view.xml @@ -0,0 +1,20 @@ + + + + + + stock.picking + + + + + + + + + diff --git a/stock_picking_operation_quick_change/wizards/__init__.py b/stock_picking_operation_quick_change/wizards/__init__.py new file mode 100644 index 00000000000..209890c1b6a --- /dev/null +++ b/stock_picking_operation_quick_change/wizards/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import stock_picking_wizard diff --git a/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py b/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py new file mode 100644 index 00000000000..de26c11f258 --- /dev/null +++ b/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +# © 2017 Sergio Teruel +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import _, api, fields, models +from openerp.exceptions import UserError + + +class StockPickingOperationWizard(models.TransientModel): + _name = 'stock.picking.operation.wizard' + + def _prepare_default_values(self, picking): + return {'location_dest_id': picking.location_dest_id.id} + + @api.model + def default_get(self, fields): + res = super(StockPickingOperationWizard, self).default_get(fields) + active_model = self.env.context['active_model'] + active_ids = self.env.context['active_ids'] or [] + picking = self.env[active_model].browse(active_ids) + res.update(self._prepare_default_values(picking)) + return res + + def _default_old_dest_location_id(self): + stock_picking_obj = self.env['stock.picking'] + pickings = stock_picking_obj.browse(self.env.context['active_ids']) + first_operation = pickings.mapped('pack_operation_product_ids')[:1] + return first_operation.location_dest_id.id + + def _get_allowed_locations(self): + return ['internal'] + + def _get_allowed_picking(self): + return ['assigned'] + + location_dest_id = fields.Many2one( + comodel_name='stock.location', + string='Actual destination location', + required=True, + readonly=True, + ) + old_location_dest_id = fields.Many2one( + comodel_name='stock.location', + string='Old destination location', + default=_default_old_dest_location_id, + domain=lambda self: [('usage', 'in', self._get_allowed_locations())], + ) + new_location_dest_id = fields.Many2one( + comodel_name='stock.location', + string='New destination location', + required=True, + domain=lambda self: [('usage', 'in', self._get_allowed_locations())], + ) + change_all = fields.Boolean( + string='Change All', + help='Check if you want change all operations without filter ' + 'by old location') + + def check_forbbiden_pickings(self, pickings): + forbidden_pickings = pickings.filtered( + lambda x: x.state not in self._get_allowed_picking()) + if forbidden_pickings: + raise UserError(_( + 'You can not change operations destination location if ' + 'picking state not is in %s') % ','.join( + self._get_allowed_picking())) + + @api.multi + def action_apply(self): + stock_picking_obj = self.env['stock.picking'] + pickings = stock_picking_obj.browse(self.env.context['active_ids']) + self.check_forbbiden_pickings(pickings) + operations = pickings.mapped('pack_operation_product_ids') + + vals = {'location_dest_id': self.new_location_dest_id.id} + if self.change_all: + # Write all operations destination location + operations.write(vals) + else: + # Only write operations destination location if the location is + # the same that old location value + matched_op = operations.filtered( + lambda x: x.location_dest_id == self.old_location_dest_id) + matched_op.write(vals) + return {'type': 'ir.actions.act_window_close'} diff --git a/stock_picking_operation_quick_change/wizards/stock_picking_wizard_view.xml b/stock_picking_operation_quick_change/wizards/stock_picking_wizard_view.xml new file mode 100644 index 00000000000..3e13113832e --- /dev/null +++ b/stock_picking_operation_quick_change/wizards/stock_picking_wizard_view.xml @@ -0,0 +1,46 @@ + + + + + + Change Operation Destination Location + stock.picking.operation.wizard + +
+
+ You can change destination location in operations. +
+
+ + + + + + + + +
+
+
+
+
+ + + Change Operation Destination Location + stock.picking.operation.wizard + form + form + new + + +
From a762f844b27ca69b95c8adc52f6643ee9cb7a540 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Tue, 2 May 2017 03:14:16 +0200 Subject: [PATCH 02/26] OCA Transbot updated translations from Transifex --- .../i18n/de.po | 136 ++++++++++++++++++ .../i18n/es.po | 28 ++-- .../i18n/fr.po | 129 +++++++++++++++++ .../i18n/it.po | 130 +++++++++++++++++ .../i18n/sl.po | 129 +++++++++++++++++ 5 files changed, 538 insertions(+), 14 deletions(-) create mode 100644 stock_picking_operation_quick_change/i18n/de.po create mode 100644 stock_picking_operation_quick_change/i18n/fr.po create mode 100644 stock_picking_operation_quick_change/i18n/it.po create mode 100644 stock_picking_operation_quick_change/i18n/sl.po diff --git a/stock_picking_operation_quick_change/i18n/de.po b/stock_picking_operation_quick_change/i18n/de.po new file mode 100644 index 00000000000..8e2d166b3ff --- /dev/null +++ b/stock_picking_operation_quick_change/i18n/de.po @@ -0,0 +1,136 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_operation_quick_change +# +# Translators: +# OCA Transbot , 2017 +# Rudolf Schnapka , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-19 03:55+0000\n" +"PO-Revision-Date: 2017-12-19 03:55+0000\n" +"Last-Translator: Rudolf Schnapka , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id +msgid "Actual destination location" +msgstr "Tatsächlicher Ziellagerort" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Apply" +msgstr "Anwenden" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Cancel" +msgstr "Stornieren" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Change All" +msgstr "Alle ändern" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.view_picking_form +msgid "Change Location" +msgstr "Lagerort ändern" + +#. module: stock_picking_operation_quick_change +#: model:ir.actions.act_window,name:stock_picking_operation_quick_change.action_stock_picking_operation_change_location +msgid "Change Operation Destination Location" +msgstr "Vorgangs-Ziellagerort ändern" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Check if you want change all operations without filter by old location" +msgstr "" +"Prüfen Sie, ob Sie alle Vorgänge ohne eingrenzung nach altem Lagerort ändern" +" möchten" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_uid +msgid "Created by" +msgstr "Angelegt durch" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_date +msgid "Created on" +msgstr "Angelegt am" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_display_name +msgid "Display Name" +msgstr "Angezeigter Name" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_id +msgid "ID" +msgstr "ID" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard___last_update +msgid "Last Modified on" +msgstr "Zuletzt geändert am" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_uid +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert durch" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_date +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_new_location_dest_id +msgid "New destination location" +msgstr "Neuer Ziellagerort" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_old_location_dest_id +msgid "Old destination location" +msgstr "Alter Ziellagerort" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Stock Picking" +msgstr "Lagerentnahme" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"You can change destination location in operations.\n" +"
" +msgstr "" +"Sie können den Ziellagerort in allen Vorgängen ändern.\n" +"
" + +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#, python-format +msgid "" +"You can not change operations destination location if picking state not is " +"in %s" +msgstr "" +"Sie dürfen den Vorgangs-Ziellagerort, wenn der Status der Umlagerung nicht " +"%s ist." + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "or" +msgstr "oder" + +#. module: stock_picking_operation_quick_change +#: model:ir.model,name:stock_picking_operation_quick_change.model_stock_picking_operation_wizard +msgid "stock.picking.operation.wizard" +msgstr "stock.picking.operation.wizard" diff --git a/stock_picking_operation_quick_change/i18n/es.po b/stock_picking_operation_quick_change/i18n/es.po index 1e386c06696..1a2f980afc8 100644 --- a/stock_picking_operation_quick_change/i18n/es.po +++ b/stock_picking_operation_quick_change/i18n/es.po @@ -1,20 +1,22 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * stock_picking_operation_quick_change -# +# * stock_picking_operation_quick_change +# +# Translators: +# OCA Transbot , 2017 msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-02-09 09:08+0100\n" -"PO-Revision-Date: 2017-02-09 09:09+0100\n" -"Last-Translator: Sergio Teruel \n" -"Language-Team: \n" -"Language: es_ES\n" +"POT-Creation-Date: 2017-04-04 01:08+0000\n" +"PO-Revision-Date: 2017-04-04 01:08+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.7.1\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_picking_operation_quick_change #: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id @@ -107,12 +109,11 @@ msgid "" "You can change destination location in operations.\n" "
" msgstr "" -"Puedes cambiar la ubicación de destino de todas las operaciones del " -"albarán.\n" +"Puedes cambiar la ubicación de destino de todas las operaciones del albarán.\n" "
" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:60 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 #, python-format msgid "" "You can not change operations destination location if picking state not is " @@ -128,6 +129,5 @@ msgstr "o" #. module: stock_picking_operation_quick_change #: model:ir.model,name:stock_picking_operation_quick_change.model_stock_picking_operation_wizard -#, fuzzy msgid "stock.picking.operation.wizard" -msgstr "Mensaje para albarán de stock" +msgstr "" diff --git a/stock_picking_operation_quick_change/i18n/fr.po b/stock_picking_operation_quick_change/i18n/fr.po new file mode 100644 index 00000000000..cc0eaf94cd4 --- /dev/null +++ b/stock_picking_operation_quick_change/i18n/fr.po @@ -0,0 +1,129 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_operation_quick_change +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-04 01:08+0000\n" +"PO-Revision-Date: 2017-04-04 01:08+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id +msgid "Actual destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Apply" +msgstr "Appliquer" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Cancel" +msgstr "Annuler" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Change All" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.view_picking_form +msgid "Change Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.actions.act_window,name:stock_picking_operation_quick_change.action_stock_picking_operation_change_location +msgid "Change Operation Destination Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Check if you want change all operations without filter by old location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_uid +msgid "Created by" +msgstr "Created by" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_date +msgid "Created on" +msgstr "Created on" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_id +msgid "ID" +msgstr "ID" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard___last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_uid +msgid "Last Updated by" +msgstr "Last Updated by" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_date +msgid "Last Updated on" +msgstr "Last Updated on" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_new_location_dest_id +msgid "New destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_old_location_dest_id +msgid "Old destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Stock Picking" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"You can change destination location in operations.\n" +"
" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#, python-format +msgid "" +"You can not change operations destination location if picking state not is " +"in %s" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "or" +msgstr "ou" + +#. module: stock_picking_operation_quick_change +#: model:ir.model,name:stock_picking_operation_quick_change.model_stock_picking_operation_wizard +msgid "stock.picking.operation.wizard" +msgstr "" diff --git a/stock_picking_operation_quick_change/i18n/it.po b/stock_picking_operation_quick_change/i18n/it.po new file mode 100644 index 00000000000..da65754155a --- /dev/null +++ b/stock_picking_operation_quick_change/i18n/it.po @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_operation_quick_change +# +# Translators: +# Paolo Valier , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-04 01:08+0000\n" +"PO-Revision-Date: 2017-04-04 01:08+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id +msgid "Actual destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Apply" +msgstr "Applica" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Cancel" +msgstr "Annulla" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Change All" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.view_picking_form +msgid "Change Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.actions.act_window,name:stock_picking_operation_quick_change.action_stock_picking_operation_change_location +msgid "Change Operation Destination Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Check if you want change all operations without filter by old location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_date +msgid "Created on" +msgstr "Creato il" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_display_name +msgid "Display Name" +msgstr "Nome da visualizzare" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_id +msgid "ID" +msgstr "ID" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard___last_update +msgid "Last Modified on" +msgstr "Ultima Modifica il" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_new_location_dest_id +msgid "New destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_old_location_dest_id +msgid "Old destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Stock Picking" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"You can change destination location in operations.\n" +"
" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#, python-format +msgid "" +"You can not change operations destination location if picking state not is " +"in %s" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "or" +msgstr "o" + +#. module: stock_picking_operation_quick_change +#: model:ir.model,name:stock_picking_operation_quick_change.model_stock_picking_operation_wizard +msgid "stock.picking.operation.wizard" +msgstr "" diff --git a/stock_picking_operation_quick_change/i18n/sl.po b/stock_picking_operation_quick_change/i18n/sl.po new file mode 100644 index 00000000000..e719e2a19ab --- /dev/null +++ b/stock_picking_operation_quick_change/i18n/sl.po @@ -0,0 +1,129 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_operation_quick_change +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-04 01:08+0000\n" +"PO-Revision-Date: 2017-04-04 01:08+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id +msgid "Actual destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Apply" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Cancel" +msgstr "Preklic" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Change All" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.view_picking_form +msgid "Change Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.actions.act_window,name:stock_picking_operation_quick_change.action_stock_picking_operation_change_location +msgid "Change Operation Destination Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Check if you want change all operations without filter by old location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_uid +msgid "Created by" +msgstr "Ustvaril" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_date +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_display_name +msgid "Display Name" +msgstr "Prikazni naziv" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_id +msgid "ID" +msgstr "ID" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard___last_update +msgid "Last Modified on" +msgstr "Zadnjič spremenjeno" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_uid +msgid "Last Updated by" +msgstr "Zadnji posodobil" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_date +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_new_location_dest_id +msgid "New destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_old_location_dest_id +msgid "Old destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Stock Picking" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"You can change destination location in operations.\n" +"
" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#, python-format +msgid "" +"You can not change operations destination location if picking state not is " +"in %s" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "or" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model,name:stock_picking_operation_quick_change.model_stock_picking_operation_wizard +msgid "stock.picking.operation.wizard" +msgstr "" From 51c90aeb02369c6688f7d512eaf897582a66156b Mon Sep 17 00:00:00 2001 From: lreficent Date: Thu, 11 Jan 2018 11:55:34 +0100 Subject: [PATCH 03/26] [10.0][MIG] stock_picking_operation_quick_change --- .../README.rst | 7 +- .../{__openerp__.py => __manifest__.py} | 2 +- .../i18n/de.po | 19 ++- .../i18n/es.po | 18 ++- .../i18n/fr.po | 13 +- .../i18n/it.po | 13 +- .../i18n/sl.po | 16 ++- .../stock_picking_operation_quick_change.pot | 128 ++++++++++++++++++ ...st_stock_picking_operation_quick_change.py | 4 +- .../wizards/stock_picking_wizard.py | 23 +++- 10 files changed, 211 insertions(+), 32 deletions(-) rename stock_picking_operation_quick_change/{__openerp__.py => __manifest__.py} (95%) create mode 100644 stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot diff --git a/stock_picking_operation_quick_change/README.rst b/stock_picking_operation_quick_change/README.rst index 88882c897d2..d30c678b3dd 100644 --- a/stock_picking_operation_quick_change/README.rst +++ b/stock_picking_operation_quick_change/README.rst @@ -17,7 +17,7 @@ To use this module, you need to: #. Go to products and create one of type "Stockable". #. Update quantities on hand to have stock of it. -#. Go to inventory dashboard and click on "Delivery Out" card to do a new +#. Go to inventory dashboard and click on "Delivery Orders" card to do a new transfer. #. Create a picking and select the product to do the transfer. #. Reserve the picking. @@ -26,7 +26,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/154/9.0 + :target: https://runbot.odoo-community.org/runbot/154/10.0 Bug Tracker =========== @@ -44,13 +44,14 @@ Images * Odoo Community Association: `Icon `_. -* Open Clipart: `Icon `_. +* Open Clipart: `Icon `__. Contributors ------------ * Sergio Teruel +* Lois Rilo Maintainer ---------- diff --git a/stock_picking_operation_quick_change/__openerp__.py b/stock_picking_operation_quick_change/__manifest__.py similarity index 95% rename from stock_picking_operation_quick_change/__openerp__.py rename to stock_picking_operation_quick_change/__manifest__.py index 68b48d9c5b3..73d7db9add9 100644 --- a/stock_picking_operation_quick_change/__openerp__.py +++ b/stock_picking_operation_quick_change/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Stock Picking Operation Quick Change", "summary": "Change location of all picking operations", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "category": "Inventory", "website": "http://www.tecnativa.com", "author": "Tecnativa, " diff --git a/stock_picking_operation_quick_change/i18n/de.po b/stock_picking_operation_quick_change/i18n/de.po index 8e2d166b3ff..1d256f923c9 100644 --- a/stock_picking_operation_quick_change/i18n/de.po +++ b/stock_picking_operation_quick_change/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_picking_operation_quick_change -# +# # Translators: # OCA Transbot , 2017 # Rudolf Schnapka , 2017 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2017-12-19 03:55+0000\n" "Last-Translator: Rudolf Schnapka , 2017\n" "Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_picking_operation_quick_change @@ -53,8 +53,8 @@ msgstr "Vorgangs-Ziellagerort ändern" #: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all msgid "Check if you want change all operations without filter by old location" msgstr "" -"Prüfen Sie, ob Sie alle Vorgänge ohne eingrenzung nach altem Lagerort ändern" -" möchten" +"Prüfen Sie, ob Sie alle Vorgänge ohne eingrenzung nach altem Lagerort ändern " +"möchten" #. module: stock_picking_operation_quick_change #: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_uid @@ -116,7 +116,7 @@ msgstr "" "
" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 #, python-format msgid "" "You can not change operations destination location if picking state not is " @@ -125,6 +125,15 @@ msgstr "" "Sie dürfen den Vorgangs-Ziellagerort, wenn der Status der Umlagerung nicht " "%s ist." +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#, fuzzy, python-format +msgid "" +"You cannot change destination location if any move has a destination move." +msgstr "" +"Sie dürfen den Vorgangs-Ziellagerort, wenn der Status der Umlagerung nicht " +"%s ist." + #. module: stock_picking_operation_quick_change #: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view msgid "or" diff --git a/stock_picking_operation_quick_change/i18n/es.po b/stock_picking_operation_quick_change/i18n/es.po index 1a2f980afc8..c78916051e1 100644 --- a/stock_picking_operation_quick_change/i18n/es.po +++ b/stock_picking_operation_quick_change/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_picking_operation_quick_change -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-04 01:08+0000\n" "Last-Translator: OCA Transbot , 2017\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_picking_operation_quick_change @@ -109,11 +109,12 @@ msgid "" "You can change destination location in operations.\n" "
" msgstr "" -"Puedes cambiar la ubicación de destino de todas las operaciones del albarán.\n" +"Puedes cambiar la ubicación de destino de todas las operaciones del " +"albarán.\n" "
" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 #, python-format msgid "" "You can not change operations destination location if picking state not is " @@ -122,6 +123,15 @@ msgstr "" "No puedes cambiar la ubicación de destino de operaciones que su estado no " "sea %s" +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#, fuzzy, python-format +msgid "" +"You cannot change destination location if any move has a destination move." +msgstr "" +"No puedes cambiar la ubicación de destino de operaciones que su estado no " +"sea %s" + #. module: stock_picking_operation_quick_change #: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view msgid "or" diff --git a/stock_picking_operation_quick_change/i18n/fr.po b/stock_picking_operation_quick_change/i18n/fr.po index cc0eaf94cd4..5b8f466a0bc 100644 --- a/stock_picking_operation_quick_change/i18n/fr.po +++ b/stock_picking_operation_quick_change/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_picking_operation_quick_change -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-04 01:08+0000\n" "Last-Translator: OCA Transbot , 2017\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: stock_picking_operation_quick_change @@ -111,13 +111,20 @@ msgid "" msgstr "" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 #, python-format msgid "" "You can not change operations destination location if picking state not is " "in %s" msgstr "" +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#, python-format +msgid "" +"You cannot change destination location if any move has a destination move." +msgstr "" + #. module: stock_picking_operation_quick_change #: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view msgid "or" diff --git a/stock_picking_operation_quick_change/i18n/it.po b/stock_picking_operation_quick_change/i18n/it.po index da65754155a..0adadcbcde9 100644 --- a/stock_picking_operation_quick_change/i18n/it.po +++ b/stock_picking_operation_quick_change/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_picking_operation_quick_change -# +# # Translators: # Paolo Valier , 2017 # OCA Transbot , 2017 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2017-04-04 01:08+0000\n" "Last-Translator: OCA Transbot , 2017\n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_picking_operation_quick_change @@ -112,13 +112,20 @@ msgid "" msgstr "" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 #, python-format msgid "" "You can not change operations destination location if picking state not is " "in %s" msgstr "" +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#, python-format +msgid "" +"You cannot change destination location if any move has a destination move." +msgstr "" + #. module: stock_picking_operation_quick_change #: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view msgid "or" diff --git a/stock_picking_operation_quick_change/i18n/sl.po b/stock_picking_operation_quick_change/i18n/sl.po index e719e2a19ab..3a59fa0b12c 100644 --- a/stock_picking_operation_quick_change/i18n/sl.po +++ b/stock_picking_operation_quick_change/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_picking_operation_quick_change -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-04-04 01:08+0000\n" "Last-Translator: OCA Transbot , 2017\n" "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" #. module: stock_picking_operation_quick_change #: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id @@ -111,13 +112,20 @@ msgid "" msgstr "" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:63 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 #, python-format msgid "" "You can not change operations destination location if picking state not is " "in %s" msgstr "" +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#, python-format +msgid "" +"You cannot change destination location if any move has a destination move." +msgstr "" + #. module: stock_picking_operation_quick_change #: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view msgid "or" diff --git a/stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot b/stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot new file mode 100644 index 00000000000..74a1c3d53d3 --- /dev/null +++ b/stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot @@ -0,0 +1,128 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_operation_quick_change +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_location_dest_id +msgid "Actual destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Apply" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Cancel" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Change All" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.view_picking_form +msgid "Change Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.actions.act_window,name:stock_picking_operation_quick_change.action_stock_picking_operation_change_location +msgid "Change Operation Destination Location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all +msgid "Check if you want change all operations without filter by old location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_uid +msgid "Created by" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_create_date +msgid "Created on" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_display_name +msgid "Display Name" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_id +msgid "ID" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard___last_update +msgid "Last Modified on" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_write_date +msgid "Last Updated on" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_new_location_dest_id +msgid "New destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model.fields,field_description:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_old_location_dest_id +msgid "Old destination location" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Stock Picking" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "You can change destination location in operations.\n" +"
" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 +#, python-format +msgid "You can not change operations destination location if picking state not is in %s" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#, python-format +msgid "You cannot change destination location if any move has a destination move." +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "or" +msgstr "" + +#. module: stock_picking_operation_quick_change +#: model:ir.model,name:stock_picking_operation_quick_change.model_stock_picking_operation_wizard +msgid "stock.picking.operation.wizard" +msgstr "" + diff --git a/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py b/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py index bf140a08df3..47d8c55f25e 100644 --- a/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py +++ b/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py @@ -2,8 +2,8 @@ # © 2017 Sergio Teruel # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp.tests.common import TransactionCase -from openerp.exceptions import UserError +from odoo.tests.common import TransactionCase +from odoo.exceptions import UserError class TestOperationQuickChange(TransactionCase): diff --git a/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py b/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py index de26c11f258..cb889080d21 100644 --- a/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py +++ b/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py @@ -2,8 +2,8 @@ # © 2017 Sergio Teruel # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import _, api, fields, models -from openerp.exceptions import UserError +from odoo import _, api, fields, models +from odoo.exceptions import UserError class StockPickingOperationWizard(models.TransientModel): @@ -30,7 +30,10 @@ def _default_old_dest_location_id(self): def _get_allowed_locations(self): return ['internal'] - def _get_allowed_picking(self): + def _get_allowed_location_domain(self): + return [('usage', 'in', self._get_allowed_locations())] + + def _get_allowed_picking_states(self): return ['assigned'] location_dest_id = fields.Many2one( @@ -43,13 +46,13 @@ def _get_allowed_picking(self): comodel_name='stock.location', string='Old destination location', default=_default_old_dest_location_id, - domain=lambda self: [('usage', 'in', self._get_allowed_locations())], + domain=lambda self: self._get_allowed_location_domain(), ) new_location_dest_id = fields.Many2one( comodel_name='stock.location', string='New destination location', required=True, - domain=lambda self: [('usage', 'in', self._get_allowed_locations())], + domain=lambda self: self._get_allowed_location_domain(), ) change_all = fields.Boolean( string='Change All', @@ -58,12 +61,18 @@ def _get_allowed_picking(self): def check_forbbiden_pickings(self, pickings): forbidden_pickings = pickings.filtered( - lambda x: x.state not in self._get_allowed_picking()) + lambda x: x.state not in self._get_allowed_picking_states()) if forbidden_pickings: raise UserError(_( 'You can not change operations destination location if ' 'picking state not is in %s') % ','.join( - self._get_allowed_picking())) + self._get_allowed_picking_states())) + pikings_with_chained_moves = pickings.filtered( + lambda x: x.move_lines.mapped('move_dest_id')) + if pikings_with_chained_moves: + raise UserError(_( + 'You cannot change destination location if any move has a ' + 'destination move.')) @api.multi def action_apply(self): From dd35fcf7ac32de1487f9e08fe01ace755822a169 Mon Sep 17 00:00:00 2001 From: mreficent Date: Wed, 5 Sep 2018 13:50:29 +0200 Subject: [PATCH 04/26] [MIG] stock_picking_operation_quick_change: Migration to 11.0 --- .../README.rst | 73 +-- .../__init__.py | 2 +- .../__manifest__.py | 6 +- .../i18n/de.po | 30 +- .../i18n/es.po | 32 +- .../i18n/fr.po | 23 +- .../i18n/it.po | 23 +- .../i18n/sl.po | 23 +- .../stock_picking_operation_quick_change.pot | 22 +- .../readme/CONTRIBUTORS.rst | 2 + .../readme/DESCRIPTION.rst | 2 + .../readme/USAGE.rst | 9 + .../static/description/index.html | 435 ++++++++++++++++++ .../tests/__init__.py | 2 - ...st_stock_picking_operation_quick_change.py | 23 +- .../views/stock_picking_view.xml | 2 +- .../wizards/__init__.py | 2 +- .../wizards/stock_picking_wizard.py | 27 +- .../wizards/stock_picking_wizard_view.xml | 4 +- 19 files changed, 607 insertions(+), 135 deletions(-) create mode 100644 stock_picking_operation_quick_change/readme/CONTRIBUTORS.rst create mode 100644 stock_picking_operation_quick_change/readme/DESCRIPTION.rst create mode 100644 stock_picking_operation_quick_change/readme/USAGE.rst create mode 100644 stock_picking_operation_quick_change/static/description/index.html diff --git a/stock_picking_operation_quick_change/README.rst b/stock_picking_operation_quick_change/README.rst index d30c678b3dd..e907c679045 100644 --- a/stock_picking_operation_quick_change/README.rst +++ b/stock_picking_operation_quick_change/README.rst @@ -1,14 +1,37 @@ -.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 - ==================================== Stock Picking Operation Quick Change ==================================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-workflow/tree/11.0/stock_picking_operation_quick_change + :alt: OCA/stock-logistics-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-workflow-11-0/stock-logistics-workflow-11-0-stock_picking_operation_quick_change + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/154/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module extends standard WMS to allow change destination location for all picking operations. +**Table of contents** + +.. contents:: + :local: Usage ===== @@ -17,53 +40,49 @@ To use this module, you need to: #. Go to products and create one of type "Stockable". #. Update quantities on hand to have stock of it. -#. Go to inventory dashboard and click on "Delivery Orders" card to do a new +#. Go to inventory dashboard and click on "Delivery Orders" card to create a new transfer. -#. Create a picking and select the product to do the transfer. -#. Reserve the picking. +#. Create a picking and select the product to do the transfer and save it. #. Click on button *Change Location*, select in wizard the old location and new location. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/154/10.0 - Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smashing it by providing a detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- - -* Odoo Community Association: `Icon `_. -* Open Clipart: `Icon `__. +Authors +~~~~~~~ +* Tecnativa Contributors ------------- +~~~~~~~~~~~~ * Sergio Teruel * Lois Rilo -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/stock-logistics-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_picking_operation_quick_change/__init__.py b/stock_picking_operation_quick_change/__init__.py index 9e69410edad..fbadf7a68ce 100644 --- a/stock_picking_operation_quick_change/__init__.py +++ b/stock_picking_operation_quick_change/__init__.py @@ -1,3 +1,3 @@ -# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import wizards diff --git a/stock_picking_operation_quick_change/__manifest__.py b/stock_picking_operation_quick_change/__manifest__.py index 73d7db9add9..94fd15c5be7 100644 --- a/stock_picking_operation_quick_change/__manifest__.py +++ b/stock_picking_operation_quick_change/__manifest__.py @@ -1,17 +1,15 @@ -# -*- coding: utf-8 -*- # © 2017 Sergio Teruel # License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "Stock Picking Operation Quick Change", "summary": "Change location of all picking operations", - "version": "10.0.1.0.0", + "version": "11.0.1.0.0", "category": "Inventory", - "website": "http://www.tecnativa.com", + "website": "https://github.com/OCA/stock-logistics-workflow", "author": "Tecnativa, " "Odoo Community Association (OCA)", "license": "AGPL-3", - "application": False, "installable": True, "depends": [ "stock", diff --git a/stock_picking_operation_quick_change/i18n/de.po b/stock_picking_operation_quick_change/i18n/de.po index 1d256f923c9..1a5d000d7d5 100644 --- a/stock_picking_operation_quick_change/i18n/de.po +++ b/stock_picking_operation_quick_change/i18n/de.po @@ -49,6 +49,16 @@ msgstr "Lagerort ändern" msgid "Change Operation Destination Location" msgstr "Vorgangs-Ziellagerort ändern" +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +#, fuzzy +msgid "" +"Change the destination location.\n" +"
" +msgstr "" +"Sie können den Ziellagerort in allen Vorgängen ändern.\n" +"
" + #. module: stock_picking_operation_quick_change #: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all msgid "Check if you want change all operations without filter by old location" @@ -107,29 +117,21 @@ msgid "Stock Picking" msgstr "Lagerentnahme" #. module: stock_picking_operation_quick_change -#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view -msgid "" -"You can change destination location in operations.\n" -"
" -msgstr "" -"Sie können den Ziellagerort in allen Vorgängen ändern.\n" -"
" - -#. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 -#, python-format +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:65 +#, fuzzy, python-format msgid "" -"You can not change operations destination location if picking state not is " +"You can not change operations destination location if picking state is not " "in %s" msgstr "" "Sie dürfen den Vorgangs-Ziellagerort, wenn der Status der Umlagerung nicht " "%s ist." #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:72 #, fuzzy, python-format msgid "" -"You cannot change destination location if any move has a destination move." +"You cannot change destination location if any of the moves has a destination " +"move." msgstr "" "Sie dürfen den Vorgangs-Ziellagerort, wenn der Status der Umlagerung nicht " "%s ist." diff --git a/stock_picking_operation_quick_change/i18n/es.po b/stock_picking_operation_quick_change/i18n/es.po index c78916051e1..14e8f4db421 100644 --- a/stock_picking_operation_quick_change/i18n/es.po +++ b/stock_picking_operation_quick_change/i18n/es.po @@ -48,6 +48,17 @@ msgstr "Cambiar ubicación" msgid "Change Operation Destination Location" msgstr "Cambia la ubicación de destino de las operaciones" +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +#, fuzzy +msgid "" +"Change the destination location.\n" +"
" +msgstr "" +"Puedes cambiar la ubicación de destino de todas las operaciones del " +"albarán.\n" +"
" + #. module: stock_picking_operation_quick_change #: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all msgid "Check if you want change all operations without filter by old location" @@ -104,30 +115,21 @@ msgid "Stock Picking" msgstr "Albarán" #. module: stock_picking_operation_quick_change -#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view -msgid "" -"You can change destination location in operations.\n" -"
" -msgstr "" -"Puedes cambiar la ubicación de destino de todas las operaciones del " -"albarán.\n" -"
" - -#. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 -#, python-format +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:65 +#, fuzzy, python-format msgid "" -"You can not change operations destination location if picking state not is " +"You can not change operations destination location if picking state is not " "in %s" msgstr "" "No puedes cambiar la ubicación de destino de operaciones que su estado no " "sea %s" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:72 #, fuzzy, python-format msgid "" -"You cannot change destination location if any move has a destination move." +"You cannot change destination location if any of the moves has a destination " +"move." msgstr "" "No puedes cambiar la ubicación de destino de operaciones que su estado no " "sea %s" diff --git a/stock_picking_operation_quick_change/i18n/fr.po b/stock_picking_operation_quick_change/i18n/fr.po index 5b8f466a0bc..927071ca1ae 100644 --- a/stock_picking_operation_quick_change/i18n/fr.po +++ b/stock_picking_operation_quick_change/i18n/fr.po @@ -48,6 +48,13 @@ msgstr "" msgid "Change Operation Destination Location" msgstr "" +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"Change the destination location.\n" +"
" +msgstr "" + #. module: stock_picking_operation_quick_change #: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all msgid "Check if you want change all operations without filter by old location" @@ -104,25 +111,19 @@ msgid "Stock Picking" msgstr "" #. module: stock_picking_operation_quick_change -#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view -msgid "" -"You can change destination location in operations.\n" -"
" -msgstr "" - -#. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:65 #, python-format msgid "" -"You can not change operations destination location if picking state not is " +"You can not change operations destination location if picking state is not " "in %s" msgstr "" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:72 #, python-format msgid "" -"You cannot change destination location if any move has a destination move." +"You cannot change destination location if any of the moves has a destination " +"move." msgstr "" #. module: stock_picking_operation_quick_change diff --git a/stock_picking_operation_quick_change/i18n/it.po b/stock_picking_operation_quick_change/i18n/it.po index 0adadcbcde9..a0fc589f4de 100644 --- a/stock_picking_operation_quick_change/i18n/it.po +++ b/stock_picking_operation_quick_change/i18n/it.po @@ -49,6 +49,13 @@ msgstr "" msgid "Change Operation Destination Location" msgstr "" +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"Change the destination location.\n" +"
" +msgstr "" + #. module: stock_picking_operation_quick_change #: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all msgid "Check if you want change all operations without filter by old location" @@ -105,25 +112,19 @@ msgid "Stock Picking" msgstr "" #. module: stock_picking_operation_quick_change -#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view -msgid "" -"You can change destination location in operations.\n" -"
" -msgstr "" - -#. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:65 #, python-format msgid "" -"You can not change operations destination location if picking state not is " +"You can not change operations destination location if picking state is not " "in %s" msgstr "" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:72 #, python-format msgid "" -"You cannot change destination location if any move has a destination move." +"You cannot change destination location if any of the moves has a destination " +"move." msgstr "" #. module: stock_picking_operation_quick_change diff --git a/stock_picking_operation_quick_change/i18n/sl.po b/stock_picking_operation_quick_change/i18n/sl.po index 3a59fa0b12c..dd7954f6241 100644 --- a/stock_picking_operation_quick_change/i18n/sl.po +++ b/stock_picking_operation_quick_change/i18n/sl.po @@ -49,6 +49,13 @@ msgstr "" msgid "Change Operation Destination Location" msgstr "" +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "" +"Change the destination location.\n" +"
" +msgstr "" + #. module: stock_picking_operation_quick_change #: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all msgid "Check if you want change all operations without filter by old location" @@ -105,25 +112,19 @@ msgid "Stock Picking" msgstr "" #. module: stock_picking_operation_quick_change -#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view -msgid "" -"You can change destination location in operations.\n" -"
" -msgstr "" - -#. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:65 #, python-format msgid "" -"You can not change operations destination location if picking state not is " +"You can not change operations destination location if picking state is not " "in %s" msgstr "" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:72 #, python-format msgid "" -"You cannot change destination location if any move has a destination move." +"You cannot change destination location if any of the moves has a destination " +"move." msgstr "" #. module: stock_picking_operation_quick_change diff --git a/stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot b/stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot index 74a1c3d53d3..a09009e5e58 100644 --- a/stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot +++ b/stock_picking_operation_quick_change/i18n/stock_picking_operation_quick_change.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -43,6 +43,12 @@ msgstr "" msgid "Change Operation Destination Location" msgstr "" +#. module: stock_picking_operation_quick_change +#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view +msgid "Change the destination location.\n" +"
" +msgstr "" + #. module: stock_picking_operation_quick_change #: model:ir.model.fields,help:stock_picking_operation_quick_change.field_stock_picking_operation_wizard_change_all msgid "Check if you want change all operations without filter by old location" @@ -99,21 +105,15 @@ msgid "Stock Picking" msgstr "" #. module: stock_picking_operation_quick_change -#: model:ir.ui.view,arch_db:stock_picking_operation_quick_change.stock_picking_operation_change_location_view -msgid "You can change destination location in operations.\n" -"
" -msgstr "" - -#. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:66 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:65 #, python-format -msgid "You can not change operations destination location if picking state not is in %s" +msgid "You can not change operations destination location if picking state is not in %s" msgstr "" #. module: stock_picking_operation_quick_change -#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:73 +#: code:addons/stock_picking_operation_quick_change/wizards/stock_picking_wizard.py:72 #, python-format -msgid "You cannot change destination location if any move has a destination move." +msgid "You cannot change destination location if any of the moves has a destination move." msgstr "" #. module: stock_picking_operation_quick_change diff --git a/stock_picking_operation_quick_change/readme/CONTRIBUTORS.rst b/stock_picking_operation_quick_change/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..5e3e4224bb2 --- /dev/null +++ b/stock_picking_operation_quick_change/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Sergio Teruel +* Lois Rilo diff --git a/stock_picking_operation_quick_change/readme/DESCRIPTION.rst b/stock_picking_operation_quick_change/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..8ee02537921 --- /dev/null +++ b/stock_picking_operation_quick_change/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module extends standard WMS to allow change destination location for all +picking operations. diff --git a/stock_picking_operation_quick_change/readme/USAGE.rst b/stock_picking_operation_quick_change/readme/USAGE.rst new file mode 100644 index 00000000000..dbcc16c57de --- /dev/null +++ b/stock_picking_operation_quick_change/readme/USAGE.rst @@ -0,0 +1,9 @@ +To use this module, you need to: + +#. Go to products and create one of type "Stockable". +#. Update quantities on hand to have stock of it. +#. Go to inventory dashboard and click on "Delivery Orders" card to create a new + transfer. +#. Create a picking and select the product to do the transfer and save it. +#. Click on button *Change Location*, select in wizard the old location and + new location. diff --git a/stock_picking_operation_quick_change/static/description/index.html b/stock_picking_operation_quick_change/static/description/index.html new file mode 100644 index 00000000000..da6b6a79519 --- /dev/null +++ b/stock_picking_operation_quick_change/static/description/index.html @@ -0,0 +1,435 @@ + + + + + + +Stock Picking Operation Quick Change + + + +
+

Stock Picking Operation Quick Change

+ + +

Beta License: AGPL-3 OCA/stock-logistics-workflow Translate me on Weblate Try me on Runbot

+

This module extends standard WMS to allow change destination location for all +picking operations.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to products and create one of type “Stockable”.
  2. +
  3. Update quantities on hand to have stock of it.
  4. +
  5. Go to inventory dashboard and click on “Delivery Orders” card to create a new +transfer.
  6. +
  7. Create a picking and select the product to do the transfer and save it.
  8. +
  9. Click on button Change Location, select in wizard the old location and +new location.
  10. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/stock-logistics-workflow project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/stock_picking_operation_quick_change/tests/__init__.py b/stock_picking_operation_quick_change/tests/__init__.py index 9e7b3293f98..b0cc2973add 100644 --- a/stock_picking_operation_quick_change/tests/__init__.py +++ b/stock_picking_operation_quick_change/tests/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# © 2017 Sergio Teruel # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_stock_picking_operation_quick_change diff --git a/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py b/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py index 47d8c55f25e..83c02cc2b68 100644 --- a/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py +++ b/stock_picking_operation_quick_change/tests/test_stock_picking_operation_quick_change.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Sergio Teruel # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -84,14 +83,14 @@ def test_picking_operation_change_location_dest_all(self): 'new_location_dest_id': new_location_dest_id.id, 'change_all': True, }) - operations = self.picking.mapped('pack_operation_product_ids') + move_lines = self.picking.mapped('move_line_ids') self.assertEqual(wiz.location_dest_id, self.picking.location_dest_id) self.assertEqual(wiz.old_location_dest_id, - operations[:1].location_dest_id) + move_lines[:1].location_dest_id) wiz.action_apply() - operations = self.picking.mapped( - 'pack_operation_product_ids.location_dest_id') - self.assertEqual(len(operations), 1) + move_lines = self.picking.mapped( + 'move_line_ids.location_dest_id') + self.assertEqual(len(move_lines), 1) def test_picking_operation_change_location_dest(self): new_location_dest_id = self.Location.create({ @@ -103,8 +102,8 @@ def test_picking_operation_change_location_dest(self): 'location_id': self.picking.location_dest_id.location_id.id }) self.picking.action_assign() - operations = self.picking.mapped('pack_operation_product_ids') - operations[:1].write({'location_dest_id': other_location_dest_id.id}) + move_lines = self.picking.mapped('move_line_ids') + move_lines[:1].write({'location_dest_id': other_location_dest_id.id}) wiz = self.Wizard.with_context( active_model=self.picking._name, active_ids=self.picking.ids, @@ -113,12 +112,14 @@ def test_picking_operation_change_location_dest(self): 'new_location_dest_id': new_location_dest_id.id, }) wiz.action_apply() - operations = self.picking.mapped( - 'pack_operation_product_ids.location_dest_id') - self.assertEqual(len(operations), 2) + move_lines = self.picking.mapped( + 'move_line_ids.location_dest_id') + self.assertEqual(len(move_lines), 2) def test_picking_operation_change_location_dest_failed(self): self.picking.action_assign() + for move in self.picking.move_lines: + move.quantity_done = 1 self.picking.action_done() new_location_dest_id = self.Location.create({ 'name': 'New Test Customer Location', diff --git a/stock_picking_operation_quick_change/views/stock_picking_view.xml b/stock_picking_operation_quick_change/views/stock_picking_view.xml index dc3954f0425..6d9529a329b 100644 --- a/stock_picking_operation_quick_change/views/stock_picking_view.xml +++ b/stock_picking_operation_quick_change/views/stock_picking_view.xml @@ -7,7 +7,7 @@ stock.picking - +