There is a solution for that but you need some changes in sale module.
create a module that will inherit sale.order and add 
fields.many2one('res.company').
create a order.py file in report directory same as sale/report/order.py and 
change company in localcontext.

class order(report_sxw.rml_parse):
    def __init__(self, cr, uid, name, context):
        super(order, self).__init__(cr, uid, 
name, context)
        self.localcontext.update({
            'time': time,
            'company': function which will 
return browse record of res.company defined in sale order
        })

#   def your_function():
#       browse company and retunr

report_sxw.report_sxw('report.sale.order','sale.order','addons/sale/report/order.rml',parser=order)

now your report will print logo and header footer of defined company.

------------------------
OpenERP=Easier, Adaptable, Affordable, Modular




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=38817#38817

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to