#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')
インストール時のモデルのイメージ:
新しい見積もりを追加する際のエラー: