# _*_ coding: utf-8 _*_
from odoo import models, fields, api

class SaleOrder(models.Model):
    _inherit = 'sale.order'



class Margin(models.Model):
    _name = 'margin'

    order_id = fields.Many2one(comodel_name='sale.order', string='銷售訂單編號')
    seminar_id = fields.Many2one(comodel_name='seminar', string='說明會梯次')
    seminar_date = fields.Datetime(string='說明會時間', related='seminar_id.date')
