I have to program a file reclamation_workflow.xml and it doesn't work can you help me please
this the file code
reclamation_workflow.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="reclamation_wkflow" model="workflow">
<field name="name">reclamation.basic</field>
<field name="osv">reclamation.workflow.model</field>
<field name="on_create">True</field>
</record>
<!-- Activity -->
<record id="act_draft" model="workflow.activity">
<field name="wkf_id" ref="reclamation_wkflow"/>
<field name="flow_start">True</field>
<field name="name">draft</field>
<field name="Kind">write({'state':'draft'})</field>
</record>
<record id="act_encours" model="workflow.activity">
<field name="wkf_id" ref="reclamation_wkflow"/>
<field name="name">en_cours</field>
<field name="kind">function</field>
<field name="action">write({'state':'en_cours'})</field>
</record>
<record id="act_trait" model="workflow.activity">
<field name="wkf_id" ref="reclamation_wkflow"/>
<field name="flow_stop">True</field>
<field name="name">trait</field>
<field name="kind">function</field>
<field name="action">write({'state':'cloture_traite'})</field>
</record>
<record id="act_nontrait" model="workflow.activity">
<field name="wkf_id" ref="reclamation_wkflow"/>
<field name="flow_stop">True</field>
<field name="name">annuler</field>
<field name="kind">function</field>
<field name="action">write({'state':'cloture_nontraite'})</field>
</record>
<!-- Create transitions -->
<!-- From Draft to en_cous -->
<record id="trans_draft_encours" model="workflow.transition">
<field name="act_from" ref="act_draft"/>
<field name="act_to" ref="act_encours"/>
<field name="signal">action_encours</field>
</record>
</data>
</openerp>
// button on reclamation_view.xml
<!-- From draft to en_cours-->
<button string="Send to responsible" type="object" name="action_encour"
states="draft" class="oe_highlight"/>
/// the function action_encours on reclamation.py
def action_encour(self, cr, uid, ids, context=None):
return self.write(cr, id, ids, {'state':'en_cours'})