跳至內容
選單
此問題已被標幟
7 回覆
4824 瀏覽次數

   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
2月 23
3580
2
3月 21
8809
1
11月 19
11703
0
2月 21
2980
3
3月 24
6883