[FIX] hr_expense: removing the automatic validation of the supplier account.voucher when the hr.expense is set to 'done'

bzr revid: qdp-launchpad@openerp.com-20130107112933-tkuqrbhdxi4hhjsv
This commit is contained in:
Quentin (OpenERP) 2013-01-07 12:29:33 +01:00
parent 77ebf01b1a
commit d79a4b1028
1 changed files with 0 additions and 1 deletions

View File

@ -212,7 +212,6 @@ class hr_expense_expense(osv.osv):
if analytic_journal_ids:
account_journal.write(cr, uid, [journal.id], {'analytic_journal_id': analytic_journal_ids[0]}, context=context)
voucher_id = voucher_obj.create(cr, uid, voucher, context=context)
wkf_service.trg_validate(uid, 'account.voucher', voucher_id, 'proforma_voucher', cr)
self.write(cr, uid, [exp.id], {'voucher_id': voucher_id, 'state': 'done'}, context=context)
return True