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:
c8c9d4f
)
[REF] account: minor change made during code review
author
qdp-odoo
<qdp@openerp.com>
Wed, 17 Sep 2014 09:18:16 +0000
(11:18 +0200)
committer
qdp-odoo
<qdp@openerp.com>
Wed, 17 Sep 2014 09:18:16 +0000
(11:18 +0200)
addons/account/account_bank_statement.py
patch
|
blob
|
history
diff --git
a/addons/account/account_bank_statement.py
b/addons/account/account_bank_statement.py
index
93bc9b7
..
86c02ca
100644
(file)
--- a/
addons/account/account_bank_statement.py
+++ b/
addons/account/account_bank_statement.py
@@
-418,7
+418,7
@@
class account_bank_statement(osv.osv):
class account_bank_statement_line(osv.osv):
def create(self, cr, uid, vals, context=None):
- if vals.get('amount_currency', 0) != 0 and vals.get('amount', 0) == 0:
+ if vals.get('amount_currency', 0) and not vals.get('amount', 0):
raise osv.except_osv(_('Error!'), _('If "Amount Currency" is specified, then "Amount" must be as well.'))
return super(account_bank_statement_line, self).create(cr, uid, vals, context=context)