1.注释mrp_workcenter.xml文件和res.config添加不要的字段:lost_agent_id

2.制造订单新增“重新编程次数”字段,新增更新程序方法及对应的接口,优化返工且编程中的制造订单定时获取Cloud编程单状态的方法
3.优化返工向导页面及新增“重复编程次数”和“编程状态”字段
This commit is contained in:
jinling.yang
2024-07-11 17:37:35 +08:00
parent 9aca786522
commit 0fef714d61
6 changed files with 121 additions and 16 deletions

View File

@@ -7,9 +7,9 @@
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='do_unreserve']" position="after">
<!-- <button name="do_unreserve" type="object" string="更新程序"/>-->
</xpath>
<!-- <xpath expr="//button[@name='do_unreserve']" position="after">-->
<!-- <button name="do_update_program" type="object" string="更新程序"/>-->
<!-- </xpath>-->
<xpath expr="//field[@name='product_id']" position="replace"/>
<xpath expr="//field[@name='product_qty']" position="replace"/>
<xpath expr="//field[@name='product_uom_id']" position="replace"/>
@@ -119,8 +119,6 @@
<button name="button_scrap" invisible="1"/>
<button name="button_rework" string="返工" type="object" groups="sf_base.group_sf_mrp_user"/>
<button name="button_scrap_new" string="报废" type="object" groups="sf_base.group_sf_mrp_user"/>
<button name="button_update_program" string="更新程序" type="object"
groups="sf_base.group_sf_mrp_user"/>
</xpath>
<xpath expr="(//header//button[@name='button_mark_done'])[3]" position="replace">
<button name="button_mark_done" attrs="{'invisible': [