osbzr/gooderp_addons

View on GitHub
sell/views/customer_view.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<odoo>
    <record id="customer_address_form_inherit" model="ir.ui.view">
        <field name="name">customer.address.form.inherit</field>
        <field name="model">partner</field>
        <field name="inherit_id" ref="core.customer_address_form"/>
        <field name="arch" type="xml">
            <xpath expr='//div' position='before'>
                <div class="oe_button_box" name="button_box">
                    <button type="object"
                            string="购货记录(最近1年)"
                            name="action_view_sell_history"
                            class="oe_stat_button"
                            icon="fa-list-alt">
                    </button>
                </div>
            </xpath>
        </field>
    </record>
</odoo>