~ecommerce-addons-core-editors/e-commerce-addons/github-6.1

« back to all changes in this revision

Viewing changes to base_sale_multichannels/sale.py

  • Committer: Guewen Baconnier
  • Author(s): Daniel Stenlöv
  • Date: 2014-03-21 16:34:18 UTC
  • mfrom: (288.1.2)
  • Revision ID: git-v1:c499b3359e7c73819c9ca0425378c9c8e3c1bb8a
Improve readability of SQL statement

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
 
107
107
            # If product_m2mcategories module is installed search in main category
108
108
            # and extra categories. If not, only in main category
109
 
            cr.execute('select * from ir_module_module where name=%s and state=%s',
110
 
                                                            ('product_m2mcategories','installed'))
 
109
            cr.execute("select * from ir_module_module where name='product_m2mcategories' and state='installed'")
111
110
            if cr.fetchone():
112
111
                res[shop['id']] = self.pool.get("product.product").search(cr, uid, ['|',
113
112
                        ('categ_id', 'in', all_categories),('categ_ids', 'in', all_categories)])