diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py
index 4b9371c2..16ae67f3 100644
--- a/sf_manufacturing/models/mrp_workorder.py
+++ b/sf_manufacturing/models/mrp_workorder.py
@@ -1093,6 +1093,16 @@ class ResMrpWorkOrder(models.Model):
# logging.info('button_send_program_again error:%s' % e)
# raise UserError("重新下发nc程序失败,请联系管理员")
+ def print_method(self):
+ """
+ 解除装夹处调用关联制造订单的关联序列号的打印方法
+ """
+ if self.production_id:
+ if self.production_id.lot_producing_id:
+ self.production_id.lot_producing_id.print_single_method()
+ else:
+ raise UserError("无关联制造订单或关联序列号,无法打印。请检查!")
+
class CNCprocessing(models.Model):
_name = 'sf.cnc.processing'
diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py
index 9234060f..c6c8ec6b 100644
--- a/sf_manufacturing/models/stock.py
+++ b/sf_manufacturing/models/stock.py
@@ -404,6 +404,7 @@ class ProductionLot(models.Model):
def print_single_method(self):
+ print('self.name========== %s' % self.name)
self.ensure_one()
qr_code_data = self.qr_code_image
if not qr_code_data:
diff --git a/sf_manufacturing/views/mrp_workorder_view.xml b/sf_manufacturing/views/mrp_workorder_view.xml
index dc5b4a56..70cf0448 100644
--- a/sf_manufacturing/views/mrp_workorder_view.xml
+++ b/sf_manufacturing/views/mrp_workorder_view.xml
@@ -165,6 +165,8 @@
+