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

Hi,

I found the info at the address https://odootricks.tips/about/building-blocks/domain-in-odoo/

However, if I try to put the following code into the domain code widget in an Automated Action

['&',('x_studio_equipment_root_category','=',Consumable),('x_studio_equipments_minimum_quantity','=',x_studio_equipments_quantity)]

I get an error message "Domain not properly formed".

How can I enter such code into the domain of my automated action with Studio, please ?

Thanks.

아바타
취소
베스트 답변

Hi,

Instead of using the domain on the Automated Action, try to write a python code consist of if else statements. It helped a lot in combating the limitations of the domain field.

아바타
취소
관련 게시물 답글 화면 활동
1
8월 22
3259
0
10월 23
8491
1
12월 22
2953
0
10월 21
2406
1
7월 21
2639