lims_analysis_sheet_stock: add uom_category to add material wizard

This commit is contained in:
Sebastián Marró 2020-12-08 12:56:10 -03:00
parent d9ff200a5c
commit d8acabaa68
1 changed files with 2 additions and 0 deletions

View File

@ -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')),