Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3612 Tampilan

Currently, I'm working in Odoo v12 and I need to add several emails in the existing contacts field for a survey, but it only allows me to add up to 40 emails. How can I do to increase the number of contacts in that field?.

Image link: https://drive.google.com/file/d/1x5Vm7uD1abanik56HoN6uQFsyxOoNs-v/view?usp=sharing

Avatar
Buang
Jawaban Terbai

Hi Victor,

I've tested this on a V12 and V13 instance and you're right. I consider this a bug in the framework. You should be able to add as many records as you'd like just like anywhere else in Odoo.The issue seems to be related with the widget  many2many_tags_email which is set on the field that you're referring to.I've reported this problem to Odoo at https://github.com/odoo/odoo/issues/38658

In the meanwhile you can workaround this issue by modifying the view. Activate developer mode, open up the wizard that asks you for the email invites and then click on the developer icon to open the view. In this view you'll see a line with the code "<field name="partner_ids" invisible="context.get('survey_resent_token')" widget="many2many_tags_email" placeholder="Add existing contacts..." context="{'force_email':True, 'show_email':True}"/>". Change the widget from "many2many_tags_email" to "many2many_tags" and save your view. Reload your view and you'll now be able to add more than 40 records. See this image for more details.


Regards,
Yenthe

Avatar
Buang

Perhaps TAGS aren't a good match if there are more than 40. One2Many might work better. With 40+ things, you may want to sort and search, which TAGS aren't designed for.

I agree that it is not the best choice to match them like this but if the field happens to be a TAGS widget and you do want to invite 40+ people... well then it should work. I can imagine that you'd rather not do custom development to change this behaviour in a default Odoo.

Post Terkait Replies Tampilan Aktivitas
0
Apr 19
3609
1
Des 23
17490
2
Jul 23
3225
2
Nov 22
6693
1
Mei 22
1976