How can I make a user role - Project Manager or User statement for a function?
like this :
def onchange_planned(self, cr, uid, ids, planned=0.0, effective=0.0):
if user_id.sel_groups_44_45 == 45:
return {'value': {'remaining_hours': planned - effective}}
But it doesn't work.