콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
7810 화면

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

아바타
취소
관련 게시물 답글 화면 활동
1
2월 20
6191
1
2월 24
2194
0
7월 24
3272
0
7월 22
60
1
7월 22
3140