I have tried your solution, but i am getting error. Below is my code

def name_get(self, cr, uid, ids, context={}):
        if not len(ids):
            return []
        reads = self.read(cr, uid, ids, 
['product_id'], context)
        res = []
        for record in reads:        
   
            if record['product_id']:
                name = 
record['product_id'][16]
            
res.append((record['id'], name))
        return res

    def _get_barcode_text(self, cr, uid, ids, prop, unknow_none, 
unknow_dict):
        res = self.name_get(cr, uid, ids)
        return dict(res) 


What should i do now?

------------------------
Sincerely,
Deven
www.4colordesign.com




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=47021#47021

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to