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

i need to write code that takes a computed field, the find out if there is model/s related to it, and get the model name dynamically,


for example:

i have in pos.order model there is the amount_total field:

amount_total = fields.Float(compute='_compute_amount_all', string='Total', digits=0)

the amount total is computed form pos.order.line ,  but if i want a way to get the model name dynamically from the code


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 22
7228
1
thg 6 25
15295
3
thg 4 25
5420
0
thg 12 24
1338
Compute Fields Đã xử lý
2
thg 7 24
2323