No code changes, simply move them to the right places, the place where they should be. This will ease the split between stock and purchase addons.
37 lines
1.6 KiB
XML
37 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="view_purchase_bill_union_filter" model="ir.ui.view">
|
|
<field name="name">purchase.bill.union.select</field>
|
|
<field name="model">purchase.bill.union</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Reference Document">
|
|
<field name="name" string="Reference" filter_domain="['|', ('name','ilike',self), ('reference','=like',str(self)+'%')]"/>
|
|
<field name="amount"/>
|
|
<separator/>
|
|
<field name="partner_id" operator="child_of"/>
|
|
<separator/>
|
|
<filter name="purchase_orders" string="Purchase Orders" domain="[('purchase_order_id', '!=', False)]"/>
|
|
<filter name="vendor_bills" string="Vendor Bills" domain="[('vendor_bill_id', '!=', False)]"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_purchase_bill_union_tree" model="ir.ui.view">
|
|
<field name="name">purchase.bill.union.tree</field>
|
|
<field name="model">purchase.bill.union</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Reference Document">
|
|
<field name="name"/>
|
|
<field name="reference"/>
|
|
<field name="partner_id"/>
|
|
<field name="date"/>
|
|
<field name="amount"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|