12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?xml version='1.0' encoding='UTF-8'?>
- <openerp>
- <data>
- <record id="act_paid" model="workflow.activity">
- <field name="wkf_id" ref="hr_payroll.wkf"/>
- <field name="name">paid</field>
- <field name="action">write({'state': 'paid'})</field>
- <field name="kind">function</field>
- <field name="signal_send">subflow.paid</field>
- </record>
-
- <record model="workflow.activity" id="act_open_test">
- <field name="wkf_id" ref="hr_payroll.wkf"/>
- <field name="name">re-open</field>
- <field name="action">write({'state':'done'})</field>
- <field name="kind">function</field>
- </record>
-
- <record id="workflow_transition_act_done_to_act_paid" model="workflow.transition">
- <field name="act_from" ref="hr_payroll.act_done"/>
- <field name="act_to" ref="act_paid"/>
- <field name="trigger_model">account.move.line</field>
- <field name="trigger_expr_id">move_line_id_payment_get()</field>
- <field name="condition">reconciled</field>
- </record>
-
- <record id="workflow_transition_act_paid_to_act_copen_test" model="workflow.transition">
- <field name="act_from" ref="act_paid"/>
- <field name="act_to" ref="act_open_test"/>
- <field name="signal"/>
- <field name="condition">not reconciled</field>
- </record>
-
- <record id="workflow_transition_open_test_to_paid" model="workflow.transition">
- <field name="act_from" ref="act_open_test"/>
- <field name="act_to" ref="act_paid"/>
- <field name="trigger_model">account.move.line</field>
- <field name="trigger_expr_id">move_line_id_payment_get()</field>
- <field name="condition">reconciled</field>
- </record>
-
- <record id="workflow_transition_act_paid_to_act_cancel" model="workflow.transition">
- <field name="signal">cancel_sheet</field>
- <field name="act_from" ref="act_open_test"/>
- <field name="act_to" ref="hr_payroll.act_cancel"/>
- <field name="condition">True</field>
- </record>
- </data>
- </openerp>
|