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:
7c91472
)
[FIX] account : error message when delete move line
author
Pinakin Nayi (OpenERP)
<pna@tinyerp.com>
Thu, 22 Nov 2012 06:14:46 +0000
(11:44 +0530)
committer
Pinakin Nayi (OpenERP)
<pna@tinyerp.com>
Thu, 22 Nov 2012 06:14:46 +0000
(11:44 +0530)
bzr revid: pna@tinyerp.com-
20121122061446
-f8g2wq2vw5hhikxu
addons/account/account.py
patch
|
blob
|
history
diff --git
a/addons/account/account.py
b/addons/account/account.py
index
46d6d17
..
63e9a78
100644
(file)
--- a/
addons/account/account.py
+++ b/
addons/account/account.py
@@
-1367,6
+1367,9
@@
class account_move(osv.osv):
def onchange_line_id(self, cr, uid, ids, line_ids, context=None):
balance = 0.0
+ for line_id in line_ids:
+ if line_id[0] == 2 :
+ return {}
line_ids = self.resolve_o2m_commands_to_record_dicts(cr, uid, 'line_id', line_ids, context=context)
for line in line_ids:
balance += (line['debit'] or 0.00)- (line['credit'] or 0.00)