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.
 
 
 
 
 

83 lines
3.5 KiB

<?xml version='1.0' encoding='utf-8'?>
<odoo>
<!-- Tree view of scrap management -->
<record id="scrap_management_view_tree" model="ir.ui.view">
<field name="name">scrap.management.view.list</field>
<field name="model">scrap.management</field>
<field name="arch" type="xml">
<list>
<field name="scrap_management_number"/>
<field name="scrap_order_id"/>
<field name="product_id"/>
<field name="qty"/>
</list>
</field>
</record>
<!-- Form view of scrap management-->
<record id="scrap_management_view_form" model="ir.ui.view">
<field name="name">scrap.management.view.form</field>
<field name="model">scrap.management</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_confirm" type="object"
class="oe_highlight"
string="Fetch Product"
invisible="state != 'draft'"/>
<button name="action_done" type="object"
class="oe_highlight"
string="Done"
invisible="state != 'confirm'"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<div name="button_box" position="inside">
<button name="action_product_moves" type="object"
class="oe_stat_button" icon="fa-exchange"
invsible="'state' != 'done'">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
Product Moves
</span>
</div>
</button>
</div>
<header>
<h1>
<field name="scrap_management_number"/>
</h1>
</header>
<br/>
<group>
<group>
<field name="scrap_order_id"/>
<field name="product_id"/>
<field name="bill_of_material_id"/>
<field name="qty"/>
</group>
<group>
<field name="location_id"/>
<field name="date"/>
</group>
</group>
<notebook>
<page name="Components">
<field name="scrap_management_line_ids"/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Action and menu of scrap management-->
<record id="scrap_management_action" model="ir.actions.act_window">
<field name="name">Scrap Management</field>
<field name="res_model">scrap.management</field>
<field name="view_mode">list,form</field>
</record>
<menuitem id="scrap_management_menu_action" name="Scrap Management"
action="scrap_management_action"
parent="stock.menu_stock_warehouse_mgmt"
sequence="220"/>
</odoo>