[FIX] stock_quant_manual_assign: lot_id and package_id not populated automatically

This commit is contained in:
Pedro M. Baeza
2015-11-11 00:59:09 +01:00
committed by Tony Gu
parent 2321aaf2af
commit 3162d76f2f
4 changed files with 148 additions and 11 deletions

View File

@@ -6,8 +6,7 @@
Manual assignment of quants
===========================
With this module, user can change manually the automatic selection of quants
With this module, user can manually change the automatic selection of quants.
Usage
=====
@@ -21,13 +20,17 @@ To use this module, you need to:
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/153/8.0
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/oca-stock-logistics-warehouse/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 `here <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_manual_assign%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/stock-logistics-warehouse/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
<https://github.com/OCA/
stock-logistics-warehouse/issues/new?body=module:%20
stock_quant_manual_assign%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
@@ -54,4 +57,4 @@ 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 http://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.

View File

@@ -0,0 +1,131 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_quant_manual_assign
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2016
msgid ""
msgstr ""
"Project-Id-Version: stock-logistics-warehouse (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-14 01:38+0000\n"
"PO-Revision-Date: 2016-01-14 09:52+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-stock-logistics-warehouse-8-0/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_quant_manual_assign
#: view:assign.manual.quants:stock_quant_manual_assign.assign_manual_quants_form_view
msgid "Cancel"
msgstr "Abbrechen"
#. module: stock_quant_manual_assign
#: view:assign.manual.quants:stock_quant_manual_assign.assign_manual_quants_form_view
msgid "Confirm"
msgstr "Bestätigen"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants,create_uid:0
#: field:assign.manual.quants.lines,create_uid:0
msgid "Created by"
msgstr "Angelegt durch"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants,create_date:0
#: field:assign.manual.quants.lines,create_date:0
msgid "Created on"
msgstr "Angelegt am"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants,id:0 field:assign.manual.quants.lines,id:0
msgid "ID"
msgstr "ID"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants,write_uid:0
#: field:assign.manual.quants.lines,write_uid:0
msgid "Last Updated by"
msgstr "Zuletzt aktualisiert durch"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants,write_date:0
#: field:assign.manual.quants.lines,write_date:0
msgid "Last Updated on"
msgstr "Zuletzt aktualisiert am"
#. module: stock_quant_manual_assign
#: view:assign.manual.quants:stock_quant_manual_assign.assign_manual_quants_form_view
#: view:stock.move:stock_quant_manual_assign.stock_move_manual_quants_form_view
#: view:stock.move:stock_quant_manual_assign.stock_move_manual_quants_picking_form_view
msgid "Manual Quants"
msgstr "Manuelle Quants"
#. module: stock_quant_manual_assign
#: model:ir.actions.act_window,name:stock_quant_manual_assign.assign_manual_quants_action
msgid "Manual quants"
msgstr "Manuelle Quants"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants.lines,assign_wizard:0
msgid "Move"
msgstr "Umlagern"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants,name:0
msgid "Name"
msgstr "Bezeichnung"
#. module: stock_quant_manual_assign
#: model:ir.model,name:stock_quant_manual_assign.model_stock_picking
msgid "Picking List"
msgstr "Kommissionierung"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants.lines,qty:0
msgid "QTY"
msgstr "Menge"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants.lines,quant:0
msgid "Quant"
msgstr "Quant"
#. module: stock_quant_manual_assign
#: code:addons/stock_quant_manual_assign/wizard/assign_manual_quants.py:22
#, python-format
msgid "Quantity is higher than the needed one"
msgstr "Menge ist größer als der Bedarf"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants,quants_lines:0
msgid "Quants"
msgstr "Quants"
#. module: stock_quant_manual_assign
#: field:assign.manual.quants.lines,selected:0
msgid "Select"
msgstr "Auswahl"
#. module: stock_quant_manual_assign
#: model:ir.model,name:stock_quant_manual_assign.model_stock_move
msgid "Stock Move"
msgstr "Lagerbuchung"
#. module: stock_quant_manual_assign
#: field:stock.move,picking_type_code:0
msgid "Type of Operation"
msgstr "Vorgangsart"
#. module: stock_quant_manual_assign
#: view:assign.manual.quants:stock_quant_manual_assign.assign_manual_quants_form_view
msgid "or"
msgstr "oder"
#. module: stock_quant_manual_assign
#: view:assign.manual.quants:stock_quant_manual_assign.assign_manual_quants_form_view
msgid "qty"
msgstr "Menge"

View File

@@ -3,13 +3,14 @@
# * stock_quant_manual_assign
#
# Translators:
# Antonio Trueba, 2016
msgid ""
msgstr ""
"Project-Id-Version: stock-logistics-warehouse (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-24 09:07+0000\n"
"PO-Revision-Date: 2015-10-24 09:08+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"POT-Creation-Date: 2016-01-14 01:38+0000\n"
"PO-Revision-Date: 2016-02-10 16:37+0000\n"
"Last-Translator: Antonio Trueba\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-stock-logistics-warehouse-8-0/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -117,7 +118,7 @@ msgstr ""
#. module: stock_quant_manual_assign
#: field:stock.move,picking_type_code:0
msgid "Type of Operation"
msgstr ""
msgstr "Tipo de operación"
#. module: stock_quant_manual_assign
#: view:assign.manual.quants:stock_quant_manual_assign.assign_manual_quants_form_view

View File

@@ -64,6 +64,8 @@ class AssignManualQuants(models.TransientModel):
('reservation_id', '=', move.id)])
quants_lines = [{
'quant': x.id,
'lot_id': x.lot_id.id,
'package_id': x.package_id.id,
'selected': x in move.reserved_quant_ids,
'qty': x.qty if x in move.reserved_quant_ids else 0,
'location_id': x.location_id.id,