FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
181 lines
9.8 KiB
XML
181 lines
9.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Unbuild and scrap menu -->
|
|
|
|
<record model="ir.actions.act_window" id="action_mrp_unbuild_moves">
|
|
<field name="name">Stock Moves</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">stock.move.line</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">['|', ('move_id.unbuild_id', '=', active_id), ('move_id.consume_unbuild_id', '=', active_id)]</field>
|
|
</record>
|
|
|
|
<record id="mrp_unbuild_search_view" model="ir.ui.view">
|
|
<field name="name">mrp.unbuild.search</field>
|
|
<field name="model">mrp.unbuild</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search">
|
|
<field name="product_id"/>
|
|
<field name="mo_id"/>
|
|
<group expand="0" string="Filters">
|
|
<filter name="draft" string="Draft" domain="[('state', '=', 'draft')]"/>
|
|
<filter name="done" string="Done" domain="[('state', '=', 'done')]"/>
|
|
<filter invisible="1" string="Late Activities" name="activities_overdue"
|
|
domain="[('activity_ids.date_deadline', '<', context_today().strftime('%Y-%m-%d'))]"
|
|
help="Show all records which has next action date is before today"/>
|
|
<filter invisible="1" string="Today Activities" name="activities_today"
|
|
domain="[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
|
|
<filter invisible="1" string="Future Activitie" name="activities_upcoming_all"
|
|
domain="[('activity_ids.date_deadline', '>', context_today().strftime('%Y-%m-%d'))]"/>
|
|
</group>
|
|
<group expand='0' string='Group by...'>
|
|
<filter string='Product' name="productgroup" context="{'group_by': 'product_id'}"/>
|
|
<filter string="Manufacturing Order" name="mogroup" context="{'group_by': 'mo_id'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="action_mrp_unbuild_move_line">
|
|
<field name="name">Product Moves</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">stock.move.line</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">['|', ('move_id.unbuild_id', '=', active_id), ('move_id.consume_unbuild_id', '=', active_id)]</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_empty_folder">
|
|
There's no product move yet
|
|
</p><p>
|
|
This menu gives you the full traceability of inventory operations on a specific product.
|
|
You can filter on the product to see all the past movements for the product.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_unbuild_kanban_view" model="ir.ui.view">
|
|
<field name="name">mrp.unbuild.kanban</field>
|
|
<field name="model">mrp.unbuild</field>
|
|
<field name="arch" type="xml">
|
|
<kanban class="o_kanban_mobile">
|
|
<field name="name"/>
|
|
<field name="product_id"/>
|
|
<field name="product_qty"/>
|
|
<field name="product_uom_id"/>
|
|
<field name="state"/>
|
|
<field name="location_id"/>
|
|
<field name="activity_state"/>
|
|
<progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div t-attf-class="oe_kanban_global_click">
|
|
<div class="o_kanban_record_top">
|
|
<div class="o_kanban_record_headings mt4">
|
|
<strong class="o_kanban_record_title"><span><field name="name"/></span></strong>
|
|
</div>
|
|
<strong><t t-esc="record.product_qty.value"/> <small><t t-esc="record.product_uom_id.value"/></small></strong>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-8 text-muted">
|
|
<span><t t-esc="record.product_id.value"/></span>
|
|
</div>
|
|
<div class="col-4">
|
|
<span class="float-right text-right">
|
|
<field name="state" widget="label_selection" options="{'classes': {'draft': 'default', 'done': 'success'}}"/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_unbuild_form_view" model="ir.ui.view">
|
|
<field name="name">mrp.unbuild.form</field>
|
|
<field name="model">mrp.unbuild</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Unbuild Orders">
|
|
<header>
|
|
<button name="action_validate" string="Unbuild" type="object" states="draft" class="oe_highlight"/>
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,done"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button class="oe_stat_button" name="%(action_mrp_unbuild_moves)d"
|
|
string="Product Moves" type="action" icon="fa-exchange-alt" states="done"/>
|
|
</div>
|
|
<div class="oe_title">
|
|
<h1><field name="name" placeholder="Unbuild Order" nolabel="1"/></h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="product_id" attrs="{'readonly':[('mo_id','!=',False)]}" force_save="1"/>
|
|
<field name="bom_id" attrs="{'readonly':[('mo_id','!=',False)]}" force_save="1"/>
|
|
<label for="product_qty"/>
|
|
<div class="o_row">
|
|
<field name="product_qty"/>
|
|
<field name="product_uom_id" options="{'no_open':True,'no_create':True}" groups="uom.group_uom"/>
|
|
</div>
|
|
</group>
|
|
<group>
|
|
<field name="mo_id"/>
|
|
<field name="location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
|
|
<field name="location_dest_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
|
|
<field name="has_tracking" invisible="1"/>
|
|
<field name="lot_id" attrs="{'invisible': [('has_tracking', '=', 'none')], 'required': [('has_tracking', '!=', 'none')]}" groups="stock.group_production_lot"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
<field name="activity_ids" widget="mail_activity"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_unbuild_tree_view" model="ir.ui.view">
|
|
<field name="name">mrp.unbuild.tree</field>
|
|
<field name="model">mrp.unbuild</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="product_id"/>
|
|
<field name="bom_id"/>
|
|
<field name="mo_id"/>
|
|
<field name="lot_id" groups="stock.group_production_lot"/>
|
|
<field name="product_qty"/>
|
|
<field name="product_uom_id" groups="uom.group_uom"/>
|
|
<field name="state"/>
|
|
<field name="location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
|
|
<field name="activity_exception_decoration" widget="activity_exception"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="mrp_unbuild">
|
|
<field name="name">Unbuild Orders</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">mrp.unbuild</field>
|
|
<field name="view_mode">tree,kanban,form</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Create an unbuild order
|
|
</p><p>
|
|
An unbuild order is used to break down a finished product into its components.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_mrp_unbuild"
|
|
name="Unbuild Orders"
|
|
parent="menu_mrp_manufacturing"
|
|
action="mrp_unbuild"
|
|
sequence="20"/>
|
|
|
|
</odoo>
|