Tags


 from openerp.osv import fields, osv

class crm_lead(osv.osv):
    _inherit="crm.lead"
    _columns ={
        'products_ids':fields.one2many('crm.products.line','products_id',string="Products"),
    }


class crm_products_line(osv.osv):
    _name="crm.products.line"
    _columns ={
        'products_id':fields.many2one('crm.lead',string="Reference"),
        'product': fields.many2one('product.product',string='Products'),
    }
Advertisements