On 22/08/13 11:54 +0200, Sergi Almacellas Abellana wrote:
> Al 21/08/13 22:15, En/na Cédric Krier ha escrit:
> > n 21/08/13 21:23 +0200, Sergi Almacellas Abellana wrote:
> >>> Hi devs,
> >>> 
> >>> It's possible to execute a client action from a button?
> >>> 
> >>> I want to execute the button code and when finished call the
> >>> new action or the duplicate action on client side.
> > You can use the button_action decorator:
> > 
> > http://doc.tryton.org/2.8/trytond/doc/ref/models/models.html?highlight=modelview.button#trytond.model.ModelView.button_action
> 
> With
> > 
> this method I can reference an action form the ir.action model.
> But how to call the new action on a specific module. I can not see any
> action referring to new record.
> 
> Whay I mean is something like:
> 
> @ModelView.button_action('timesheet_line.new')
> 
> or
> 
> @ModelView.button_action('timesheet_line.duplicate')
> 
> Is this possible?

Not for now.

-- 
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: pgpX5m56CkCEW.pgp
Description: PGP signature

Reply via email to