summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMustufa Rangwala <mra@mra-laptop>2010-06-24 18:35:54 +0530
committerMustufa Rangwala <mra@mra-laptop>2010-06-24 18:35:54 +0530
commit1aa2d4c59cd3d59778b4c87c611478537217e998 (patch)
tree0e3031c10e8eeedd6f7f356c16a323136352013a /addons
parentaec02b2a539c3a0503928744cd3cb96290682e5b (diff)
[REF] just remove _get_comapny default from common report wizard
bzr revid: mra@mra-laptop-20100624130554-a5m9h109dq4eosbv
Diffstat (limited to 'addons')
-rw-r--r--addons/account/wizard/account_common_report.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/addons/account/wizard/account_common_report.py b/addons/account/wizard/account_common_report.py
index d38adf1cbcd..d87956b77a9 100644
--- a/addons/account/wizard/account_common_report.py
+++ b/addons/account/wizard/account_common_report.py
@@ -36,7 +36,7 @@ class account_common_report(osv.osv_memory):
'period_from': fields.many2one('account.period', 'Start period'),
'period_to': fields.many2one('account.period', 'End period'),
- #not used. Do we really need it? 'period_ids': fields.many2many('account.period', 'ledger_period_rel', 'ledger_id', 'period_id', 'Periods'),
+ #not used. Do we really need it? 'period_ids': fields.many2many('account.period', 'ledger_period_rel', 'ledger_id', 'period_id', 'Periods'),
'journal_ids': fields.many2many('account.journal', 'account_common_journal_rel', 'account_id', 'journal_id', 'Journals', required=True),
@@ -53,16 +53,16 @@ class account_common_report(osv.osv_memory):
#'company_id': fields.many2one('res.company', 'Company', required=True),
}
- def _get_company(self, cr, uid, context=None):
- user_obj = self.pool.get('res.users')
- company_obj = self.pool.get('res.company')
- if context is None:
- context = {}
- user = user_obj.browse(cr, uid, uid, context=context)
- if user.company_id:
- return user.company_id.id
- else:
- return company_obj.search(cr, uid, [('parent_id', '=', False)])[0]
+# def _get_company(self, cr, uid, context=None):
+# user_obj = self.pool.get('res.users')
+# company_obj = self.pool.get('res.company')
+# if context is None:
+# context = {}
+# user = user_obj.browse(cr, uid, uid, context=context)
+# if user.company_id:
+# return user.company_id.id
+# else:
+# return company_obj.search(cr, uid, [('parent_id', '=', False)])[0]
def _get_account(self, cr, uid, context=None):
tmp = self.pool.get('account.account').search(cr, uid, [], limit=1 )