Hi, On 2018-06-26 10:42, Josias Pérez wrote: > I have a custom module with transitions controlled by buttons. In the last > transition I need that the active record is printed. I have already created a > report and it appear in the actions menu, but I want to print it with the > button.
You must use the decorator button_action: http://doc.tryton.org/4.8/trytond/doc/ref/models/models.html#trytond.model.ModelView.button_action This will make the client launch the referenced action. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/20180627064209.GH30646%40kei.