diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index c80bb9b3c62..16e09a6a840 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -777,7 +777,8 @@ class account_voucher(osv.osv): 'state': 'posted', 'number': name, }) - move_pool.post(cr, uid, [move_id], context={}) + if inv.journal_id.entry_posted: + move_pool.post(cr, uid, [move_id], context={}) for rec_ids in rec_list_ids: if len(rec_ids) >= 2: move_line_pool.reconcile_partial(cr, uid, rec_ids)