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

   Currently, I'm working in odoo version 12.0.

  Does anyone know how to differentiate Odoo Website Orders & Backend Sale Orders?

  I've checked with following two conditions:

  - Check with Sales Team/Channel

 - Check with website_id is set or not.

But above both conditions are not give an accurate result. Because any user can change Sales Channel & Specific Website from view. 

So, can anyone help me to resolve this issue?




الصورة الرمزية
إهمال

there's already a filter for website orders in sale.order, check that code.

الكاتب

I've already checked that condition. But it is not accurate. If any other condition then let me know.

الكاتب

Yes, I've checked with website_id field & team_id field. But it is not accurate.

الكاتب

I don't know about access_token field. Can you please explain the functionality of that field?

Hello Avani,

Website_id field is readonly field from py, if it's not customised in other module then user can't change it.

الكاتب

But we have customized that field. So, need to find another solution to this issue.

أفضل إجابة

Hello Avani,

Only way to use website_id or you can define new custom field and fill that field when order creates from backend. So no one can edit or use that field.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 23
3577
2
مارس 21
8808
1
نوفمبر 19
11699
0
فبراير 21
2979
3
مارس 24
6882