工单列表增加模型ID搜索

This commit is contained in:
胡尧
2025-04-21 11:25:37 +08:00
parent acd8d9c758
commit 7849ce6342
3 changed files with 5 additions and 0 deletions

View File

@@ -1814,6 +1814,8 @@ class MrpProduction(models.Model):
except Exception as e:
logging.info('update_programming_state error:%s' % e)
raise UserError("更新编程单状态失败,请联系管理员")
model_id = fields.Char('模型id', related='product_id.model_id')
# 编程记录

View File

@@ -1774,6 +1774,8 @@ class ResMrpWorkOrder(models.Model):
orderby=orderby,
lazy=lazy
)
model_id = fields.Char('模型id', related='production_id.model_id')
class CNCprocessing(models.Model):

View File

@@ -676,6 +676,7 @@
<field name="arch" type="xml">
<field name="product_id" position="after">
<field name="part_number" string="成品零件图号"/>
<field name="model_id" string="模型id"/>
</field>
<xpath expr="//filter[@name='progress']" position="after">
<filter string="待检测" name="state" domain="[('state','=','to be detected')]"/>