Hi,

with the timesheet module I like to create timesheet lines for other
users than the current user of the transaction. In the module is an
ir.rule.group[1] defined and connected to an ir.rule[2]. The ir.rule
restricts the transaction users CRUD permissions to timesheet lines,
where he/she is the employee. In short words, a user can only work on
his/her own timesheet lines.
The ir.rule.group sets the default_p to True, which means, that this
rule is a default rule for all users, correct?

So my question is, how can I define a user, which is able to create a
timesheet line for other users?

I try it "with Transaction().set_user(0, set_context=True)" but it
doesn't work.

[1] 
http://hg2.tryton.org/modules/timesheet/file/2595085d8712/line.xml#l62
[2] 
http://hg2.tryton.org/modules/timesheet/file/2595085d8712/line.xml#l67

Regards
-- 
Udo Spallek

------------------------------------
virtual things
Preisler & Spallek GbR
Munich - Aix-la-Chapelle

Windeckstr. 77
81375 Munich - Germany
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

[email protected]
http://www.virtual-things.biz


-- 
[email protected] mailing list

Reply via email to