[FIX]:account:all journals should be in the m2m field by default, the user can delete them after
bzr revid: apa@tinyerp.com-20121008131410-he03hbskohtplayl
This commit is contained in:
@@ -63,8 +63,9 @@ class account_analytic_journal_report(osv.osv_memory):
|
||||
if context is None:
|
||||
context = {}
|
||||
res = super(account_analytic_journal_report, self).default_get(cr, uid, fields, context=context)
|
||||
journal = self.pool.get('account.analytic.journal').search(cr, uid, [], context=context)
|
||||
if 'analytic_account_journal_id' in fields:
|
||||
res.update({'analytic_account_journal_id': context.get('active_ids',[])})
|
||||
res.update({'analytic_account_journal_id': journal})
|
||||
return res
|
||||
|
||||
account_analytic_journal_report()
|
||||
|
||||
Reference in New Issue
Block a user