콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
7 답글
4946 화면

   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
3792
2
3월 21
8927
1
11월 19
11863
0
2월 21
3107
3
3월 24
7094