projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33001ec
)
[FIX]account: in wizard of refund, replace type(line.reconcile_id) != osv.orm.browse_...
author
Denis Ledoux
<dle@openerp.com>
Wed, 28 Aug 2013 15:58:15 +0000
(17:58 +0200)
committer
Denis Ledoux
<dle@openerp.com>
Wed, 28 Aug 2013 15:58:15 +0000
(17:58 +0200)
bzr revid: dle@openerp.com-
20130828155815
-0i8uoez4guh0i85x
addons/account/wizard/account_invoice_refund.py
patch
|
blob
|
history
diff --git
a/addons/account/wizard/account_invoice_refund.py
b/addons/account/wizard/account_invoice_refund.py
index
d62fd33
..
37ab5f1
100644
(file)
--- a/
addons/account/wizard/account_invoice_refund.py
+++ b/
addons/account/wizard/account_invoice_refund.py
@@
-159,8
+159,8
@@
class account_invoice_refund(osv.osv_memory):
for line in movelines:
if line.account_id.id == inv.account_id.id:
to_reconcile_ids[line.account_id.id] = [line.id]
- if type(line.reconcile_id) != osv.orm.browse_null:
- reconcile_obj.unlink(cr, uid, line.reconcile_id.id)
+ if line.reconcile_id:
+ line.reconcile_id.unlink()
wf_service.trg_validate(uid, 'account.invoice', \
refund.id, 'invoice_open', cr)
refund = inv_obj.browse(cr, uid, refund_id[0], context=context)