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

hi i am creating many2many fields in openerp 7.0 wizards,and i am getting the value as empty list if i select the values also ,what is the problem ??

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I fixed the issue by giving different relation name for many2many relation table such as field1 :fields.many2many('res.partner','some_rel','curr_id','res_id') field2 :fields.many2many('res.partner','some_rel1','curr_id','res_id')

อวตาร
ละทิ้ง

Can you help me to do the same

คำตอบที่ดีที่สุด

You just can ignore the rel, field1 and field2 attributes. I just made a wizard relating to attachments by adding field: fields.many2many("ir.attachments", string="Attachment")

and it works.

You need to fill that relation in _defaults by a method using following pattern:

def _get_default_attachment(self, cr, uid, context=None):

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 20
6056
1
ก.พ. 24
2066
0
ก.ค. 24
3123
0
ก.ค. 22
60
1
ก.ค. 22
3020