2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
<record id="view_partner_property_form" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.purchase.property.form.inherit</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
|
|
<field name="priority">36</field>
|
|
|
|
<field name="groups_id" eval="[(4, ref('base.group_multi_currency'))]"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<group name="purchase" position="inside">
|
|
|
|
<field name="property_purchase_currency_id" options="{'no_create': True, 'no_open': True}"/>
|
|
|
|
</group>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="act_res_partner_2_purchase_order" model="ir.actions.act_window">
|
|
|
|
<field name="name">RFQs and Purchases</field>
|
|
|
|
<field name="res_model">purchase.order</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form,graph</field>
|
|
|
|
<field name="context">{'search_default_partner_id': active_id}</field>
|
|
|
|
<field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
This vendor has no purchase order. Click to create a new RfQ.
|
|
|
|
</p><p>
|
|
|
|
The request for quotation is the first step of the purchases flow. Once
|
|
|
|
converted into a purchase order, you will be able to control the receipt
|
|
|
|
of the products and the vendor bill.
|
|
|
|
</p>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Partner kanban view inherited -->
|
|
|
|
<record model="ir.ui.view" id="purchase_partner_kanban_view">
|
|
|
|
<field name="name">res.partner.kanban.purchaseorder.inherit</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
|
|
|
|
<field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="mobile" position="after">
|
|
|
|
<field name="purchase_order_count"/>
|
|
|
|
</field>
|
|
|
|
<xpath expr="//div[hasclass('oe_kanban_partner_links')]" position="inside">
|
|
|
|
<span t-if="record.purchase_order_count.value>0" class="badge"><i class="fa fa-fw fa-shopping-cart"/><t t-esc="record.purchase_order_count.value"/></span>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="act_res_partner_2_supplier_invoices" model="ir.actions.act_window">
|
|
|
|
<field name="name">Vendor Bills</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form,graph</field>
|
|
|
|
<field name="domain">[('type','=','in_invoice')]</field>
|
|
|
|
<field name="context">{'search_default_partner_id': active_id, 'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click here to record a vendor bill.
|
|
|
|
</p><p>
|
|
|
|
Vendors bills can be pre-generated based on purchase
|
|
|
|
orders or receipts. This allows you to control bills
|
|
|
|
you receive from your vendor according to the draft
|
2018-01-16 11:34:37 +01:00
|
|
|
document in Flectra.
|
2018-01-16 06:58:15 +01:00
|
|
|
</p>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="res_partner_view_purchase_buttons" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.view.purchase.buttons</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field name="priority" eval="20"/>
|
|
|
|
<field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<button name="toggle_active" position="before">
|
|
|
|
<button class="oe_stat_button" name="%(purchase.act_res_partner_2_purchase_order)d" type="action"
|
|
|
|
attrs="{'invisible': [('supplier', '=', False)]}" icon="fa-shopping-cart">
|
|
|
|
<field string="Purchases" name="purchase_order_count" widget="statinfo"/>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<page name="internal_notes" position="inside">
|
|
|
|
<group colspan="2" col="2" groups="purchase.group_warning_purchase">
|
|
|
|
<separator string="Warning on the Purchase Order" colspan="4"/>
|
|
|
|
<field name="purchase_warn" nolabel="1" />
|
|
|
|
<field name="purchase_warn_msg" colspan="3" nolabel="1"
|
|
|
|
attrs="{'required':[('purchase_warn','!=','no-message')],'readonly':[('purchase_warn','=','no-message')]}"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="res_partner_view_purchase_account_buttons" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.view.purchase.account.buttons</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field name="priority" eval="20"/>
|
|
|
|
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<button name="toggle_active" position="before">
|
|
|
|
<button class="oe_stat_button" name="%(purchase.act_res_partner_2_supplier_invoices)d" type="action"
|
|
|
|
attrs="{'invisible': [('supplier', '=', False)]}" icon="fa-pencil-square-o" help="Vendor Bills">
|
|
|
|
<field string="Vendor Bills" name="supplier_invoice_count" widget="statinfo"/>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|