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

i have created one2many field in custom add-ons and link it with other model

res_id = fields.One2many('production.resources', 'resources_id', "Resources")
the field work good but when i try to add line it show a popup to create new record instead of show already created records in the other model as selection?
อวตาร
ละทิ้ง

Is it possible that you really need a Many2one or a Many2many instead of a One2many.
In One2many you only get records that are created especially for the parent record. like eg: invoice and invoice-lines.
If in your example one product can have more resources and one resource can be a resource for more products you need m2m.

ผู้เขียน

its works fine with many2many but i have custom float field in need to add it per line in the many2many lines is that possible and how ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 21
4975
1
ต.ค. 19
5226
4
มี.ค. 15
10543
3
พ.ค. 25
2209
1
เม.ย. 25
1681