Accept Merge Request #2021: (feature/6763 -> develop)

Merge Request: 工单列表增加模型ID搜索

Created By: @胡尧
Accepted By: @胡尧
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/2021?initial=true
This commit is contained in:
胡尧
2025-04-21 11:26:29 +08:00
committed by Coding
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')]"/>