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

I want to get "Market" value when I click to my print button.

https://prnt.sc/qe99qz

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

Hi,

Hope the print button calls a python function, if so you can get the value inside the python function using self.field_name .

self.field_name will give you a record like res.market(1,) , from this if you need to get the id or name you can get it like self.field_name.id or self.field_name.name .


See this: Odoo Wizard

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 9 20
9484
0
thg 10 23
1598
0
thg 8 22
2307
1
thg 7 22
20003
0
thg 4 22
2973