summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2011-11-11 15:14:18 +0100
committerFabien Pinckaers <fp@tinyerp.com>2011-11-11 15:14:18 +0100
commitbbf5c7002e0812fe1a0ff3d13f91bd2254cb9abd (patch)
tree7570e86c0ba3dbd8a06514049fe0a83d4e4e0bd7 /addons
parent5e9e7cc096160c3d81396f83bb9b25e90849c3b6 (diff)
parent3f8ae50046d8b2709ef381ac438e7582e809a63e (diff)
merge: default value for debit/credit
bzr revid: fp@tinyerp.com-20111111141418-gngwck2pkdk0y8pd
Diffstat (limited to 'addons')
-rw-r--r--addons/account/account_move_line.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index 13803d3ff79..dd749ba9820 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -559,6 +559,8 @@ class account_move_line(osv.osv):
'state': 'draft',
'currency_id': _get_currency,
'journal_id': lambda self, cr, uid, c: c.get('journal_id', False),
+ 'credit': 0.0,
+ 'debit': 0.0,
'account_id': lambda self, cr, uid, c: c.get('account_id', False),
'period_id': lambda self, cr, uid, c: c.get('period_id', False),
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.move.line', context=c)