还原注释代码

This commit is contained in:
jinling.yang
2024-09-19 08:45:50 +08:00
parent 190d6da217
commit 9dfe34ce9a
3 changed files with 3 additions and 3 deletions

View File

@@ -545,7 +545,7 @@ class ProductionLot(models.Model):
class StockPicking(models.Model):
_inherit = ['stock.picking']
_inherit = 'stock.picking'
surface_technics_parameters_id = fields.Many2one('sf.production.process.parameter', string="表面工艺可选参数")

View File

@@ -221,7 +221,7 @@
<xpath expr="//label[1]" position="before">
<field name='routing_type' readonly="1"/>
<field name='process_state' attrs='{"invisible": [("routing_type","!=","装夹预调")]}'/>
<field name="rfid_code" force_save="1" readonly="0" cache="True"
<field name="rfid_code" force_save="1" readonly="1" cache="True"
attrs="{'invisible': [('rfid_code_old', '!=', False)]}"/>
<field name="rfid_code_old" readonly="1" attrs="{'invisible': [('rfid_code_old', '=', False)]}"/>
</xpath>

View File

@@ -45,7 +45,7 @@ class Sf_Mrs_Connect(http.Controller):
if download_state is False:
res['status'] = -2
res['message'] = '编程单号为%s的CNC程序文件从FTP拉取失败' % (ret['programming_no'])
# return json.JSONEncoder().encode(res)
return json.JSONEncoder().encode(res)
for production in productions:
if not production.workorder_ids:
production.product_id.model_processing_panel = ret['processing_panel']