El 01/04/14 10:37, dineshkumar ha escrit:
hi,

I am developing the pharmacy module for the hospital management system.. I created the buttons such as draft,approved and pay.. if I click on the draft button,then The data will be showed in the draft state. if I click on the approved button, then the data will be moved into the approved state.

          what is the solution??
Use the Workflow.transition decorator to decorate your button function. See:

http://doc.tryton.org/3.0/trytond/doc/ref/models/models.html?highlight=workflow#trytond.model.Workflow.transition


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

Reply via email to