Hi,
I have a one2many field. I would like to block the "create and Edit" when referring it in another class.
The below are Working
Field with domain filter
<field name="prod_ser_no_id" domain="[('product_id','=',parent.product_id)]"
on_change="onchange_serial_id(prod_ser_no_id)" />
Field with selection widget
<field name="prod_ser_no_id" on_change="onchange_serial_id(prod_ser_no_id)" widget="selection"/>
The below is not Working
Field with domain filter and selection widget
<field name="prod_ser_no_id" domain="[('product_id','=',parent.product_id)]"
on_change="onchange_serial_id(prod_ser_no_id)" widget="selection"/>
Thanks for your help and please revert me for clarifications.
Hi,,I used the below code but the domain part not working..Please help me to solve this..Thanks
'moves': fields.many2many('stock.production.lot','out_grn_lines','grn_id','lot_id', 'GRN Entry', domain="[('product_id','=','product_id')]" ,readonly=True, states={'confirmed':[('readonly', False)],'assigned':[('readonly',False)]}),