Hi Khurram.

On Friday, January 27, 2017 at 11:45:07 AM UTC-5, Khurram Shahzad wrote:
>
> Dear All,
>
> I am trying to add a record rule to user for restricting him to see one 
> stock location only. The rule is:
>
> [["location.id","=",2]]
>
> But, when I click on 'Internal shipments' which use stock locations, it 
> gives following error:
> KeyError: u 'location'
>
> Probably, the name 'location' used to refer the model 'stock.location' is 
> not correct. Can anybody guide me what is the correct name for referring to 
> 'stock.location'. 
>
> By the way, is there any reference/manual which should be consulted to get 
> the names of the Models for referring them in Record Rules?
>

You can get them in: Administration->Models->Models

I hope it can to useful for you.

--
Regards

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/c420c0b7-2928-4e59-8f00-d2dde98ad1f1%40googlegroups.com.

Reply via email to