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

I'm using the 'Restrict Follower Selection' module (https://apps.odoo.com/apps/modules/11.0/mail_restrict_follower_selection/) to prevent unwanted partners showing up in 'Add followers' selection lists.

If have entered the value [('customer', '=', False)] and it is working properly, but I want to add a second value to prevent suppliers appearing in the 'Add followers' selection lists as well because I only want internal users in the company to be added as followers of documents.

What is the correct syntax for the value to achieve this?

Also, is there a good reference document available to learn more about how to construct these kinds of values for System Parameters and Record Rules?

الصورة الرمزية
إهمال
أفضل إجابة

Hi Bill,

This is an example of a domain. For more information, take a look at the following link:

https://www.odoo.com/documentation/11.0/reference/orm.html#domains

 To achieve the search you wanted, the following domain can be used:

['&', ('customer', '=', False), ('supplier', '=', False)]

However, this relies on your data being correctly formatted for every contact. If you have any partners that aren't a supplier or customer, this restriction doesn't work.

If you don't have a customer facing web portal, I'd suggest using:

[('user_ids', '=', False)]

This restricts it to only partners that have a user connected to it.


Regards,

Jake Robinson
Dionysus Software

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

thanks Jake. I had missed this answer. Works perfectly.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 18
2305
0
أغسطس 20
3533
1
مارس 19
4538
1
أبريل 22
8976
2
أكتوبر 21
8205