You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
7.0 KiB
124 lines
7.0 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<!-- Kanban view of mrp products -->
|
|
<record id="product_product_view_kanban_mrp" model="ir.ui.view">
|
|
<field name="name">product.product.view.kanban.mrp</field>
|
|
<field name="model">product.product</field>
|
|
<field name="arch" type="xml">
|
|
<kanban sample="1" create="False">
|
|
<field name="id"/>
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div class="oe_kanban_card oe_kanban_global_click">
|
|
<div class="o_kanban_image me-1">
|
|
|
|
<img t-att-src="kanban_image('product.template', 'image_128', record.id.raw_value)"
|
|
alt="Product"
|
|
class="o_image_64_contain imag"/>
|
|
</div>
|
|
<div class="oe_kanban_details ">
|
|
<div class="parents">
|
|
<div class="childs">
|
|
<div class="o_kanban_record_top mb-0">
|
|
<div class="o_kanban_record_headings">
|
|
<strong class="o_kanban_record_title">
|
|
<field name="name"/>
|
|
</strong>
|
|
<t t-if="record.default_code.value">
|
|
[
|
|
<field
|
|
name="default_code"/>
|
|
]
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="childs"
|
|
style="margin-top: 3px;">
|
|
<ul>
|
|
<li>
|
|
<label for="mrp_count"
|
|
style="color:green;font-size:12px;">
|
|
Manufacturing:
|
|
</label>
|
|
<field name="mrp_count"
|
|
style="color:green;font-size:12px;margin-left: 3px;"/>
|
|
</li>
|
|
<li>
|
|
<label for="work_count"
|
|
style="color:red;font-size:12px;">
|
|
Work Orders:
|
|
</label>
|
|
<field name="work_count"
|
|
style="color:red;font-size:12px;margin-left: 3px;"/>
|
|
</li>
|
|
<li>
|
|
<label for="bom_count"
|
|
style="color:orange;font-size:12px;">
|
|
BOM:
|
|
</label>
|
|
<field name="bom_count"
|
|
style="color:orange;font-size:12px;margin-left: 3px;"/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="o_dropdown_kanban dropdown"
|
|
style="position:absolute; left:319px; top:4px;">
|
|
<a class="dropdown-toggle o-no-caret btn"
|
|
role="button" data-bs-toggle="dropdown"
|
|
data-bs-display="static" href="#"
|
|
aria-label="Dropdown menu"
|
|
title="Dropdown menu">
|
|
<span class="fa fa-ellipsis-v"/>
|
|
</a>
|
|
<div class="dropdown-menu" role="menu">
|
|
<button name="action_mrp_orders"
|
|
type="object"
|
|
class="dropdown-item">
|
|
<b>Manufacturing Orders</b>
|
|
</button>
|
|
<button name="action_work_orders"
|
|
type="object"
|
|
class="dropdown-item">
|
|
<b>Work Orders</b>
|
|
</button>
|
|
<button name="action_un_build_orders"
|
|
type="object"
|
|
class="dropdown-item">
|
|
<b>Unbuild Orders</b>
|
|
</button>
|
|
<button name="action_bom" type="object"
|
|
class="dropdown-item">
|
|
<b>Bill Of
|
|
Material
|
|
</b>
|
|
</button>
|
|
<button name="action_scrap_orders"
|
|
type="object"
|
|
class="dropdown-item">
|
|
<b>Scrap Orders</b>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</record>
|
|
<!--Windows action for the model 'product.product' to show the mrp product kanban view-->
|
|
<record id="product_product_action_mrp" model="ir.actions.act_window">
|
|
<field name="name">Products Kanban</field>
|
|
<field name="res_model">product.product</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="view_mode">form,kanban</field>
|
|
<field name="view_ids" eval="[(5, 0, 0),
|
|
(0, 0, {'view_mode': 'kanban', 'view_id': ref('mrp_product_kanban.product_product_view_kanban_mrp')})]"/>
|
|
</record>
|
|
<!-- Menu item to show the products mrp kanban view -->
|
|
<menuitem id="product_product_menu_mrp" name="Products Kanban"
|
|
parent="mrp.menu_mrp_root"
|
|
action="product_product_action_mrp"/>
|
|
</odoo>
|
|
|