将三元补偿值写入CNC加工工单
This commit is contained in:
@@ -104,7 +104,11 @@ class ResMrpWorkOrder(models.Model):
|
|||||||
print("(%.2f,%.2f)" % (x, y))
|
print("(%.2f,%.2f)" % (x, y))
|
||||||
self.material_center_point = ("(%.2f,%.2f,%.2f)" % (x, y, z))
|
self.material_center_point = ("(%.2f,%.2f,%.2f)" % (x, y, z))
|
||||||
self.X_deviation_angle = jdz
|
self.X_deviation_angle = jdz
|
||||||
return self.material_center_point
|
# 将补偿值写入CNC加工工单
|
||||||
|
workorder = self.env['mrp.workorder'].browse(self.ids)
|
||||||
|
work = workorder.production_id.workorder_ids
|
||||||
|
work.compensation_value_x = eval(self.material_center_point)[0]
|
||||||
|
work.compensation_value_y = eval(self.material_center_point)[1]
|
||||||
|
|
||||||
def json_workorder_str(self, k, production, route):
|
def json_workorder_str(self, k, production, route):
|
||||||
workorders_values_str = [0, '', {
|
workorders_values_str = [0, '', {
|
||||||
|
|||||||
Reference in New Issue
Block a user