93 lines
4.3 KiB
XML
93 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
|
|
<record id="purchase_order_form_price_review" model="ir.ui.view">
|
|
<field name="name">purchase.order.form.price.review</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='partner_ref']" position="after">
|
|
<field name="prices_reviewed" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_order_view_tree_price_review" model="ir.ui.view">
|
|
<field name="name">purchase.order.view.tree.price.review</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_view_tree" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//tree" position="attributes">
|
|
<attribute name="decoration-success">receipt_status != 'full' and prices_reviewed</attribute>
|
|
<attribute name="decoration-danger">receipt_status != 'full' and not prices_reviewed</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='name']" position="before">
|
|
<field name="prices_reviewed" optional="hide" />
|
|
<field name="receipt_status" invisible="1" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_order_tree_price_review" model="ir.ui.view">
|
|
<field name="name">purchase.order.tree.price.review</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_tree" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//tree" position="attributes">
|
|
<attribute name="decoration-success">receipt_status != 'full' and prices_reviewed</attribute>
|
|
<attribute name="decoration-danger">receipt_status != 'full' and not prices_reviewed</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='name']" position="before">
|
|
<field name="prices_reviewed" optional="hide" />
|
|
<field name="receipt_status" invisible="1" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_order_kpis_tree_price_review" model="ir.ui.view">
|
|
<field name="name">purchase.order.kpis.tree.price.review</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_kpis_tree" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//tree" position="attributes">
|
|
<attribute name="decoration-success">receipt_status != 'full' and prices_reviewed</attribute>
|
|
<attribute name="decoration-danger">receipt_status != 'full' and not prices_reviewed</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='name']" position="before">
|
|
<field name="prices_reviewed" optional="hide" />
|
|
<field name="receipt_status" invisible="1" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_purchase_order_filter_price_review" model="ir.ui.view">
|
|
<field name="name">purchase.order.filter.price.review</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.view_purchase_order_filter" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//filter[@name='starred']" position="after">
|
|
<filter
|
|
name="prices_not_reviewed"
|
|
string="Prices Not Reviewed"
|
|
domain="[('prices_reviewed', '=', False)]"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_order_view_search_price_review" model="ir.ui.view">
|
|
<field name="name">purchase.order.view.search.price.review</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_view_search" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//filter[@name='starred']" position="after">
|
|
<filter
|
|
name="prices_not_reviewed"
|
|
string="Prices Not Reviewed"
|
|
domain="[('prices_reviewed', '=', False)]"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|