Good morning, I am currently playing with workflows in OpenERP. While making tests, I discovered that the function declared on an activity is called many time after one click on the associated button. And each time I reload the module, the function is call one time more.
So I need to understand more about the workflows in Tiny. So what is the aim of the table wkf_instance ? Does it store only theinstances of workflows that hvae not been completed ? So what are the aims of the tables wkf_trigger and wkf_workitem ? In the module hr_holidays, the function set_to_draft() contains the following 2 lines : wf_service = netsvc.LocalService("workflow") wf_service.trg_create(uid, 'hr.holidays', ids[0], cr) What do these 2 lines do ? Why this is the only function to call these lines ? Finally, what is consequence to set an activity with the attributes flow_stop=True and kind=stopall. Can these attributes be a solution to my problem ? Please help, Marc. ------------------------ Coordonateur de projets Révolution Linux Inc. _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
