Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8584 Lượt xem

I am trying to set the Domain in Odoo Studio to filter results of a field in Sales Order Lines

Current syntax: [["x_studio_pricelist.id","=","order_id.pricelist_id.id"]]

I get an error message stating: 

invalid input syntax for integer: "order_id.pricelist_id.id"

If I enter the ID manually as a number in the domain (in this case 113), everything is fine.  

How can I modify my syntax so Odoo converts order_id.pricelist_id.id properly?

Ảnh đại diện
Huỷ bỏ

Sorry, This is not a answer. But how did you solved the problem in the end? Mine is showing "Domain not properly formed" if I edit in xml

Câu trả lời hay nhất

Hi Roeland,

yes. Odoo Studio doesn't allow this when editing one simple field. But you could edit the Odoo Studio View:

1) Activate Debug Mode

2) Open Studio

3) Enter the XML of the Odoo Studio View (Tab View -> XML)

4) Select the View "Odoo Studio"

5) Delete the quote marks of the mentioned domain filter.

6) Save.


As you'll edit the xml directly, you should be aware of and know what you're doing.

BR

Florian

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Leave out the quote marks:

 [["x_studio_pricelist.id","=",order_id.pricelist_id.id]]
Ảnh đại diện
Huỷ bỏ

Hi Chris,
Sounds logic, but Studio won't let me do just that...
Is there another way?
Or do i do something wrong?

thx
Roeland

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 25
906
naked domain set up Đã xử lý
3
thg 7 25
4183
0
thg 5 25
846
1
thg 10 24
1654
2
thg 10 24
2984