res_partner.py 403 B

12345678910
  1. # -*- coding: utf-8 -*-
  2. from openerp import fields, models
  3. class res_partner(models.Model):
  4. _inherit = 'res.partner'
  5. all_opportunity_ids = fields.One2many( 'crm.lead', 'partner_id', 'Leads and Opportunities')
  6. id_pos_order = fields.One2many( 'pos.order', 'partner_id', 'Pos Order')
  7. product_stock_line = fields.One2many( 'product.stock.line', "partner_id", string='product_stock_line')