[MERGE] removal of unused method
bzr revid: qdp-launchpad@openerp.com-20110704100209-rbq16z5lmejlfdxr
This commit is contained in:
commit
cbf4a10281
|
@ -182,26 +182,6 @@ class res_company(osv.osv):
|
||||||
ids = self.search(cr, uid, [('parent_id','child_of',[company])])
|
ids = self.search(cr, uid, [('parent_id','child_of',[company])])
|
||||||
return ids
|
return ids
|
||||||
|
|
||||||
# For Report
|
|
||||||
|
|
||||||
def createReport(cr, uid, report, ids, name=False):
|
|
||||||
files = []
|
|
||||||
for id in ids:
|
|
||||||
try:
|
|
||||||
service = netsvc.LocalService(report)
|
|
||||||
(result, format) = service.create(cr, uid, [id], {}, {})
|
|
||||||
if not name:
|
|
||||||
report_file = '/tmp/reports'+ str(id) + '.pdf'
|
|
||||||
else:
|
|
||||||
report_file = name
|
|
||||||
fp = open(report_file,'wb+')
|
|
||||||
fp.write(result);
|
|
||||||
fp.close();
|
|
||||||
files += [report_file]
|
|
||||||
except Exception,e:
|
|
||||||
continue
|
|
||||||
return files
|
|
||||||
|
|
||||||
def _get_partner_hierarchy(self, cr, uid, company_id, context={}):
|
def _get_partner_hierarchy(self, cr, uid, company_id, context={}):
|
||||||
if company_id:
|
if company_id:
|
||||||
parent_id = self.browse(cr, uid, company_id)['parent_id']
|
parent_id = self.browse(cr, uid, company_id)['parent_id']
|
||||||
|
|
Loading…
Reference in New Issue