title: 'dict' object has no attribute 'execute'
body: <p>I have python code (odoo)</p>
  
  <pre><code>    @api.one
  def mps_value(self,cr):
      fc = self.forecast_id
      cr.execute("""SELECT SUM(sol.product_uom_qty) 
                  FROM sale_order_line AS sol , sale_order AS s , forecastmps_forecast AS fc , forecastmps_period AS pd 
                  WHERE fc.id = %s AND sol.product_id = fc.product_id AND fc.period_id = pd.id AND pd.start_date &lt;= sol.create_date 
                  AND sol.create_date &lt;= pd.end_date AND s.state = \'done\' AND sol.order_id = s.id""", (fc,))
      ret = cr.fetchone()[0]
      return ret
  </code></pre>
  
  <p>I run it and this is error</p>
  
  <pre><code>AttributeError: 'dict' object has no attribute 'execute'
  </code></pre>
  
  <p>How can i fix it . Thank you .</p>