工作中心看板视图动态添加标签页并可初步进行点击晒选
This commit is contained in:
@@ -36,6 +36,7 @@ class CustomKanbanController extends KanbanController {
|
|||||||
kwargs: {}
|
kwargs: {}
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
console.log('response', response);
|
console.log('response', response);
|
||||||
|
location.reload();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -128,9 +128,10 @@
|
|||||||
<field name="working_state"/>
|
<field name="working_state"/>
|
||||||
<field name="oee_target"/>
|
<field name="oee_target"/>
|
||||||
<field name="production_line_show"/>
|
<field name="production_line_show"/>
|
||||||
|
<field name="production_line_id"/>
|
||||||
<templates>
|
<templates>
|
||||||
<t t-name="kanban-box" t-if="record.production_line_show != 'test'">
|
<t t-name="kanban-box" t-if="record.production_line_id.value == record.production_line_show.raw_value">
|
||||||
<div t-on-click='console.log(production_line_show)'>
|
<div t-on-click='console.log(record.production_line_id)'>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="#{!selection_mode ? kanban_color(record.color.raw_value) : ''}">
|
<div t-attf-class="#{!selection_mode ? kanban_color(record.color.raw_value) : ''}">
|
||||||
@@ -298,21 +299,4 @@
|
|||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<!-- 测试searchpanel -->
|
|
||||||
<record id="view_location_search_sf11111_inherit" model="ir.ui.view">
|
|
||||||
<field name="name">mrp.workcenter.inherit</field>
|
|
||||||
<field name="model">mrp.workcenter</field>
|
|
||||||
<field name="inherit_id" ref="mrp.view_mrp_workcenter_search"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//search[1]" position="inside">
|
|
||||||
<searchpanel class="account_root">
|
|
||||||
<!-- <field name="location_type" icon="fa-filter"/> -->
|
|
||||||
<field name="production_line_id" select="multi"/>
|
|
||||||
</searchpanel>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user