#model.py
# -*- coding: utf-8 -*-
from openerp import models, fields
class fleet_vehicle_direction(models.Model):
_name = 'fleet.vehicle.direction'
name = fields.Char(related='vehicle_id.name', string='vehicle name', store=True)
vehicle_id = fields.Many2one('fleet.vehicle', 'select vehicle name', required=True, help='select vehicle name')
Quotations_id = fields.One2many('sale.order', 'name', 'Quotation', required=True,help='select Quotation name')
安装时的模型图像:
添加新报价时出错: