-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Al 22/08/13 16:53, En/na Cédric Krier ha escrit: > 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.
So I opened an issue[1] for this [1] https://bugs.tryton.org/issue3343 - -- 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/ iQEcBAEBAgAGBQJSFil2AAoJEGRfwiQCVal55TUH/24cnTI8Qko5dwVAV2LtZXu0 wkEzKSwxqngVbhqJPTilhM8WfFLIfkLwgAht/jgH+l7dFUIioTk8VyPYTIWEQxca lQnmyac4iEpbo6M9TzADlCrGxtg8KMxW6vuOu0Q0dRVjc7cM29dDHOP3VRGUiilf xBboSeHdkTRF+f9eFrPVW4WxjS+YQRbMQJQu9yAasPObKPs9VhhJJ9G9/r8TnIf6 lMm+whYvHCk3DujX1f7/lSpjl9jTIjh2aw1C4C2ETm37IF9hNDgjDEp4JimkOoGv RVH0rTr+TuaHxQkDY8hRMlvczWxRvSBX7gCFeEQJwDg4S0qhV01UO0KFqPfcfl4= =izRE -----END PGP SIGNATURE-----
