i want to add custom fields in approval.product.line
1) on_hand quantity of selected product - on_hand_qty
2) last price purchased (unit_cost) of selected product - last_price_purchased
i am trying to add related fields through Technical, i don't know how to have relation in related field because when i am adding
Related Field = product_id.quantity
it says " Unknown field name 'quantity' in related field 'product_id.quantity' "
'quantity' field is in model 'stock_quant'
'unit_cost' field is in model 'stock_valuation_layer' (unit_cost from LAST record of the selected product)
how i can add both related fields? or any other way to achieve it?
please help.
regards