I used a new method to solve my problem (but i would like know why i had this 
result).


class sale_order(osv.osv):
    _inherit = 'sale.order'
    
    def _get_color(self, cr, uid, context=None):
        obj = self.pool.get('product.color_door')
        ids = obj.search(cr, uid, [])
        res = obj.read(cr, uid, ids, ['color_door', 
'id'], context)
        res = [r['color_door'] for r in res]
        return res
    
    _columns = {
    'sale_color_door' : fields.selection(_get_color, 'Couleur 
Porte', required=True, help=""),
    }





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

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

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


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

Reply via email to