4 <record id="view_partner_property_form" model="ir.ui.view">
5 <field name="name">res.partner.purchase.property.form.inherit</field>
6 <field name="model">res.partner</field>
7 <field name="inherit_id" ref="base.view_partner_form"/>
8 <field name="priority">36</field>
9 <field name="arch" type="xml">
10 <field name="property_product_pricelist" position="after">
11 <field name="property_product_pricelist_purchase" />
16 <record id="act_res_partner_2_purchase_order" model="ir.actions.act_window">
17 <field name="name">RFQs and Purchases</field>
18 <field name="res_model">purchase.order</field>
19 <field name="view_type">form</field>
20 <field name="view_mode">tree,form,graph</field>
21 <field name="context">{'search_default_partner_id': active_id}</field>
22 <field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/>
23 <field name="help" type="html">
24 <p class="oe_view_nocontent_create">
25 This supplier has no purchase order. Click to create a new RfQ.
27 The request for quotation is the first step of the purchases flow. Once
28 converted into a purchase order, you will be able to control the reception
29 of the products and the supplier invoice.
34 <!-- Partner kanban view inherited -->
35 <record model="ir.ui.view" id="purchase_partner_kanban_view">
36 <field name="name">res.partner.kanban.purchaseorder.inherit</field>
37 <field name="model">res.partner</field>
38 <field name="inherit_id" ref="base.res_partner_kanban_view"/>
39 <field name="arch" type="xml">
40 <field name="mobile" position="after">
41 <field name="purchase_order_count"/>
43 <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
44 <a name="%(purchase.act_res_partner_2_purchase_order)d" type="action" t-if="record.purchase_order_count.value>0">
45 <t t-esc="record.purchase_order_count.value"/> Purchases
51 <record id="act_res_partner_2_supplier_invoices" model="ir.actions.act_window">
52 <field name="name">Supplier Invoices</field>
53 <field name="res_model">account.invoice</field>
54 <field name="view_type">form</field>
55 <field name="view_mode">tree,form,graph</field>
56 <field name="domain">[('type','=','in_invoice')]</field>
57 <field name="context">{'search_default_partner_id': active_id, 'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
58 <field name="help" type="html">
59 <p class="oe_view_nocontent_create">
60 Click here to record a supplier invoice.
62 Supplier invoices can be pre-generated based on purchase
63 orders or receptions. This allows you to control invoices
64 you receive from your supplier according to the draft
70 <record id="res_partner_view_purchase_buttons" model="ir.ui.view">
71 <field name="name">res.partner.view.purchase.buttons</field>
72 <field name="model">res.partner</field>
73 <field name="inherit_id" ref="base.view_partner_form" />
74 <field name="priority" eval="20"/>
75 <field name="arch" type="xml">
76 <xpath expr="//div[@name='buttons']" position="inside">
77 <button name="%(purchase.act_res_partner_2_purchase_order)d" type="action"
78 string="Purchase Orders"
79 attrs="{'invisible': [('supplier', '=', False)]}"
80 groups="purchase.group_purchase_user"/>
81 <button name="%(purchase.act_res_partner_2_supplier_invoices)d" type="action"
82 attrs="{'invisible': [('supplier', '=', False)]}"
83 string="Supplier Invoices"/>