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

I wanted to hide products from all customer. But the one who has specific tag added to them can access products and buy them.

What would be the best approach to move forward with it.

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

Hi Terry Arsenault,

You need to add many2many field in res.users model with relation of your tags.

And then inside this both model product.template and product.product Overide search_read orm method and based handle condition look like this way.

Thanks.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
user creation تم الحل
1
يونيو 21
2757
2
مارس 18
7923
3
ديسمبر 24
13438
11
أغسطس 24
12846
1
يوليو 24
1935