Skip to Content
Menu
This question has been flagged
3 Replies
4111 Views
product_id=fields.Many2many('product.template', 'user_product_rel','prod_rel','user_rel','Service Type',required=True)
Is it Possible to edit this field after selection
If I select this field I can only close this field want to edit this field from selection ,like a many2one field edit option
 ..
Attached screen shot below ..need a help.......


http://prnt.sc/aujxkc


Avatar
Discard
Best Answer

in the shared image you are using  widget="many2many_tags" with the many2many field.

 widget="many2many_tags" are non editable by default .

(but there is nothing impossible for a developer , extend the widget and change it property add link  of record with it  )


IF you   don't  want any  extra  code ,  try widget="many2many"  ,

(but it will change the view, so you have to reconstruct the view )


Hop this may help in your case.


Avatar
Discard
Author

Thank you.. will chk

Best Answer

if you want to edit a many2many field after selection remove readonly=1 from your view form.

Avatar
Discard