Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
7635 Vizualizări

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 ??

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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')

Imagine profil
Abandonează

Can you help me to do the same

Cel mai bun răspuns

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):

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
feb. 20
5959
1
feb. 24
1962
0
iul. 24
3011
0
iul. 22
60
1
iul. 22
2900