Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Is it Possible to edit a many2many field after selection

By
Odoo
on 4/20/16, 5:37 AM 358 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


1

Prakash Sharma

--Prakash Sharma--
815
| 2 1 4
Delhi, India
--Prakash Sharma--

I like to surround myself with brave, creative people.

My motivation for learning different technologies and algos drive me. I love challenges of a steep learning curve which I believe makes me a better learner. I have a strong desire to learn different technologies, which would enable me to become a full stack developer.

Prakash Sharma
On 4/21/16, 2:28 AM

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.


Thank you.. will chk

Odoo
on 4/21/16, 2:44 AM
0
zarzarsan
On 6/30/16, 6:15 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/20/16, 5:37 AM
Seen: 358 times
Last updated: 6/30/16, 6:15 AM