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

Hi,

I was trying to configure super-calendar to add items from the mgmtsystem.action module. The idea is that each user will only see 'actions' assigned to him. I'm able to create the calendar, but all users can see the same items. Is there a way to limit which items can each user see?

I tried with domain, setting a basic one such as [('user_id','=',1)], but I get:

File "/usr/lib/pymodules/python2.7/openerp/addons/super_calendar/super_calendar.py", line 55, in generate_calendar_records current_record_ids = current_pool.search(cr, uid, line.domain and eval(line.domain) or [], context=context) TypeError: 'module' object is not callable

Is this even possible? Thanks!

아바타
취소
작성자 베스트 답변

I was able to fix it. I modified super_calendar.py

-from openerp.tools import safe_eval as eval +from openerp.tools.safe_eval import safe_eval as eval

아바타
취소
관련 게시물 답글 화면 활동
2
7월 25
899
0
7월 15
8471
1
3월 15
5424
0
3월 25
1133
1
7월 25
1097