lims_analysis_sheet_stock: add uom_category to add material wizard
This commit is contained in:
parent
d9ff200a5c
commit
d8acabaa68
|
@ -135,6 +135,8 @@ class AddMaterialDetailStart(ModelView):
|
|||
depends=['product'])
|
||||
from_location = fields.Many2One('stock.location', 'From Location',
|
||||
domain=[('type', '=', 'storage')])
|
||||
uom_category = fields.Function(fields.Many2One(
|
||||
'product.uom.category', 'Uom Category'), 'on_change_with_uom_category')
|
||||
uom = fields.Many2One('product.uom', 'Uom', required=True,
|
||||
domain=[
|
||||
('category', '=', Eval('uom_category')),
|
||||
|
|
Loading…
Reference in New Issue