Disable create new, modify, or delete

29 views
Skip to first unread message

Markus Bala

unread,
Feb 17, 2016, 1:03:41 AM2/17/16
to tryton-dev
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.

best Regard,
Markus Bala

Cédric Krier

unread,
Feb 17, 2016, 4:15:03 AM2/17/16
to tryton-dev
Yes this is defined by ir.model.access:
http://doc.tryton.org/3.8/trytond/doc/topics/access_rights.html?#model-access

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Markus Bala

unread,
Feb 17, 2016, 5:04:19 AM2/17/16
to tryto...@googlegroups.com
On Wed, Feb 17, 2016 at 4:11 PM, Cédric Krier <cedric...@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)?
 


--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@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/20160217091110.GT10143%40tetsuo.

Cédric Krier

unread,
Feb 17, 2016, 6:10:04 AM2/17/16
to tryto...@googlegroups.com
On 2016-02-17 17:03, Markus Bala wrote:
> On Wed, Feb 17, 2016 at 4:11 PM, Cédric Krier <cedric...@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.
Reply all
Reply to author
Forward
0 new messages