优化工件配送

This commit is contained in:
jinling.yang
2024-04-30 17:05:09 +08:00
parent b45ffcc0d2
commit 68d8c36755
6 changed files with 163 additions and 35 deletions

View File

@@ -34,7 +34,8 @@
<field name="arch" type="xml">
<tree editable="bottom">
<field name="name" required="1"/>
<field name="type" readonly="1"/>
<field name="type" readonly="1" string="任务类型"/>
<field name="route_type" string="类型"/>
<field name="start_site_id" required="1" options="{'no_create': True}" string="起点接驳站"/>
<field name="end_site_id" required="1" options="{'no_create': True}" string="终点接驳站"/>
<field name="destination_production_line_id" required="1" options="{'no_create': True}"/>

View File

@@ -626,7 +626,7 @@
<search string="工件配送">
<filter string="上产线" name="up" domain="[('type', '=', '上产线')]"/>
<filter string="下产线" name="down" domain="[('type', '=', '下产线' )]"/>
<field name="rfid_code" invisible="1"/>
<field name="rfid_code"/>
<field name="production_id"/>
<field name="feeder_station_start_id"/>
<field name="production_line_id"/>
@@ -649,7 +649,7 @@
<field name="search_view_id" ref="sf_workpiece_delivery_search"/>
<!-- <field name="context">{'search_default_on_up':1}</field>-->
<field name="view_mode">tree,search</field>
<field name="domain">[('type','in',['上产线','下产线'])]</field>
<field name="domain">[('type','in',['上产线','下产线']),('workorder_state','=','done')]</field>
</record>