Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
7 Odpowiedzi
4837 Widoki

   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?




Awatar
Odrzuć

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

Autor

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

Autor

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

Autor

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.

Autor

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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lut 23
3585
2
mar 21
8816
1
lis 19
11710
0
lut 21
2991
3
mar 24
6900