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? >
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/b1c3665f-eae2-436e-bc86-fdd988ce460d%40googlegroups.com.
