修改程序单二维码下方文字
This commit is contained in:
@@ -1360,9 +1360,9 @@ class Sf_Dashboard_Connect(http.Controller):
|
|||||||
if result[0]:
|
if result[0]:
|
||||||
if float(result[0]) >= 28800:
|
if float(result[0]) >= 28800:
|
||||||
continue
|
continue
|
||||||
alarm_last_24_time = float(result[0])
|
alarm_last_24_time += float(result[0])
|
||||||
else:
|
else:
|
||||||
alarm_last_24_time = 0.0
|
alarm_last_24_time += 0.0
|
||||||
|
|
||||||
alarm_all_nums = []
|
alarm_all_nums = []
|
||||||
with conn.cursor() as cur:
|
with conn.cursor() as cur:
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class Sf_Mrs_Connect(http.Controller, MultiInheritController):
|
|||||||
logging.info('panel_file_path:%s' % panel_file_path)
|
logging.info('panel_file_path:%s' % panel_file_path)
|
||||||
|
|
||||||
# 向编程单中添加二维码
|
# 向编程单中添加二维码
|
||||||
request.env['printing.utils'].add_qr_code_to_pdf(panel_file_path, model_id, "扫码获取工单")
|
request.env['printing.utils'].add_qr_code_to_pdf(panel_file_path, model_id, "模型ID:%s" % model_id)
|
||||||
cnc_workorder.write({'cnc_worksheet': base64.b64encode(open(panel_file_path, 'rb').read())})
|
cnc_workorder.write({'cnc_worksheet': base64.b64encode(open(panel_file_path, 'rb').read())})
|
||||||
pre_workorder = productions.workorder_ids.filtered(
|
pre_workorder = productions.workorder_ids.filtered(
|
||||||
lambda ap: ap.routing_type in ['装夹预调', '人工线下加工'] and ap.state not in ['done', 'rework'
|
lambda ap: ap.routing_type in ['装夹预调', '人工线下加工'] and ap.state not in ['done', 'rework'
|
||||||
|
|||||||
Reference in New Issue
Block a user