Hi, I want to check a One2Many field if the creator of the dataset is the actual logged in user. I try with domain like the following, but this don't work. All user can see all datasets. How can i solve the Problem?
aaaaa = fields.One2Many('own.class','bbbbb','aaaaa',domain=[
('create_uid', '=', Transaction().user)])
@classmethod
def __setup__(cls):
super(Hshn, cls).__setup__()
cls._buttons.update({
'btn1': {
#'readonly': Eval('like_state') != 'like',
'readonly': Eval('aaaaa',[0])
},
})
