<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="view_move_line_form" model="ir.ui.view">
        <field name="name">account.move.line.form</field>
        <field name="model">account.move.line</field>
        <field name="inherit_id" ref="account.view_move_line_form"/>
        <field name="arch" type="xml">
            <field name="quantity" position="before">
                <field name="manufacture_order_id"/>
                <field name="unbuild_order_id"/>
            </field>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_mrp_account_moves">
            <field name="name">Account Moves</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.move.line</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('manufacture_order_id', '=', active_id)]</field>
        </record>

    <record model="ir.actions.act_window" id="action_mrp_uo_account_moves">
            <field name="name">Account Moves</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.move.line</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('unbuild_order_id', '=', active_id)]</field>
        </record>

</odoo>
