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

Good afternoon everybody!!!

Please i want to ask you about this case.

In fact, i have two classes. In the first i have used rec_name.

And in the second, i have a many2one field to the first class.

But the problem is that when i want to see the many2one field i found that it is composed from (id, name)

How can i deal with the rec_name please????

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

Hello Abdelwahed,

please check your syntax

You should use like this: _rec_name = 'field name'

You have to define last_name field in _rec_name like this: _rec_name = 'last_name'

If your columns don't have any name field then you have to define any field in _rec_name.


Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for you answer. In fact, i have a colum on which i made rec_name. but, i have a manyone field in an other class to the first class. So is it normal that the manyone contains the id and the colum of the rec_name??

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
1411
0
thg 1 25
3492
1
thg 8 23
14843
change password Đã xử lý
1
thg 8 23
13497
1
thg 7 23
10478