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:
3bf57cb
)
[FIX] account_voucher: it is authorized to enter invoice with negative amount, theref...
author
Denis Ledoux
<dle@openerp.com>
Wed, 2 Apr 2014 08:37:13 +0000
(10:37 +0200)
committer
Denis Ledoux
<dle@openerp.com>
Wed, 2 Apr 2014 08:37:13 +0000
(10:37 +0200)
bzr revid: dle@openerp.com-
20140402083713
-tayk4r76bmrp9luf
addons/account_voucher/account_voucher.py
patch
|
blob
|
history
diff --git
a/addons/account_voucher/account_voucher.py
b/addons/account_voucher/account_voucher.py
index
ff4200a
..
63c8ac5
100644
(file)
--- a/
addons/account_voucher/account_voucher.py
+++ b/
addons/account_voucher/account_voucher.py
@@
-1683,7
+1683,7
@@
class account_bank_statement_line(osv.osv):
def _check_amount(self, cr, uid, ids, context=None):
for obj in self.browse(cr, uid, ids, context=context):
if obj.voucher_id:
- diff = abs(obj.amount) - obj.voucher_id.amount
+ diff = abs(obj.amount) - abs(obj.voucher_id.amount)
if not self.pool.get('res.currency').is_zero(cr, uid, obj.statement_id.currency, diff):
return False
return True