1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0"?>
<!--
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
@author: La Louve
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<record id="action_invoice_refund" model="ir.actions.act_window">
<field name="name">Vendor Refunds</field>
<field name="res_model">account.invoice</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,calendar,pivot,graph</field>
<field eval="False" name="view_id"/>
<field name="domain">[('type','=','in_refund')]</field>
<field name="context">{'default_type': 'in_refund', 'type': 'in_refund', 'journal_type': 'purchase'}</field>
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
</record>
<record id="invoice_supplier_form_inherit" model="ir.ui.view">
<field name="name">invoice.supplier.form.inherit</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='discount']" position="attributes">
<attribute name="groups">account.group_account_invoice,sale.group_discount_per_so_line</attribute>
</xpath>
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='price_unit']" position="after">
<field name="base_price"/>
</xpath>
</field>
</record>
<record id="view_supplierinfo_search" model="ir.ui.view">
<field name="name">product.supplierinfo.search</field>
<field name="model">product.supplierinfo</field>
<field name="arch" type="xml">
<search string="Supplierinfo">
<field name="name" string="Supplier"/>
<field name="product_tmpl_id" string="Product" filter_domain="['|', '|', '|', ('product_tmpl_id.name', 'ilike', self), ('default_code', 'ilike', self), ('product_name', 'ilike', self), ('product_code', 'ilike', self)]"/>
<filter string="Product Active" name="is_product_active" domain="[('is_product_active','=',1)]"/>
<separator orientation="vertical"/>
<filter string="Product can be purchase" name="product_purchase_ok" domain="[('product_purchase_ok','=',1)]"/>
<group expand="0" string="Group By">
<filter string="Product" domain="" context="{'group_by':'product_tmpl_id'}"/>
<filter string="Supplier" domain="" context="{'group_by': 'name'}"/>
</group>
</search>
</field>
</record>
<record id="product.product_supplierinfo_type_action" model="ir.actions.act_window">
<field name="name">Supplier Pricelist</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.supplierinfo</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{
'visible_product_tmpl_id': False,
'search_default_is_product_active': 1,
'search_default_product_purchase_ok': 1
}</field>
</record>
</odoo>