924 lines
59 KiB
XML
924 lines
59 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record model="ir.ui.view" id="view_mrp_production_workorder_tree_editable_inherit_sf">
|
|
<field name="name">mrp.production.workorder.tree.editable.inherit.sf</field>
|
|
<field name="model">mrp.workorder</field>
|
|
<field name="inherit_id" ref="mrp.mrp_production_workorder_tree_editable_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="name" position="replace">
|
|
<field name="is_subcontract" invisible="1"/>
|
|
<field name="name" decoration-success="is_subcontract" decoration-bf="is_subcontract"/>
|
|
</field>
|
|
<field name="name" position="before">
|
|
<field name="sequence" string="序号"/>
|
|
<field name='user_permissions' invisible="1"/>
|
|
</field>
|
|
<field name="name" position="after">
|
|
<field name="processing_panel"/>
|
|
</field>
|
|
<field name="state" position="after">
|
|
<field name="work_state" optional="hide"/>
|
|
<field name="tool_state" invisible="1"/>
|
|
<field name="product_tmpl_name" invisible="1"/>
|
|
</field>
|
|
<field name="duration" position="replace">
|
|
<field name="duration" optional="hide"/>
|
|
</field>
|
|
<field name="workcenter_id" position="replace">
|
|
<field name="workcenter_id" optional="hide"/>
|
|
</field>
|
|
<field name="product_id" position="after">
|
|
<field name="equipment_id" optional="hide"/>
|
|
<field name="part_name" optional="hide"/>
|
|
<field name="part_number" optional="show"/>
|
|
</field>
|
|
<xpath expr="//field[@name='qty_remaining']" position="after">
|
|
<field name="manual_quotation" optional="show"/>
|
|
<field name="tag_type" optional="show"/>
|
|
<field name="construction_period_status" optional="show" widget="badge"
|
|
decoration-success="construction_period_status == '正常'"
|
|
decoration-warning="construction_period_status == '预警'"
|
|
decoration-danger="construction_period_status == '已逾期'"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='date_planned_start']" position="replace">
|
|
<field name="date_planned_start" string="计划开始日期" optional="show"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='date_planned_start']" position="before">
|
|
<field name="reserved_duration" string="计划预留时间" optional="hide"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='date_planned_finished']" position="replace">
|
|
<field name="date_planned_finished" string="计划结束日期" optional="hide"/>
|
|
<field name="back_button_display" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//button[@name='button_start']" position="attributes">
|
|
<!-- <attribute name="attrs">{'invisible': ['|', '|', '|','|','|', ('production_state','in', ('draft',-->
|
|
<!-- 'done',-->
|
|
<!-- 'cancel')), ('working_state', '=', 'blocked'), ('state', 'in', ('done', 'cancel')),-->
|
|
<!-- ('is_user_working', '!=', False),("user_permissions","=",False),("name","=","CNC加工")]}-->
|
|
<!-- </attribute>-->
|
|
<attribute name="attrs">{'invisible': [('state', '!=', 'ready')]}
|
|
</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//button[@name='button_start']" position="after">
|
|
<button name="button_back" string="回退" type="object" class="btn-primary"
|
|
attrs="{'invisible': [('back_button_display', '=', False)]}" confirm="是否确认回退"/>
|
|
</xpath>
|
|
<xpath expr="//button[@name='%(mrp.act_mrp_block_workcenter_wo)d']" position="attributes">
|
|
<attribute name="attrs">{'invisible':
|
|
['|',("user_permissions","=",False),("name","=","获取CNC加工程序")]}
|
|
</attribute>
|
|
<!-- <attribute name="string">停工</attribute> -->
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_open_wizard']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
|
|
</xpath>
|
|
<xpath expr="//field[@name='name']" position="after">
|
|
<field name="production_id"/>
|
|
</xpath>
|
|
<!-- <button name="button_start" type="object" string="Start" class="btn-success"-->
|
|
<!-- attrs="{'invisible': ['|', '|', '|', ('production_state','in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('state', 'in', ('done', 'cancel')), ('is_user_working', '!=', False)]}"/>-->
|
|
<!-- <button name="button_pending" type="object" string="Pause" class="btn-warning"-->
|
|
<!-- attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>-->
|
|
<!-- <button name="button_finish" type="object" string="Done" class="btn-success"-->
|
|
<!-- attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>-->
|
|
<!-- <button name="%(mrp.act_mrp_block_workcenter_wo)d" type="action" string="Block" context="{'default_workcenter_id': workcenter_id}" class="btn-danger"-->
|
|
<!-- attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked')]}"/>-->
|
|
<!-- <button name="button_unblock" type="object" string="Unblock" context="{'default_workcenter_id': workcenter_id}" class="btn-danger"-->
|
|
<!-- attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked')]}"/>-->
|
|
<!-- <button name="action_open_wizard" type="object" icon="fa-external-link" class="oe_edit_only"-->
|
|
<!-- title="Open Work Order"/>-->
|
|
<!-- edit='false' create = 'false'-->
|
|
<tree position="attributes">
|
|
<attribute name="multi_edit"></attribute>
|
|
<attribute name="editable"></attribute>
|
|
<attribute name="create">false</attribute>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="mrp_workorder_action_tablet">
|
|
<field name="name">工单</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">mrp.workorder</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_ids" eval="[(5, 0, 0),
|
|
(0, 0, {'view_mode': 'tree', 'view_id': ref('mrp.mrp_production_workorder_tree_editable_view')}) ]"/>
|
|
<!-- (0, 0, {'view_mode': 'kanban', 'view_id': ref('mrp.workcenter_line_kanban')})-->
|
|
<!-- <field name="target">fullscreen</field>-->
|
|
<field name="target">current</field>
|
|
<field name="domain">[('state', '!=', 'cancel'),('schedule_state', '=', '已排')]</field>
|
|
<field name="context">{'search_default_product': 1, 'search_default_workcenter_id': active_id}
|
|
</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_workorder">
|
|
没有工单要做!
|
|
</p>
|
|
<p>
|
|
工作订单是作为制造订单的一部分执行的操作。
|
|
工序在物料清单中定义或直接添加到制造订单中。
|
|
</p>
|
|
<p>
|
|
使用工作台工作中心控制面板直接登记车间中的操作.
|
|
平板电脑为您的工人提供工作表,并允许他们报废产品,跟踪时间,
|
|
发起维护请求,执行质量测试等.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_mrp_production_workorder_tray_form_inherit_sf" model="ir.ui.view">
|
|
<field name="name">mrp.production.workorder.tray.form.inherit.sf</field>
|
|
<field name="model">mrp.workorder</field>
|
|
<field name="inherit_id" ref="mrp.mrp_production_workorder_form_view_inherit"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form" position="inside">
|
|
<!-- 其他可见字段 -->
|
|
<field name="_barcode_scanned" widget="barcode_handler"/>
|
|
</xpath>
|
|
<!-- <xpath expr="//form" position="inside"> -->
|
|
<!-- <script src="sf_manufacturing/static/src/js/customRFID.js"/> -->
|
|
<!-- </xpath> -->
|
|
<xpath expr="//header/field[@name='state']" position="replace">
|
|
<field name="state" widget="statusbar"
|
|
statusbar_visible="pending,waiting,ready,progress,to be detected,done,rework"/>
|
|
</xpath>
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<!-- <button type="object" name="action_view_pr_mrp_workorder" class="oe_stat_button"
|
|
icon="fa-credit-card"
|
|
groups="base.group_user,sf_base.group_sf_order_user"
|
|
attrs="{'invisible': [('pr_mp_count', '=', 0)]}">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value">
|
|
<field name="pr_mp_count"/>
|
|
</span>
|
|
<span class="o_stat_text">采购申请</span>
|
|
</div>
|
|
</button> -->
|
|
<button type="object" name="action_view_surface_technics_purchase" class="oe_stat_button"
|
|
icon="fa-credit-card"
|
|
groups="base.group_user,sf_base.group_sf_order_user"
|
|
attrs="{'invisible': [('surface_technics_purchase_count', '=', 0)]}">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value">
|
|
<field name="surface_technics_purchase_count"/>
|
|
</span>
|
|
<span class="o_stat_text">采购</span>
|
|
</div>
|
|
</button>
|
|
<button type="object" name="action_view_surface_technics_picking" class="oe_stat_button" icon="fa-truck"
|
|
groups="base.group_user,sf_base.group_sf_order_user"
|
|
attrs="{'invisible': [('surface_technics_picking_count', '=', 0)]}">
|
|
<field name="surface_technics_picking_count" widget="statinfo" string="工艺外协"/>
|
|
</button>
|
|
</xpath>
|
|
<xpath expr="//field[@name='state']" position="before">
|
|
<field name='tool_state' invisible="1"/>
|
|
<field name='user_permissions' invisible="1"/>
|
|
<field name='name' invisible="1"/>
|
|
<field name='is_rework' invisible="1"/>
|
|
<field name='is_delivery' invisible="1"/>
|
|
<field name="is_trayed" invisible="1"/>
|
|
<field name="is_inspect" invisible="1"/>
|
|
<field name="back_button_display" invisible="1"/>
|
|
<!-- <field name="rework_flag" invisible="1"/>-->
|
|
<!-- <field name='is_send_program_again' invisible="1"/>-->
|
|
<!-- 工单form页面的开始停工按钮等 -->
|
|
<!-- <button name="button_start" type="object" string="开始" class="btn-success" -->
|
|
<!-- attrs="{'invisible': ['|', '|', ('production_state', 'not in', ('pending_processing', 'pending_cam', 'pending_era_cam')), ('state','!=','ready'), ('routing_type', 'not in', ('装夹预调', 'CNC加工', '解除装夹'))]}" -->
|
|
<!-- groups="sf_base.group_sf_mrp_user"/> -->
|
|
<!-- <button name="button_pending" type="object" string="暂停" class="btn-warning" -->
|
|
<!-- attrs="{'invisible': ['|', '|', ('production_state', 'not in', ('pending_processing', 'pending_cam', 'pending_era_cam')), ('state','!=','progress'), ('routing_type', 'not in', ('装夹预调', 'CNC加工', '解除装夹'))]}" -->
|
|
<!-- groups="sf_base.group_sf_mrp_user"/> -->
|
|
<!-- <button name="button_finish" type="object" string="完成" class="btn-success" -->
|
|
<!-- attrs="{'invisible': ['|', '|', ('production_state', 'not in', ('pending_processing', 'pending_cam', 'pending_era_cam')), ('state','!=','progress'), ('routing_type', 'not in', ('装夹预调', 'CNC加工', '解除装夹'))]}" -->
|
|
<!-- groups="sf_base.group_sf_mrp_user" confirm="是否确认完工"/> -->
|
|
|
|
<!-- <button name="button_start" type="object" string="开始" class="btn-success" confirm="是否确认开始"-->
|
|
<!-- attrs="{'invisible': ['|', '|', '|', ('production_state','in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('state', 'in', ('done', 'cancel','to be detected')), ('is_user_working', '!=', False)]}"/>-->
|
|
<button name="button_back" string="回退" type="object" class="btn-primary"
|
|
attrs="{'invisible': [('back_button_display', '=', False)]}" confirm="是否确认回退"/>
|
|
<button name="button_start" type="object" string="开始" class="btn-success"
|
|
attrs="{'invisible': [('state', '!=', 'ready')]}"/>
|
|
<button name="button_pending" type="object" string="暂停" class="btn-warning"
|
|
attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>
|
|
<button name="button_finish" type="object" string="完成" class="btn-success" confirm="是否确认完工"
|
|
attrs="{'invisible': ['|', '|', '|',('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False),'&','&',('state', 'in', ('progress')), ('is_inspect', '=', True), ('routing_type','!=','CNC加工')]}"/>
|
|
|
|
<button name="%(mrp.act_mrp_block_workcenter_wo)d" type="action" string="阻塞"
|
|
context="{'default_workcenter_id': workcenter_id}" class="btn-danger"
|
|
attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked')]}"/>
|
|
<button name="button_unblock" type="object" string="取消阻塞"
|
|
context="{'default_workcenter_id': workcenter_id}" class="btn-danger"
|
|
attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked')]}"/>
|
|
<button name="do_inspect" type="object" string="送检" class="btn-success" confirm="是否确认送检"
|
|
attrs="{'invisible': ['|', '|', ('state', 'not in', ('progress')), ('is_inspect', '=', False), ('routing_type','=','CNC加工')]}"/>
|
|
<button name="do_inspect" type="object" string="送检" class="btn-success" confirm="是否确认送检"
|
|
attrs="{'invisible': ['|', '|', ('state', 'not in', ('progress')), ('is_inspect', '=', False), ('production_line_state','!=','已下产线')]}"/>
|
|
<!-- <button name="%(mrp.act_mrp_block_workcenter_wo)d" type="action" string="停工" -->
|
|
<!-- context="{'default_workcenter_id': workcenter_id}" class="btn-danger" -->
|
|
<!-- groups="sf_base.group_sf_mrp_user" -->
|
|
<!-- attrs="{'invisible': ['|', ('production_state', '!=', 'pending_processing'), ('state','!=','progress')]}"/> -->
|
|
<!-- <button name="button_unblock" type="object" string="Unblock" -->
|
|
<!-- context="{'default_workcenter_id': workcenter_id}" class="btn-danger" -->
|
|
<!-- groups="sf_base.group_sf_mrp_user" -->
|
|
<!-- attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked'),('state','=','done')]}"/> -->
|
|
<!-- <button name="button_workpiece_delivery" type="object" string="工件配送" class="btn-primary"-->
|
|
<!-- attrs="{'invisible': ['|','|','|','|',('routing_type','!=','装夹预调'),('is_delivery','=',True),('state','!=','done'),('is_rework','=',True),'&',('rfid_code','in',['',False]),('state','=','done')]}"/>-->
|
|
<button name="button_rework_pre" type="object" string="异常反馈"
|
|
class="btn-primary"
|
|
attrs="{'invisible': ['|','|',('routing_type','!=','装夹预调'),('state','!=','progress'),('is_rework','=',True)]}"/>
|
|
<button name="unbind_tray" type="object" string="解绑托盘"
|
|
class="btn-primary"
|
|
attrs="{'invisible': ['|', '|', '|', ('routing_type','!=','装夹预调'),('state','!=','progress'), ('is_trayed', '=', False), ('state', 'in', ('done'))]}"/>
|
|
<button name="print_method" type="object" string="打印二维码" class="btn-primary"
|
|
attrs="{'invisible': ['|',('routing_type','!=','解除装夹'),('state','!=','done')]}"/>
|
|
<!-- <button type="object" class="oe_highlight jikimo_button_confirm" name="button_rework"-->
|
|
<!-- string="返工"-->
|
|
<!-- attrs='{"invisible": [("rework_flag","=",True)]}' confirm="是否返工"/>-->
|
|
</xpath>
|
|
<xpath expr="//label[1]" position="before">
|
|
<!-- -->
|
|
<field name="production_id" invisible="0"/>
|
|
<field name="routing_type" string="工单类型" readonly="1"/>
|
|
<field name="duration_expected" invisible="1"/>
|
|
<field name="date_planned_start" invisible="1"/>
|
|
<field name="date_planned_finished" invisible="1"/>
|
|
<field name="duration" widget="mrp_timer"
|
|
invisible="1" sum="real duration"/>
|
|
<field name="glb_file" readonly="1" widget="Viewer3D" string="加工模型" attrs="{'invisible': [('glb_file', '=', False)]}"/>
|
|
<field name="glb_url" readonly="1" widget="Viewer3D" string="加工模型" attrs="{'invisible': [('glb_url', '=', False)]}"/>
|
|
<field name="manual_quotation" readonly="1"
|
|
attrs="{'invisible': [('routing_type', 'not in', ['CNC加工', '人工线下加工'])]}"/>
|
|
<field name="processing_panel" readonly="1"
|
|
attrs='{"invisible": [("routing_type","in",("获取CNC加工程序","切割"))]}'/>
|
|
<field name="equipment_id" readonly="1"
|
|
attrs='{"invisible": [("routing_type","in",("获取CNC加工程序","切割","装夹预调"))]}'/>
|
|
<field name="production_line_id"
|
|
attrs='{"invisible": [("routing_type","in",("获取CNC加工程序","切割","装夹预调"))]}'/>
|
|
<field name="production_line_state" readonly="1"
|
|
attrs='{"invisible": [("routing_type","in",("获取CNC加工程序","切割","装夹预调"))]}'/>
|
|
|
|
<field name='routing_type' invisible="1"/>
|
|
<field name='process_state' invisible="1"/>
|
|
<field name='tag_type' readonly="1" attrs='{"invisible": [("tag_type","=",False)]}'
|
|
decoration-danger="tag_type == '重新加工'"/>
|
|
<field name="is_test_env" invisible="1"/>
|
|
<field name="rfid_code" force_save="1" readonly="1" cache="True"
|
|
attrs="{'invisible': [('rfid_code_old', '!=', False)]}" widget="qrcode_widget"/>
|
|
<field name="rfid_code" string="RFID码(手动输入框)" force_save="1" readonly="0" cache="True"
|
|
attrs="{'invisible': ['|',('rfid_code_old', '!=', False), ('is_test_env', '=', False)]}"/>
|
|
<field name="rfid_code_old" readonly="1" attrs="{'invisible': [('rfid_code_old', '=', False)]}"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//header" position="inside">
|
|
<div class="o_statusbar_buttons">
|
|
<button name="button_change_env"
|
|
type="object"
|
|
string="演示模式"
|
|
class="btn-primary"
|
|
groups="sf_manufacturing.group_show_button"/>
|
|
</div>
|
|
</xpath>
|
|
|
|
<xpath expr="//form//sheet//group//group//div[2]" position="replace">
|
|
</xpath>
|
|
<xpath expr="//form//sheet//group//group//div[1]" position="after">
|
|
<field name="save_name" widget="CopyClipboardChar"
|
|
attrs="{'invisible':[('routing_type','!=','装夹预调')]}"/>
|
|
<label for="material_length" string="物料尺寸"/>
|
|
<div class="o_address_format">
|
|
<label for="material_length" string="长"/>
|
|
<field name="material_length" class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="material_width" string="宽"/>
|
|
<field name="material_width" class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="material_height" string="高"/>
|
|
<field name="material_height" class="o_address_zip"/>
|
|
</div>
|
|
<field name="part_name"/>
|
|
<field name="part_number" string="零件图号"/>
|
|
</xpath>
|
|
<xpath expr="//label[1]" position="attributes">
|
|
<attribute name="string">计划加工时间</attribute>
|
|
</xpath>
|
|
<!-- 隐藏物料清单-->
|
|
<!-- <xpath expr="//page[@name='components']" position="attributes">-->
|
|
<!-- <attribute name="invisible">1</attribute>-->
|
|
<!-- </xpath>-->
|
|
<!-- 隐藏物料清单-->
|
|
<xpath expr="//page[@name='components']" position="attributes">
|
|
<attribute name="string">物料</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='move_raw_ids']/tree/field[@name='product_id']" position="after">
|
|
<field name='materiel_length' string="长"/>
|
|
<field name='materiel_width' string="宽"/>
|
|
<field name='materiel_height' string="高"/>
|
|
</xpath>
|
|
|
|
|
|
<xpath expr="//page[1]" position="before">
|
|
<field name="results" invisible="1"/>
|
|
<field name="individuation_page_list" invisible="1"/>
|
|
<page string="工件装夹" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "WCP")]}'>
|
|
<group>
|
|
<!-- <field name="_barcode_scanned" widget="barcode_handler"/> -->
|
|
<group string="托盘">
|
|
<field name="tray_serial_number" readonly="1" string="序列号"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="tray_product_id" readonly="1" string="名称"/>
|
|
<field name="tray_brand_id" readonly="1" string="品牌"/>
|
|
</group>
|
|
<group>
|
|
<field name="tray_type_id" readonly="1" string="类型"/>
|
|
<field name="tray_model_id" readonly="1" string="型号"/>
|
|
</group>
|
|
</group>
|
|
<group string="预调程序信息">
|
|
<field name="preset_program_information" colspan="2" nolabel="1"
|
|
placeholder="如有预调程序信息请在此处输入....."/>
|
|
</group>
|
|
</page>
|
|
<page string="前置三元检测定位参数" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "ITD_PP")]}'>
|
|
|
|
<div>左面:</div>
|
|
<div class="o_address_format">
|
|
<label for="X1_axis" string="x"/>
|
|
<field name="X1_axis" class="o_form_label"
|
|
decoration-success="X1_axis > 0"
|
|
decoration-warning="X1_axis < 0"/>
|
|
<label for="Y1_axis" string="y"/>
|
|
<field name="Y1_axis" class="o_form_label"
|
|
decoration-success="Y1_axis > 0"
|
|
decoration-warning="Y1_axis < 0"/>
|
|
<label for="Z1_axis" string="z"/>
|
|
<field name="Z1_axis" class="o_form_label"
|
|
decoration-success="Z1_axis > 0"
|
|
decoration-warning="Z1_axis < 0"/>
|
|
<div></div>
|
|
<label for="X2_axis" string="x"/>
|
|
<field name="X2_axis" class="o_form_label"
|
|
decoration-success="X2_axis > 0"
|
|
decoration-warning="X2_axis < 0"/>
|
|
<label for="Y2_axis" string="y"/>
|
|
<field name="Y2_axis" class="o_form_label"
|
|
decoration-success="Y2_axis > 0"
|
|
decoration-warning="Y2_axis < 0"/>
|
|
<label for="Z2_axis" string="z"/>
|
|
<field name="Z2_axis" class="o_form_label"
|
|
decoration-success="Z2_axis > 0"
|
|
decoration-warning="Z2_axis < 0"/>
|
|
</div>
|
|
<div>前面:</div>
|
|
<div class="o_address_format">
|
|
<label for="X3_axis" string="x"/>
|
|
<field name="X3_axis" class="o_form_label"
|
|
decoration-success="X3_axis > 0"
|
|
decoration-warning="X3_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y3_axis" string="y"/>
|
|
<field name="Y3_axis" class="o_form_label"
|
|
decoration-success="Y3_axis > 0"
|
|
decoration-warning="Y3_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z3_axis" string="z"/>
|
|
<field name="Z3_axis" class="o_form_label"
|
|
decoration-success="Z3_axis > 0"
|
|
decoration-warning="Z3_axis < 0"/>
|
|
<div></div>
|
|
<label for="X4_axis" string="x"/>
|
|
<field name="X4_axis" class="o_form_label"
|
|
decoration-success="X4_axis > 0"
|
|
decoration-warning="X4_axis < 0"
|
|
/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y4_axis" string="y"/>
|
|
<field name="Y4_axis" class="o_form_label"
|
|
decoration-success="Y4_axis > 0"
|
|
decoration-warning="Y4_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z4_axis" string="z"/>
|
|
<field name="Z4_axis" class="o_form_label"
|
|
decoration-success="Z4_axis > 0"
|
|
decoration-warning="Z4_axis < 0"/>
|
|
</div>
|
|
<div>右面:</div>
|
|
<div class="o_address_format">
|
|
<label for="X5_axis" string="x"/>
|
|
<field name="X5_axis" class="o_form_label"
|
|
decoration-success="X5_axis > 0"
|
|
decoration-warning="X5_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y5_axis" string="y"/>
|
|
<field name="Y5_axis" class="o_form_label" decoration-success="Y5_axis > 0"
|
|
decoration-warning="Y5_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z5_axis" string="z"/>
|
|
<field name="Z5_axis" class="o_form_label" decoration-success="Z5_axis > 0"
|
|
decoration-warning="Z5_axis < 0"/>
|
|
<div></div>
|
|
<label for="X6_axis" string="x"/>
|
|
<field name="X6_axis" class="o_form_label" decoration-success="X6_axis > 0"
|
|
decoration-warning="X6_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y6_axis" string="y"/>
|
|
<field name="Y6_axis" class="o_form_label" decoration-success="Y6_axis > 0"
|
|
decoration-warning="Y6_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z6_axis" string="z"/>
|
|
<field name="Z6_axis" class="o_form_label" decoration-success="Z6_axis > 0"
|
|
decoration-warning="Z6_axis < 0"/>
|
|
</div>
|
|
<div>后面:</div>
|
|
<div class="o_address_format">
|
|
<label for="X7_axis" string="x"/>
|
|
<field name="X7_axis" class="o_form_label" decoration-success="X7_axis > 0"
|
|
decoration-warning="X7_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y7_axis" string="y"/>
|
|
<field name="Y7_axis" class="o_form_label" decoration-success="Y7_axis > 0"
|
|
decoration-warning="Y7_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z7_axis" string="z"/>
|
|
<field name="Z7_axis" class="o_form_label" decoration-success="Z7_axis > 0"
|
|
decoration-warning="Z7_axis < 0"/>
|
|
<div></div>
|
|
<label for="X8_axis" string="x"/>
|
|
<field name="X8_axis" class="o_form_label" decoration-success="X8_axis > 0"
|
|
decoration-warning="X8_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y8_axis" string="y"/>
|
|
<field name="Y8_axis" class="o_form_label" decoration-success="Y8_axis > 0"
|
|
decoration-warning="Y8_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z8_axis" string="z"/>
|
|
<field name="Z8_axis" class="o_form_label" decoration-success="Z8_axis > 0"
|
|
decoration-warning="Z8_axis < 0"/>
|
|
</div>
|
|
<div>上面:</div>
|
|
<div class="o_address_format">
|
|
<label for="X9_axis" string="x"/>
|
|
<field name="X9_axis" class="o_form_label" decoration-success="X9_axis > 0"
|
|
decoration-warning="X9_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y9_axis" string="y"/>
|
|
<field name="Y9_axis" class="o_form_label" decoration-success="Y9_axis > 0"
|
|
decoration-warning="Y9_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z9_axis" string="z"/>
|
|
<field name="Z9_axis" class="o_form_label" decoration-success="Z9_axis > 0"
|
|
decoration-warning="Z9_axis < 0"/>
|
|
<div></div>
|
|
<label for="X10_axis" string="x"/>
|
|
<field name="X10_axis" class="o_form_label" decoration-success="X10_axis > 0"
|
|
decoration-warning="X10_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y10_axis" string="y"/>
|
|
<field name="Y10_axis" class="o_form_label" decoration-success="Y10_axis > 0"
|
|
decoration-warning="Y10_axis < 0"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z10_axis" string="z"/>
|
|
<field name="Z10_axis" class="o_form_label" decoration-success="Z10_axis > 0"
|
|
decoration-warning="Z10_axis < 0"/>
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<field name="data_state" invisible="1"/>
|
|
<!-- <button type="object" class="oe_highlight" name="get_three_check_datas" string="获取数据" -->
|
|
<!-- attrs='{"invisible": ["|", "|", "|", ("material_center_point","!=",False),("state","!=","progress"),("user_permissions","=",False), ("data_state", "=", True)]}'/> -->
|
|
<!-- <button type="object" class="oe_highlight" name="getcenter" string="计算定位" -->
|
|
<!-- attrs='{"invisible": ["|","|", "|",("material_center_point","!=",False),("state","!=","progress"),("user_permissions","=",False), ("data_state", "=", False)]}'/> -->
|
|
</div>
|
|
|
|
<group>
|
|
<field name="material_center_point" readonly="1"/>
|
|
<field name='X_deviation_angle' readonly="1"/>
|
|
</group>
|
|
</page>
|
|
<page string="工件配送" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "WD")]}'>
|
|
<field name="workpiece_delivery_ids">
|
|
<tree editable="bottom">
|
|
<field name="production_id" invisible="1"/>
|
|
<field name="route_id" options="{'no_create': True}"/>
|
|
<field name="feeder_station_start_id" readonly="1" force_save="1"/>
|
|
<field name="feeder_station_destination_id" readonly="1" force_save="1"/>
|
|
<field name="is_cnc_program_down" readonly="1"/>
|
|
<field name="production_line_id" readonly="1"/>
|
|
<field name="task_delivery_time" readonly="1"/>
|
|
<field name="task_completion_time" readonly="1"/>
|
|
<field name="status" readonly="1" widget="badge"
|
|
decoration-success="status == '已配送'"
|
|
decoration-warning="status == '待下发'"
|
|
decoration-danger="status == '待配送'"
|
|
decoration-info="status== '已取消'"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="CNC程序" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "CNC_P")]}'>
|
|
<field name="cnc_ids" widget="one2many" string="工作程序" default_order="sequence_number,id"
|
|
readonly="0">
|
|
<tree>
|
|
<field name="sequence_number"/>
|
|
<field name="program_name"/>
|
|
<field name="cutting_tool_name"/>
|
|
<field name="tool_state"/>
|
|
<field name="cutting_tool_no"/>
|
|
<field name="processing_type"/>
|
|
<field name="margin_x_y"/>
|
|
<field name="margin_z"/>
|
|
<field name="depth_of_processing_z"/>
|
|
<field name="cutting_tool_extension_length"/>
|
|
<field name="cutting_tool_handle_type"/>
|
|
<field name="estimated_processing_time"/>
|
|
<field name="program_path"/>
|
|
<field name="program_create_date"/>
|
|
<field name="remark"/>
|
|
<!-- <field name="button_state" invisible="1"/>-->
|
|
</tree>
|
|
</field>
|
|
|
|
</page>
|
|
<page string="CMM程序" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "CMM_P")]}'>
|
|
<field name="cmm_ids" widget="one2many" string="CMM程序" readonly="1">
|
|
<tree>
|
|
<field name="sequence_number"/>
|
|
<field name="program_name"/>
|
|
<field name="program_path"/>
|
|
<field name="program_create_date"/>
|
|
<field name="remark"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="后置三元检测" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "PTD")]}'>
|
|
<group>
|
|
<field name="test_results"
|
|
attrs='{"readonly":["&","|",("state","!=","to be detected"), "|",("routing_type","=","CNC加工"),("is_inspect", "=", True),("state","in",["done","rework"])],
|
|
"invisible":[("results","!=",False)]}'/>
|
|
<!-- <field name="is_remanufacture" attrs='{"invisible":[("test_results","!=","报废")]}'/>-->
|
|
<!-- <field name="is_fetchcnc"-->
|
|
<!-- attrs='{"invisible":["|",("test_results","=","合格"),("is_remanufacture","=",False)]}'/>-->
|
|
<field name="reason"
|
|
attrs='{"required":[("test_results","!=","合格")],"invisible":[("test_results","=","合格")],"readonly":[("state","in",("done", "rework"))]}'/>
|
|
<field name="detailed_reason"
|
|
attrs='{"required":[("test_results","!=","合格")],"invisible":[("test_results","=","合格")],"readonly":[("state","in",("done", "rework"))]}'/>
|
|
<!-- <field name="results" readonly="1" attrs='{"invisible":[("results","!=","合格")]}'/>-->
|
|
<field name="detection_report" attrs='{"invisible":[("results","!=",False)]}'
|
|
widget="pdf_viewer" readonly="1"/>
|
|
</group>
|
|
<!-- <div class="col-12 col-lg-6 o_setting_box">-->
|
|
<!-- <button type="object" class="oe_highlight" name="recreateManufacturingOrWorkerOrder"-->
|
|
<!-- string="检测确认"-->
|
|
<!-- attrs='{"invisible": ["|","|",("state","!=","progress"),("user_permissions","=",False),("results","=","合格")]}'/>-->
|
|
<!-- </div>-->
|
|
</page>
|
|
<page string="解除装夹" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "DCP")]}'>
|
|
<!-- <field name="tray_id" readonly="1"/>-->
|
|
<!-- <div class="col-12 col-lg-6 o_setting_box">-->
|
|
<!-- <button type="object" class="oe_highlight" name="unbindtray" string="解除装夹"-->
|
|
<!-- attrs='{"invisible": ["|",("state","!=","progress"),("user_permissions","=",False)]}'/>-->
|
|
<!-- </div>-->
|
|
<!-- <div class="col-12 col-lg-6 o_setting_box">-->
|
|
<!-- <button type="action" class="oe_highlight" name="sf_manufacturing.label_sf_tray_code1"-->
|
|
<!-- string="打印标签"-->
|
|
<!-- attrs='{"invisible": ["|",("state","!=","progress"),("user_permissions","=",False)]}'/>-->
|
|
<!-- </div>-->
|
|
|
|
</page>
|
|
<page string="2D加工图纸" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "2D_MD")]}'>
|
|
<field name="machining_drawings" widget="adaptive_viewer"/>
|
|
</page>
|
|
<page string="质检标准" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "QIS")]}'>
|
|
<field name="quality_standard" widget="adaptive_viewer"/>
|
|
</page>
|
|
<page name="CMR" string="开料要求" attrs='{"invisible": ["!", ("individuation_page_list", "ilike", "CMR")]}'>
|
|
<group>
|
|
<group>
|
|
<field name="product_tmpl_id_materials_id" widget="many2one"/>
|
|
<field name="product_tmpl_id_materials_type_id" widget="many2one"/>
|
|
|
|
</group>
|
|
<group>
|
|
<field name="product_tmpl_id_length"/>
|
|
<field name="product_tmpl_id_width"/>
|
|
<field name="product_tmpl_id_height"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
|
|
<xpath expr="//form//header" position="inside">
|
|
<button type="object" class="oe_highlight jikimo_button_confirm" name="get_three_check_datas"
|
|
string="获取数据"
|
|
attrs='{"invisible": ["|", ("state","!=","progress"), ("routing_type","!=","装夹预调")]}'/>
|
|
</xpath>
|
|
|
|
<!-- =====原生页签,暂时不进行配置===== -->
|
|
<!-- <xpath expr="//page[@name='components']" position="attributes">-->
|
|
<!-- <attribute name="attrs">{"invisible": ["!", ("individuation_page_list", "ilike", "ML")]}</attribute>-->
|
|
<!-- </xpath>-->
|
|
<!-- <xpath expr="//page[@name='time_tracking']" position="attributes">-->
|
|
<!-- <attribute name="attrs">{"invisible": ["!", ("individuation_page_list", "ilike", "TT")]}</attribute>-->
|
|
<!-- </xpath>-->
|
|
<!-- ============================= -->
|
|
|
|
|
|
|
|
<!-- <xpath expr="//form//sheet//group//group//div[1]" position="after">-->
|
|
<!-- <label for="date_start" string="实际加工时间"/>-->
|
|
<!-- <div class="oe_inline">-->
|
|
<!-- <field name="date_start" class="mr8 oe_inline"/>-->
|
|
<!-- <strong class="mr8 oe_inline">到</strong>-->
|
|
<!-- <field name="date_finished" class="oe_inline"/>-->
|
|
<!-- </div>-->
|
|
<!-- </xpath>-->
|
|
<xpath expr="//page[@name='time_tracking']//field[@name='time_ids']//tree//field[@name='date_end']"
|
|
position="after">
|
|
<field name="duration" string="实际时长"/>
|
|
</xpath>
|
|
<xpath expr="//page[@name='time_tracking']" position="attributes">
|
|
<attribute name="groups">
|
|
mrp.group_mrp_manager,sf_base.group_sf_mrp_manager,sf_base.group_sf_equipment_user,sf_base.group_sf_order_user
|
|
</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_mrp_production_workorder_tray_form_inherit_sf_1" model="ir.ui.view">
|
|
<field name="name">mrp.production.workorder.tray.form.inherit.sf.1</field>
|
|
<field name="model">mrp.workorder</field>
|
|
<field name="inherit_id" ref="sf_manufacturing.view_mrp_production_workorder_tray_form_inherit_sf"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form//sheet//group//group[2]" position="replace">
|
|
<group string="装夹图纸"
|
|
attrs="{'invisible': [('routing_type', 'not in', ['装夹预调', '人工线下加工'])]}">
|
|
<!-- 隐藏加工图纸字段名 -->
|
|
<field name="processing_drawing" widget="pdf_viewer" string="" readonly="1"/>
|
|
<!-- <field name="production_id" invisible="0"/>-->
|
|
</group>
|
|
<group string="工作指令" attrs="{'invisible': [('routing_type', '!=', 'CNC加工')]}">
|
|
<field name="cnc_worksheet" string="" widget="pdf_viewer"/>
|
|
</group>
|
|
</xpath>
|
|
<!-- <xpath expr="//form//sheet//group//group[1]" position="before">-->
|
|
<!-- <field name="production_id"/>-->
|
|
<!-- </xpath>-->
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="workcenter_form_workorder_search" model="ir.ui.view">
|
|
<field name="name">custom.workorder.search</field>
|
|
<field name="model">mrp.workorder</field>
|
|
<field name="inherit_id" ref="mrp.view_mrp_production_work_order_search"/>
|
|
<field name="arch" type="xml">
|
|
<field name="product_id" position="after">
|
|
<field name="part_number" string="零件图号"/>
|
|
<field name="part_name" string="零件名称"/>
|
|
<field name="model_id" string="模型ID"/>
|
|
</field>
|
|
<xpath expr="//filter[@name='progress']" position="after">
|
|
<filter string="待检测" name="state" domain="[('state','=','to be detected')]"/>
|
|
</xpath>
|
|
<xpath expr="//filter[@name='date_start_filter']" position="before">
|
|
<separator/>
|
|
<filter string="预警" name="filter_order_warning" domain="[('delivery_warning', '=', 'warning')]"/>
|
|
<filter string="逾期" name="filter_order_overdue" domain="[('delivery_warning', '=', 'overdue')]"/>
|
|
<filter string="正常" name="filter_order_normal" domain="[('delivery_warning', '=', 'normal')]"/>
|
|
<separator/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_workorder_action_schedule" model="ir.actions.act_window">
|
|
<field name="name">工单</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">mrp.workorder</field>
|
|
<field name="view_mode">tree,kanban,form</field>
|
|
<field name="view_id" ref="mrp.mrp_production_workorder_tree_editable_view"/>
|
|
<field name="search_view_id" ref="mrp.view_mrp_production_work_order_search"/>
|
|
<field name="domain">[('schedule_state', '=', '已排')]</field>
|
|
</record>
|
|
|
|
<!-- <menuitem id="menu_mrp_workorder_schedule_todo" -->
|
|
<!-- name="工单" -->
|
|
<!-- action="mrp_workorder_action_schedule" -->
|
|
<!-- parent="mrp.menu_mrp_manufacturing" -->
|
|
<!-- sequence="15"/> -->
|
|
|
|
<record id="mrp.menu_mrp_workorder_todo" model="ir.ui.menu">
|
|
<field name="active" eval="False"/>
|
|
</record>
|
|
|
|
|
|
<!--=========================================工件配送单列表======================================-->
|
|
<record id="sf_workpiece_delivery_tree" model="ir.ui.view">
|
|
<field name="name">工件配送</field>
|
|
<field name="model">sf.workpiece.delivery</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="工件配送" class="center" create="0" delete="0" js_class="remove_focus_list_view">
|
|
<header>
|
|
<button name="button_delivery" type="object" string="工件配送"
|
|
class="btn-primary jikimo_button_confirm" attrs="{'force_show':1}"/>
|
|
</header>
|
|
<field name="status" widget="badge"
|
|
decoration-success="status == '已配送'"
|
|
decoration-warning="status == '待下发'"
|
|
decoration-danger="status == '已下发'"
|
|
decoration-info="status == '已取消'"
|
|
/>
|
|
<field name="name"/>
|
|
<field name="production_id"/>
|
|
<field name="type" readonly="1"/>
|
|
<field name="production_line_id" options="{'no_create': True}" readonly="1"/>
|
|
<!-- <field name="route_id" options="{'no_create': True}"-->
|
|
<!-- domain="[('route_type','in',['上产线','下产线'])]"/>-->
|
|
<field name="feeder_station_start_id" readonly="1" force_save="1"/>
|
|
<!-- <field name="feeder_station_destination_id" readonly="1" force_save="1"/>-->
|
|
<field name="is_cnc_program_down" readonly="1"/>
|
|
<!-- <field name="rfid_code"/>-->
|
|
<!-- <field name="task_delivery_time" readonly="1"/>-->
|
|
<!-- <field name="task_completion_time" readonly="1"/>-->
|
|
<!-- <field name="delivery_duration" widget="float_time"/>-->
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sf_workpiece_delivery_form" model="ir.ui.view">
|
|
<field name="name">工件配送</field>
|
|
<field name="model">sf.workpiece.delivery</field>
|
|
<field name="arch" type="xml">
|
|
<form string="工件配送" create="0" delete="0">
|
|
<header>
|
|
<field name="status" widget="statusbar"/>
|
|
<button name="button_delivery" type="object" string="配送" class="oe_highlight"
|
|
attrs="{'invisible': [('status', '!=', '待下发')]}"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="name" readonly="1"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group string="基本信息">
|
|
<field name="production_id"/>
|
|
<field name="type" readonly="1"/>
|
|
<field name="production_line_id" options="{'no_create': True}" readonly="1"/>
|
|
<field name="is_cnc_program_down" readonly="1"/>
|
|
<!-- <field name="rfid_code"/>-->
|
|
</group>
|
|
<group string="配送信息">
|
|
<field name="route_id" options="{'no_create': True}"
|
|
domain="[('route_type','in',['上产线','下产线'])]"/>
|
|
<field name="feeder_station_start_id" readonly="1" force_save="1"/>
|
|
<field name="feeder_station_destination_id" readonly="1" force_save="1"/>
|
|
<field name="task_delivery_time" readonly="1"/>
|
|
<field name="task_completion_time" readonly="1"/>
|
|
<field name="delivery_duration" widget="float_time"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids"/>
|
|
<field name="activity_ids"/>
|
|
<field name="message_ids" options="{'post_refresh': 'recipients'}"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sf_workpiece_delivery_search" model="ir.ui.view">
|
|
<field name="name">工件配送</field>
|
|
<field name="model">sf.workpiece.delivery</field>
|
|
<field name="arch" type="xml">
|
|
<search string="工件配送">
|
|
<filter name="filter_to_be_issued" string="待下发" domain="[('status', 'in', ['待下发'])]"/>
|
|
<filter name="filter_issued" string="已下发" domain="[('status', 'in', ['已下发'])]"/>
|
|
<filter name="filter_delivered" string="已配送" domain="[('status', 'in', ['已配送'])]"/>
|
|
<separator/>
|
|
<filter name="filter_type_to_production_line" string="上产线" domain="[('type', '=', '上产线')]"/>
|
|
<filter name="filter_type_to_empty_racks" string="运送空料架" domain="[('type', '=', '运送空料架')]"/>
|
|
<filter name="filter_type_production_line_back" string="下产线" domain="[('type', '=', '下产线')]"/>
|
|
<field name="rfid_code"/>
|
|
<field name="production_id"/>
|
|
<field name="feeder_station_start_id"/>
|
|
<field name="production_line_id"/>
|
|
<field name="task_delivery_time"/>
|
|
<field name="feeder_station_destination_id"/>
|
|
<field name="task_completion_time"/>
|
|
<field name="delivery_duration"/>
|
|
<field name="status"/>
|
|
<searchpanel>
|
|
<field name="production_line_id" icon="fa-building" enable_counters="1"/>
|
|
<field name="status" icon="fa-building" enable_counters="1"/>
|
|
</searchpanel>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
、
|
|
<record id="sf_workpiece_delivery_act" model="ir.actions.act_window">
|
|
<field name="name">工件配送</field>
|
|
<field name="res_model">sf.workpiece.delivery</field>
|
|
<field name="search_view_id" ref="sf_workpiece_delivery_search"/>
|
|
<field name="context">{'search_default_filter_to_be_issued': 1,
|
|
'search_default_filter_type_to_production_line': 1}
|
|
</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">
|
|
[('type','in',['上产线','下产线']),('workorder_state','in',['done','rework']),('is_manual_work','=',false)]
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!--=========================================运送空料架列表======================================-->
|
|
<record id="sf_workpiece_delivery_empty_racks_template_tree" model="ir.ui.view">
|
|
<field name="name">空料架配送</field>
|
|
<field name="model">sf.workpiece.delivery</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="工件配送" editable="bottom" class="center" delete="0" create="1">
|
|
<!-- <header>-->
|
|
<!-- <button name="button_delivery" type="object" string="配送" class="oe_highlight"/>-->
|
|
<!-- </header>-->
|
|
<!-- <field name="name" string="路线名称" attrs="{'readonly': [('id', '!=', False)]}"-->
|
|
<!-- placeholder="例如:运送空料架路线:G01-A01" required="1" force_save="1"/>-->
|
|
<field name="route_id" options="{'no_create': True}" required="1"
|
|
attrs="{'readonly': [('id', '!=', False)]}" domain="[('route_type', '=', '运送空料架')]"
|
|
force_save="1"/>
|
|
<field name="feeder_station_start_id" readonly="1" force_save="1"/>
|
|
<!-- <field name="type" readonly="1"/>-->
|
|
<field name="feeder_station_destination_id" readonly="1" force_save="1"/>
|
|
<button name="delivery_avg" type="object" string="配送" class="oe_highlight"/>
|
|
<button name="action_delivery_history" type="object" class="btn btn-link text-info" icon="fa-history"
|
|
string="历史"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- <record id="sf_workpiece_delivery_empty_racks_kanban" model="ir.ui.view">-->
|
|
<!-- <field name="name">sf.workpiece.delivery.view.kanban</field>-->
|
|
<!-- <field name="model">sf.workpiece.delivery</field>-->
|
|
<!-- <field name="arch" type="xml">-->
|
|
<!-- <kanban>-->
|
|
<!-- <field name="route_id"/>-->
|
|
<!-- <field name="feeder_station_start_id"/>-->
|
|
<!-- <field name="feeder_station_destination_id"/>-->
|
|
<!--<!– <button name="button_delivery" type="object" string="配送" class="oe_highlight"/>–>-->
|
|
<!--<!– <button name="action_delivery_history" type="object" class="btn btn-link text-info" icon="fa-history"–>-->
|
|
<!--<!– string="历史"/>–>-->
|
|
<!-- </kanban>-->
|
|
<!-- </field>-->
|
|
<!-- </record>-->
|
|
|
|
<record id="sf_workpiece_delivery_empty_racks_tree" model="ir.ui.view">
|
|
<field name="name">空料架配送</field>
|
|
<field name="model">sf.workpiece.delivery</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="运送空料架" class="center" create="0" delete="0" edit="0">
|
|
<field name="status"/>
|
|
<field name="route_id"/>
|
|
<field name="feeder_station_start_id"/>
|
|
<field name="feeder_station_destination_id"/>
|
|
<field name="task_delivery_time"/>
|
|
<field name="task_completion_time"/>
|
|
<field name="delivery_duration" widget="float_time"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="sf_workpiece_delivery_empty_racks_search" model="ir.ui.view">
|
|
<field name="name">空料架配送</field>
|
|
<field name="model">sf.workpiece.delivery</field>
|
|
<field name="arch" type="xml">
|
|
<search string="运送空料架">
|
|
<filter name="filter_active" string="已归档" domain="[('active', '=', False)]"/>
|
|
<field name="route_id"/>
|
|
<field name="feeder_station_start_id"/>
|
|
<field name="feeder_station_destination_id"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="sf_workpiece_delivery_empty_racks_act" model="ir.actions.act_window">
|
|
<field name="name">空料架配送</field>
|
|
<field name="res_model">sf.workpiece.delivery</field>
|
|
<field name="view_id" ref="sf_workpiece_delivery_empty_racks_template_tree"/>
|
|
<field name="search_view_id" ref="sf_workpiece_delivery_empty_racks_search"/>
|
|
<field name="view_mode">tree</field>
|
|
<field name="domain">[('type','in',['运送空料架']),('name','not ilike','WDO')]</field>
|
|
</record>
|
|
|
|
<menuitem id="mrp.menu_mrp_manufacturing"
|
|
name="Operations"
|
|
sequence="10"
|
|
parent="mrp.menu_mrp_root"
|
|
groups="sf_base.group_sf_order_user,sf_base.group_sf_mrp_manager,sf_base.group_sf_equipment_user"/>
|
|
</odoo>
|
|
|