Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
7 ตอบกลับ
4822 มุมมอง

   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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 23
3579
Open Record in Edit mode แก้ไขแล้ว
2
มี.ค. 21
8809
1
พ.ย. 19
11703
0
ก.พ. 21
2980
Odoo Selection field issue แก้ไขแล้ว
3
มี.ค. 24
6882