<?xml version="1.0" ?>
<odoo>

    <record id="view_move_line_tree" model="ir.ui.view">
        <field name="model">account.move.line</field>
        <field name="inherit_id" ref="account.view_move_line_tree" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='company_id']" position="after">
                <field name="pms_property_id" optional="show" />
            </xpath>
        </field>
    </record>

    <record id="view_account_move_line_filter" model="ir.ui.view">
        <field name="model">account.move.line</field>
        <field name="inherit_id" ref="account.view_account_move_line_filter" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='journal_id']" position="after">
                <field name="pms_property_id" />
            </xpath>
            <xpath expr="//filter[@name='journal']" position="after">
                <filter
                    name="pms_property_id"
                    string="Property"
                    context="{'group_by':'pms_property_id'}"
                />
            </xpath>
        </field>
    </record>

</odoo>
