Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7911 มุมมอง

i am new to odoo i, am trying to get data from my different model to one single form in tree view .how i can do it please help???

thanks


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Your tree view can only show fields in a model, but for you to show the data from another model in your tree view, you can create a field and relate the new field to the data you want to get:

many_two_one_field = fields.Many2one('res.partner')
new_field = fields.Char(related='many_two_one_field.data_field')

The above shows there is a connecting field in your current model with the field you want to get that from; many_two_one_field

Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Hide menu for all except specific group แก้ไขแล้ว
1
พ.ย. 22
4011
Live tracking in odoo. แก้ไขแล้ว
2
ส.ค. 22
8417
1
ม.ค. 25
10277
1
ก.ย. 21
7444
1
มี.ค. 21
6321