On 2016-02-17 17:03, Markus Bala wrote: > On Wed, Feb 17, 2016 at 4:11 PM, Cédric Krier <cedric.kr...@b2ck.com> wrote: > > > On 2016-02-16 22:03, Markus Bala wrote: > > > Hi, > > > > > > Is it possible to disable create new or modify or delete at client side? > > > > > > Example: > > > I have a form. This form data is from "Database View" the purpose is only > > > for viewing. > > > In that case, I want to disable "Create new" function. > > > > Yes this is defined by ir.model.access: > > > > http://doc.tryton.org/3.8/trytond/doc/topics/access_rights.html?#model-access > > > Hi Cedric, > > May I know how to set access to the button (create new button)?
You don't have to do that. The client deduce automatically if the button can be activated or not based on the model access. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/20160217110556.GU10143%40tetsuo.