35 lines
792 B
Python
35 lines
792 B
Python
from odoo import models,fields
|
|
from odoo.exceptions import ValidationError
|
|
|
|
|
|
class bfmOrderLine(models.Model):
|
|
_name = 'sf.bfm.order.line'
|
|
_description = '业务平台订单'
|
|
|
|
model_file = fields.Binary('模型文件', attachment=False)
|
|
model_name = fields.char('模型名称')
|
|
type = fields.Many2one('mrs.materials.model', '型号')
|
|
surface_technics = fields.Many2one('mrs.production.process', string='表面工艺')
|
|
# technological_parameter = fields.Many2one('',string='工艺参数')
|
|
unit_price = fields.Float('单价')
|
|
amount = fields.Integer('数量')
|
|
money = fields.Float('金额')
|
|
|
|
|
|
class sale(models.Model):
|
|
_inherit = 'sale.order'
|
|
|
|
bfm_process_order_ids = fields.Many2one('sf.bfm.order.line', string='业务平台订单')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|