odoo - display name of many2one field combination of 2 fields
问题 In my module i have the following many2one field: 'xx_insurance_type': fields.many2one('xx.insurance.type', string='Insurance') where xx.insurance.type is the following: class InsuranceType(osv.Model): _name='xx.insurance.type' _columns = { 'name' : fields.char(size=128, string = 'Name'), 'sale_ids': fields.one2many('sale.order', 'xx_insurance_type', string = 'Sale orders'), 'insurance_percentage' : fields.float('Insurance cost in %') } I know the many2one field takes the name field as its