From 3fbb8a0a42c5ad1606aea45523611f414b1d3c28 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Wed, 26 May 2010 23:29:24 +0530 Subject: [PATCH] [ADD]: migrate addons from trunk extra addons to addons bzr revid: mga@tinyerp.com-20100526175924-rmj01hysau7abxv3 --- .../account_voucher_workflow.xml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100755 addons/account_voucher/account_voucher_workflow.xml diff --git a/addons/account_voucher/account_voucher_workflow.xml b/addons/account_voucher/account_voucher_workflow.xml new file mode 100755 index 00000000000..b34b84a5d24 --- /dev/null +++ b/addons/account_voucher/account_voucher_workflow.xml @@ -0,0 +1,80 @@ + + + + + account.voucher.basic + account.voucher + True + + + + + True + draft + write({'state':'draft'}) + function + + + + + proforma + write({'state':'proforma'}) + open_voucher() + function + + + + + done + write({'state':'posted'}) + proforma_voucher() + True + function + + + + + recheck + write({'state':'recheck'}) + function + + + + + + open_voucher + + + + + + proforma_voucher + amount <= journal_id.max_amount + + + + + + proforma_voucher + amount > journal_id.max_amount + + + + + + recheck_voucher + + + + + + action_cancel_draft + + + + + + action_cancel_draft + + +