diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/purchase/report/purchase_bill_views.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/purchase/report/purchase_bill_views.xml')
| -rw-r--r-- | addons/purchase/report/purchase_bill_views.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/addons/purchase/report/purchase_bill_views.xml b/addons/purchase/report/purchase_bill_views.xml new file mode 100644 index 00000000..5830837f --- /dev/null +++ b/addons/purchase/report/purchase_bill_views.xml @@ -0,0 +1,36 @@ +<?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> |
