2015-06-25 21:28 GMT+02:00  <[email protected]>:
> 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])
>                    },
>                })

I don't understand the constraint. Why do you need that?

-- 
Albert Cervera i Areny
Tel. 93 553 18 03
@albertnan
www.NaN-tic.com

Reply via email to