[MOD] Fixed some problems when there are quants with diferente histories

This commit is contained in:
oihane
2015-03-03 13:38:58 +01:00
committed by Tony Gu
parent c81d3c4af5
commit afd943c1e2
3 changed files with 30 additions and 12 deletions

View File

@@ -1 +1,14 @@
With this module, user can change manually the automatic selection of quants
Manual assignment of quants
===========================
With this module, user can change manually the automatic selection of quants
Credits
=======
Contributors
------------
* Mikel Arregi <mikelarregi@avanzosc.es>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Ana Juaristi <ajuaristo@gmail.com>

View File

@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
@@ -18,17 +17,22 @@
##############################################################################
{
"name": "Manual assignment of quants",
"name": "Stock - Manual assignment of quants",
"version": "1.0",
"depends": ["base", "stock"],
"depends": [
"stock",
],
"author": "OdooMRP team",
"website": "http://www.odoomrp.com",
"contributors": [
"Ana Juaristi Olalde <ajuaristio@gmail.com>",
"Pedro Manuel Baeza Romero <pedro.baeza@gmail.com>"
"Mikel Arregi <mikelarregi@avanzosc.es>"],
"category": "quant",
'data': ['wizard/assign_manual_quants_view.xml',
'views/stock_move_view.xml'],
"Ana Juaristi Olalde <ajuaristio@gmail.com>",
"Pedro Manuel Baeza Romero <pedro.baeza@gmail.com>"
"Mikel Arregi <mikelarregi@avanzosc.es>",
],
"category": "Warehouse Management",
"data": [
"wizard/assign_manual_quants_view.xml",
"views/stock_move_view.xml",
],
"installable": True,
"auto_install": False,
}

View File

@@ -100,6 +100,7 @@ class AssignManualQuantsLines(models.TransientModel):
assign_wizard = fields.Many2one('assign.manual.quants', string='Move',
required=True, ondelete="cascade")
quant = fields.Many2one('stock.quant', string="Quant", required=True)
quant = fields.Many2one('stock.quant', string="Quant", required=True,
ondelete='cascade')
qty = fields.Float(string='QTY')
selected = fields.Boolean(string="Select")