[IMP] stock_quant_manual_assign: Add lot and package to selection view

This commit is contained in:
Pedro M. Baeza
2015-11-06 02:29:14 +01:00
committed by OCA-git-bot
parent 63c1140be6
commit 53d09a1883
2 changed files with 10 additions and 6 deletions

View File

@@ -96,6 +96,14 @@ class AssignManualQuantsLines(models.TransientModel):
location_id = fields.Many2one(
comodel_name='stock.location', string='Location',
related='quant.location_id', readonly=True)
lot_id = fields.Many2one(
comodel_name='stock.production.lot', string='Lot',
related='quant.lot_id', readonly=True,
groups="stock.group_production_lot")
package_id = fields.Many2one(
comodel_name='stock.quant.package', string='Package',
related='quant.package_id', readonly=True,
groups="stock.group_tracking_lot")
qty = fields.Float(
string='QTY', digits=dp.get_precision('Product Unit of Measure'))
selected = fields.Boolean(string='Select')

View File

@@ -11,15 +11,11 @@
<tree editable="top" delete="0" create="0">
<field name="quant" />
<field name="location_id" />
<field name="lot_id" />
<field name="package_id" />
<field name="selected" />
<field name="qty" attrs="{'readonly':[('selected', '=' ,False)]}" sum="qty"/>
</tree>
<form>
<field name="quant" />
<field name="location_id" />
<field name="selected" />
<field name="qty"/>
</form>
</field>
<field name="move_qty" colspan="2" readonly="1"/>
<field name="lines_qty" invisible="1" />