On 04/11/10 01:02 -0700, Mohammad wrote:
> Hi Cedric,
> I checked the file and now i understand how these small buttons below
> the formview work in Tryton :)
> 
> But I want to open a new tab simply using a function()
> 
> For example a simple button on the form view.
> 
> probably i have to use wizards. but not sure.
> 
> I have a list of ids and the only remaining thing is to open a new tab
> for the specific model (Not current model ! ) and view (which i have
> already defined in the other modules) in a new tab.

Yes, you must link the button to a wizard and this wizard should return an
act_window like in
http://hg.tryton.org/modules/timesheet/file/6e00f7115b3d/work.py#l162

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpJqWmC0k06N.pgp
Description: PGP signature

Reply via email to