تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6710 أدوات العرض

Hi,

There are parts of Odoo that allow multiple selections (tags, labels etc)


I'm trying to do the same with a studio created field, but I can only ever select one option.

The example, is within the Quality Alerts section, I'm trying to enter the Employee at fault (many2one field currently, pulling all employee names), but there are times where multiple staff members are at fault. How do I change this field (or replace it) so that one QA entry, can cover two employees?

Thanks

الصورة الرمزية
إهمال
الكاتب

Thank you both, that works brilliantly.
A couple of enhancements if possible, for some reason I can't add this new field to the 'group by' search on the list view screen - any ideas?
Is there now a way of adding a tab on an employee's record, that shows all quality alerts that include their name (as the employee at fault)

أفضل إجابة

Hi Ant,

Use the Many2many field instead Many2one, allowing you to choose multiple records within a single selection field.
The 'tag' field you mentioned is M2M, not M2O

 

Hope it helps,
Kiran K

الصورة الرمزية
إهمال
الكاتب

Thank you both, that works brilliantly.
A couple of enhancements if possible, for some reason I can't add this new field to the 'group by' search on the list view screen - any ideas?
Is there now a way of adding a tab on an employee's record, that shows all quality alerts that include their name (as the employee at fault)

أفضل إجابة

Instead of creating many2one field, create many2many field instead which will allow you to select multiple options. You can also add many2many_tags widget for better UI.


Regards,

Karan BK

الصورة الرمزية
إهمال
الكاتب

Thank you both, that works brilliantly.
A couple of enhancements if possible, for some reason I can't add this new field to the 'group by' search on the list view screen - any ideas?
Is there now a way of adding a tab on an employee's record, that shows all quality alerts that include their name (as the employee at fault)

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 23
1708
0
فبراير 25
30
0
نوفمبر 22
62
0
أكتوبر 20
3243
1
أغسطس 17
3697