61
61
on_change="uom_onchange(product_id, parent.cons_location_id, uom_id, prodlot_id)"/>
62
62
<field name="product_qty" />
63
63
<field name="prodlot_id"
64
on_change="change_prodlot(product_id, prodlot_id, expiry_date, parent.cons_location_id, uom_id)"
64
on_change="change_prodlot(product_id, prodlot_id, expiry_date, parent.cons_location_id, uom_id, remark)"
65
65
domain="[('product_id', '=', product_id), ('stock_available', '>', 0)]"
66
66
context="{'location_id': parent.cons_location_id, 'uom': uom_id, 'hidden_perishable_mandatory': date_mandatory}"
67
67
attrs="{'required': [('batch_mandatory', '=', True)], 'readonly': [('batch_mandatory', '=', False)]}" />
68
68
<field name="expiry_date"
69
on_change="change_expiry(expiry_date, product_id, parent.cons_location_id, uom_id)"
69
on_change="change_expiry(expiry_date, product_id, parent.cons_location_id, uom_id, remark)"
70
70
attrs="{'required': [('date_mandatory', '=', True)], 'readonly': [('date_mandatory', '=', False)]}"/>
71
71
<field name="consumed_qty" on_change="change_qty(consumed_qty, product_id, prodlot_id, parent.cons_location_id, uom_id)"/>
72
72
<field name="remark" />