~openerp-dev/openobject-addons/acct_prj_hr_logs

« back to all changes in this revision

Viewing changes to product/product.py

  • Committer: pap(openerp)
  • Date: 2010-06-21 05:19:03 UTC
  • mfrom: (3638.1.26 trunk-dev-addons3)
  • Revision ID: pap@tinyerp.co.in-20100621051903-lm0gpjuehqakpntg
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
    def _check_recursion(self, cr, uid, ids):
221
221
        level = 100
222
222
        while len(ids):
223
 
            cr.execute('select distinct parent_id from product_category where id =ANY(%s)',(ids,))
 
223
            cr.execute('select distinct parent_id from product_category where id IN %s',(tuple(ids),))
224
224
            ids = filter(None, map(lambda x:x[0], cr.fetchall()))
225
225
            if not level:
226
226
                return False
458
458
        'packaging' : fields.one2many('product.packaging', 'product_id', 'Logistical Units', help="Gives the different ways to package the same product. This has no impact on the picking order and is mainly used if you use the EDI module."),
459
459
        'price_extra': fields.float('Variant Price Extra', digits_compute=dp.get_precision('Sale Price')),
460
460
        'price_margin': fields.float('Variant Price Margin', digits_compute=dp.get_precision('Sale Price')),
461
 
        'pricelist_id': fields.dummy(string='Pricelist',relation='product.pricelist', type='many2one'),
 
461
        'pricelist_id': fields.dummy(string='Pricelist', relation='product.pricelist', type='many2one'),
462
462
    }
463
463
 
464
464
    def onchange_uom(self, cursor, user, ids, uom_id,uom_po_id):