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

    <record id="mrp_production_workorder_tree_editable_view" model="ir.ui.view">
        <field name="name">mrp.production.work.order.tree.editable</field>
        <field name="model">mrp.workorder</field>
        <field
            name="inherit_id"
            ref="mrp.mrp_production_workorder_tree_editable_view"
        />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='duration']" position="after">
                <field
                    name="last_worker_id"
                    widget="many2one_avatar_user"
                    optional="hide"
                    attrs="{'invisible': [('production_state', '=', 'draft')], 'column_invisible': [('parent.state', '=', 'draft')]}"
                />
            </xpath>
        </field>
    </record>

</odoo>
