diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2010-09-08 16:06:30 +0530 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2010-09-08 16:06:30 +0530 |
| commit | 3efbdcbd09af33152a4eb96d381dac29dccc26cb (patch) | |
| tree | a7a12656c891881782218b5fe3352ed84f100683 | |
| parent | c3981b6983b3a120869a163d2278b003e377b030 (diff) | |
[FIX]: fix a problem for defult get in account_move_line
bzr revid: mga@tinyerp.com-20100908103630-0d09s3m6m67myp5f
| -rw-r--r-- | addons/account/account_move_line.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 04578cdd92b..80487e9518d 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -159,7 +159,10 @@ class account_move_line(osv.osv): return context def _default_get(self, cr, uid, fields, context={}): - + + if not context.get('journal_id', False) and context.get('search_default_journal_id', False): + context['journal_id'] = context.get('search_default_journal_id') + period_obj = self.pool.get('account.period') context = self.convert_to_period(cr, uid, context) |
