上传NC文件
This commit is contained in:
@@ -4,7 +4,7 @@ import base64
|
||||
import logging
|
||||
import math
|
||||
|
||||
import qrcode
|
||||
|
||||
|
||||
from io import BytesIO
|
||||
from odoo import api, fields, models
|
||||
@@ -84,7 +84,7 @@ class MrpWorkOrder(models.Model):
|
||||
_inherit = 'mrp.workorder'
|
||||
_description = '工单'
|
||||
|
||||
cnc_id = fields.Many2one('ir.attachment', string='CNC程序')
|
||||
cnc_id = fields.Many2many('ir.attachment', 'cnc_attachment', string="cnc程序获取")
|
||||
tray_ids = fields.One2many('sf.tray', 'workorder_id', string='托盘')
|
||||
# def get_tray_info(self):
|
||||
# @api.onchange('X_axis', 'Y_axis', 'Z_axis')
|
||||
|
||||
Reference in New Issue
Block a user