Tree view without new button

41 views
Skip to first unread message

Roei Erez

unread,
Jul 20, 2017, 11:54:46 AM7/20/17
to tryton
Does anyone know how to disable the "new" button on the toolbar for a specific tree view?
I am implementing a model which has one2many relation and want to enforce that the children will only be created in the context of the parent form.

Cédric Krier

unread,
Jul 20, 2017, 6:50:05 PM7/20/17
to tryton
It is not doable because it goes against the design principal of Tryton
which separate the access right from the view.
If the reverse Many2One is required, you should be able to have the same
behaviour from within One2Many than outside.

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

Roei Erez

unread,
Jul 21, 2017, 6:10:07 AM7/21/17
to tryton
Thanks your answer and for the clarification. 

Udo Spallek

unread,
Jul 25, 2017, 10:56:13 AM7/25/17
to try...@googlegroups.com
Thu, 20 Jul 2017 07:01:51 -0700 (PDT)
Roei Erez <roei...@gmail.com>:
IIUC, you are looking for the multi-selection widget[1] for
Many2Many fields. By using it, your users are only able to (de-) select
entries, but not to create new ones.

[1]
http://www.tryton.org/de/categories/release-1.html#major-changes-in-graphical-user-interface

--

Regards Udo Spallek
_____________________________
virtual things
Preisler & Spallek GbR

Windeckstr. 77
81375 Munich
Tel: +49 (89) 710 481 55

in...@virtual-things.biz
http://www.virtual-things.biz

Cédric Krier

unread,
Jul 25, 2017, 11:15:09 AM7/25/17
to try...@googlegroups.com
On 2017-07-25 16:55, 'Udo Spallek' via tryton wrote:
> Thu, 20 Jul 2017 07:01:51 -0700 (PDT)
> Roei Erez <roei...@gmail.com>:
> >Does anyone know how to disable the "new" button on the toolbar for a
> >specific tree view?
> >I am implementing a model which has one2many relation and want to
> >enforce that the children will only be created in the context of the
> >parent form.
>
> IIUC, you are looking for the multi-selection widget[1] for
> Many2Many fields. By using it, your users are only able to (de-) select
> entries, but not to create new ones.


Except that the search window offer a "new" button except if the field
access disable the creation.
signature.asc
Reply all
Reply to author
Forward
0 new messages