← Back to team overview

openerp-community team mailing list archive

object has no attribute 'cr'

 

I tried this:

   pool = pooler.get_pool(self.cr.dbname)
   
or this:

    
   self.cr.execute('UPDATE ir_act_report_xml SET report_type=%S WHERE 
report_name="product.pricelist"'%output_format )


and I get this error:    
AttributeError: 'product.price_list' object has no attribute 'cr'


what am I doing wrong ?


thanks!