112 lines
4.5 KiB
XML
112 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
© 2014-2016 Akretion (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
|
|
<record id="purchase_order_form" model="ir.ui.view">
|
|
<field name="name">usability.purchase.order.form</field>
|
|
<field name="model">purchase.order</field>
|
|
<!-- high priority because we change the string of a page
|
|
and other modules inherit the page using the original string -->
|
|
<field name="priority">1000</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<!-- So far, I consider the shortcut icon are enough
|
|
<notebook position="inside">
|
|
<page string="Deliveries" states="approved,except_picking,except_invoice,done">
|
|
<field name="picking_ids" nolabel="1"/>
|
|
</page>
|
|
<page string="Invoices" states="approved,except_picking,except_invoice,done">
|
|
<field name="invoice_ids" nolabel="1" context="{'form_view_ref': 'account.invoice_supplier_form'}"/>
|
|
</page>
|
|
</notebook>
|
|
-->
|
|
<!--
|
|
<page string="Deliveries & Invoices" position="attributes">
|
|
<attribute name="string">Other Information</attribute>
|
|
</page> -->
|
|
<field name="fiscal_position_id" position="attributes">
|
|
<attribute name="widget">selection</attribute>
|
|
</field>
|
|
<button name="button_cancel" type="object" position="attributes">
|
|
<attribute name="confirm">Are you sure you want to cancel this purchase order?</attribute>
|
|
</button>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_order_tree" model="ir.ui.view">
|
|
<field name="name">usability.purchase.order.tree</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_tree"/>
|
|
<field name="arch" type="xml">
|
|
<field name="state" position="after">
|
|
<field name="is_shipped" invisible="not context.get('show_purchase', False)"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_purchase_order_filter" model="ir.ui.view">
|
|
<field name="name">usability.purchase.order.tree</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.view_purchase_order_filter"/>
|
|
<field name="arch" type="xml">
|
|
<filter name="not_invoiced" position="before">
|
|
<filter name="shipped" string="Fully Received" domain="[('is_shipped', '=', True)]"/>
|
|
<filter name="not_shipped" string="Not Fully Received" domain="[('is_shipped', '=', False)]"/>
|
|
<separator/>
|
|
</filter>
|
|
<field name="name" position="attributes">
|
|
<attribute name="string">Reference or Origin</attribute>
|
|
<attribute name="filter_domain">['|', ('name', 'ilike', self), ('origin', 'ilike', self)]</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Default measure should be Total without taxes instead of Total with taxes -->
|
|
<record id="purchase_order_pivot" model="ir.ui.view">
|
|
<field name="name">usability.purchase.order.pivot</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_pivot"/>
|
|
<field name="arch" type="xml">
|
|
<field name="amount_total" type="measure" position="replace">
|
|
<field name="amount_untaxed" type="measure"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_order_graph" model="ir.ui.view">
|
|
<field name="name">usability.purchase.order.graph</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_graph"/>
|
|
<field name="arch" type="xml">
|
|
<field name="amount_total" type="measure" position="replace">
|
|
<field name="amount_untaxed" type="measure"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_order_calendar" model="ir.ui.view">
|
|
<field name="name">usability.purchase.order.calendar</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_calendar"/>
|
|
<field name="arch" type="xml">
|
|
<field name="amount_total" position="replace">
|
|
<field name="amount_untaxed" widget="monetary"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!-- Do not show cancelled quotations by default in "Requests for Quotation" -->
|
|
<record id="purchase.purchase_rfq" model="ir.actions.act_window">
|
|
<field name="context">{'search_default_draft': 1, 'search_default_todo': 1}</field>
|
|
</record>
|
|
|
|
|
|
</odoo>
|