-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

- -- 
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFd/VAAoJEGRfwiQCVal5Z2cIAKZBr4d449hol6KrWYVeEHAY
igczj/BZ3oXZcDHSW9DE8T51aGZ7wYXWSmWa+Ey5SW1xmTvgeEPCA9mlx+WUQb9l
d45P+Rv7cx1XNMwB9Qd1ksoXOeafE5XQ9POXkIdvem4H4TaICenFVoSKud6aHMjC
HEYA87MvlwPkDYXkcaCHOrsSFC9Kauq3ArHcc8z8TrQrNZvmoW6RrxsNLefO/12L
7ZWIeV8OyH3rmunlB+XF6BdexL4uZU0KRnfLpZVK2Z8ieVrjwz+8IzdIXKQiAwrP
H1EwZjp6nyYNNJr+ON7xvN1wv14GYqxVuzm5wTl1kXvlJTU3vzQgAA3t8Cbnx1E=
=DHf5
-----END PGP SIGNATURE-----

Reply via email to