please When I click on any button(draft), how to get the datas in the form 
and save it in the draft state by using button function...
I am in new to write the button function... what is the solution??
 

On Tuesday, April 1, 2014 2:53:12 PM UTC+5:30, Sergi Almacellas Abellana 
wrote:
>
> 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