This commit contains the core of the new MRP. It contains a whole refactoring of the MRP application, with improved and new features, written in new API. Among other here are the main manufacturing workflow improvements : - Picking type not only for pickings but also for manufacturing orders - Properties replaced by picking type - BoM can only be produced with its routing (no other) - Either produce without routing with only production orders, or produce with routing - By default, there is an order in the work orders (serially), but you can override it to be able to work in parallel - Time clocking on work orders and block time on work centers with reporting on OEE, performance, losses, ... - Real-time adaptation of timings on operations - Lots/serial numbers can be inputted like in the pickings on manufacturing orders. It is also possible to input them in the work orders. - Material availability independent of production order state (possibility to start production when only part of it is there) - Work sheets on work orders - Put messages on work orders to make your workers pay attention to something - Full traceability link to see for each produced piece of stock, the consumed pieces, ... - Separate scrap object (a scrap is not done based on an original move anymore) - Separate unbuild system (if you want to unbuild into its original components) Thanks to all people that helped during this development, notably but not limited to Chirag A Dodiya (cod@odoo.com), Gaurav Panchal (gan@odoo.com), Jignesh Rathod (jir@odoo.com), Mansi Trivedi (mtr@odoo.com), Pariket Trivedi (ptr@odoo.com).
122 lines
5.1 KiB
XML
122 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="mrp_message_view_form" model="ir.ui.view">
|
|
<field name="name">mrp.message.view.form</field>
|
|
<field name="model">mrp.message</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Inventory Message">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="product_id" required="True"/>
|
|
<field name="valid_until"/>
|
|
</group>
|
|
<group>
|
|
<field name="bom_id"/>
|
|
<field name="workcenter_id"/>
|
|
</group>
|
|
</group>
|
|
<field name="message" widget="html" editor_height="450px"/>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_message_view_form_embedded_product" model="ir.ui.view">
|
|
<field name="name">mrp.message.view.form.embedded.product</field>
|
|
<field name="model">mrp.message</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Inventory Message">
|
|
<group>
|
|
<group>
|
|
<field name="product_tmpl_id" required="True"/>
|
|
<field name="product_id" groups="product.group_product_variant" string="Variant"/>
|
|
</group>
|
|
<group>
|
|
<field name="valid_until"/>
|
|
<field name="workcenter_id"/>
|
|
</group>
|
|
</group>
|
|
<field name="message" widget="html" editor_height="450px"/>
|
|
<footer class="oe_edit_only">
|
|
<button name="save" type="object" string="Save" class="oe_highlight"/>
|
|
<button string="Discard" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_message_view_form_embedded_bom" model="ir.ui.view">
|
|
<field name="name">mrp.message.view.form.embedded.bom</field>
|
|
<field name="model">mrp.message</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Inventory Message">
|
|
<group>
|
|
<group>
|
|
<field name="bom_id"/>
|
|
<field name="routing_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="valid_until"/>
|
|
<field name="workcenter_id"/>
|
|
</group>
|
|
</group>
|
|
<field name="message" widget="html" editor_height="450px"/>
|
|
<footer class="oe_edit_only">
|
|
<button name="save" type="object" string="Save" class="oe_highlight"/>
|
|
<button string="Discard" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_message_view_tree" model="ir.ui.view">
|
|
<field name="name">mrp.message.view.tree</field>
|
|
<field name="model">mrp.message</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="valid_until" string="Validity Date"/>
|
|
<field name="create_uid" string="Author"/>
|
|
<field name="product_id"/>
|
|
<field name="name" string="Message"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_message_view_search" model="ir.ui.view">
|
|
<field name="name">mrp.message.view.search</field>
|
|
<field name="model">mrp.message</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search">
|
|
<filter string="Active" name="active_message" domain="[('valid_until', '>=', current_date)]"/>
|
|
<filter string="My Messages" name="my_messages" domain="[('create_uid', '=', uid)]"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mrp_message_action_main" model="ir.actions.act_window">
|
|
<field name="name">Workorder Messages</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">mrp.message</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="context">{'search_default_active_message': True}</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to create a new message.
|
|
</p><p>
|
|
Use messages to warn manufacturing or inventory people about any change in the
|
|
products, process, or actions to take care of. (e.g; Warning, the bill of material changed,
|
|
check the details in new worksheet)
|
|
</p><p>
|
|
Messages can be configurred to appear during any operation: receptions, delivery orders,
|
|
manufacturing orders, work orders, etc.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem id="mrp_message_menu"
|
|
parent="menu_mrp_manufacturing"
|
|
action="mrp_message_action_main"
|
|
sequence="26"/>
|
|
</odoo> |