osbzr/gooderp_addons

View on GitHub
buy/report/buy_order_detail_view.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<openerp>
    <data>
        <record id="buy_order_detail_tree" model="ir.ui.view">
            <field name="name">buy.order.detail.tree</field>
            <field name="model">buy.order.detail</field>
            <field name="arch" type="xml">
                <tree string="采购明细表" create="false">
                    <field name="date"/>
                    <field name="order_name"/>
                    <button name="view_detail" type="object" string="查看明细" icon="fa-search"/>
                    <field name="type"/>
                    <field name="partner_id"/>
                    <field name="goods_code"/>
                    <field name="goods_id"/>
                    <field name="attribute" groups='goods.multi_attrs_groups'/>
                    <field name="warehouse_dest_id" groups='warehouse.multi_warehouse_groups'/>
                    <field name="qty" sum="数量合计"/>
                    <field name="uom"/>
                    <field name="price"/>
                    <field name="amount" sum="采购金额合计"/>
                    <field name="tax_amount" sum="税额合计" groups='buy.in_tax_groups'/>
                    <field name="subtotal" sum="价税合计的合计" groups='buy.in_tax_groups'/>
                    <field name="note"/>
                </tree>
            </field>
        </record>
    </data>
</openerp>