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 + + +