python 2.7 - How to include multiple models in openerp report section -


i have created new module in openerp.now want create report .i have done reporting.my module concept user can create consumption chart, contain chart name ,date , project name .each chart contain muliple products , consumpion quantity.consumption chart details in 1 table , product details related consumption chart in table. want show report consumption chart name , product details.i have prepared report , when take pdf can see consumption chart details how can include product details. question how include multiple models in report section.below given current code.

class order(report_sxw.rml_parse):     def __init__(self, cr, uid, name, context=none):         super(order, self).__init__(cr, uid, name, context=context)         self.localcontext.update({             'time': time,         })   report_sxw.report_sxw('report.mat_mgmt.collection_docket', 'mat.mgmt', 'mat_magmt/report/collection_docket.rml', parser=order, header="external") 

you can create object model self.pool.get('product.product') , can browse record. if have relation model/object can directly access them. there lots of examples in addons.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -