mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_quant_manual_assign: Add lot and package to selection view
This commit is contained in:
committed by
OCA-git-bot
parent
63c1140be6
commit
53d09a1883
@@ -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')
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user