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

I have been working ion a search module in OpenERP-7. The scenario is that I am returning records in domain so that I can show them on my field. The problem here is that the field is not showing the newly created records in the domain. While on printing the value of domain on console, I get the desired records . But I dont seem to get why its not allowing me to view them ion my field. Neither I am getting any error.

My domain part of function is as follows:

res = cr.fetchall()

for p_id,p_name in res:

     domain.append((p_id))

print domain

return {'domain':{'my_products':[('id','in',domain)]}}

 

아바타
취소
베스트 답변

returnig dictionary with 'domain' key works only if it is on_change function.. otherwize you need to refresh / reload the page in order to reload view with new values

아바타
취소
작성자

yes I am using the on_change function. But the values are not being shown on the field. It is Only showing the old values.

베스트 답변

I think method onchange which return domain doesn't work on field with widget="selection" attribute. Try to remove it.

아바타
취소
관련 게시물 답글 화면 활동
4
10월 16
31243
1
9월 15
3917
1
6월 15
834
0
4월 15
681
2
4월 15
857