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

Hi All,

I have added a  new field name "x_studio_vendor_name" under Helpdesk Ticket model and would like to add it to Rating model.


How can I do this? Should I use the related field? However, how can I create the connection?


Not sure what to do. Any suggestion.

Thanks 

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

Hi,

If you are trying to add a relational field in the model helpdesk and you need to connect that field with the rating model, you can make the field a Many2one field. Then you can select the records of the rating model in the helpdesk model.

Example:x_studio_vendor_name_id = fields.Many2one("model.rating")


Hope it helps



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
520
1
thg 1 24
1325
1
thg 10 24
1833
5
thg 8 23
3478
1
thg 2 22
2356