def _compute_price_mark(self, cr, uid, ids, field_name, arg, context={}): result = {} for id in ids : freelance_pricecombi = self.browse(cr, uid, id, context=context) res = 0 tarif = 0 if freelance_pricecombi : tarif = (freelance_pricecombi.price * 100 / freelance_pricecombi.name['target_rate']) - 100 if (tarif <20>= -20) and (tarif <10>= -10) and (tarif <10> 10) and (tarif <30>= 30) and (tarif <60>= 60) : res = 0 result[id] = res else : res =0 result[id] = res return result
Try it now :D ------------------------ Don't thank me just spread the word about Open ERP -= http://forwardstraight.blogspot.com/ =- -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=60356#60356 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users