add purchase_price_review_status
This commit is contained in:
parent
d9a0eeb878
commit
f586c99df9
10 changed files with 260 additions and 0 deletions
39
purchase_price_review_status/views/stock_picking_views.xml
Normal file
39
purchase_price_review_status/views/stock_picking_views.xml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="stock_picking_tree_price_review" model="ir.ui.view">
|
||||
<field name="name">stock.picking.tree.price.review</field>
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="inherit_id" ref="stock.vpicktree" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="decoration-success">picking_type_code == 'incoming' and state not in ('done', 'cancel') and purchase_id and purchase_prices_reviewed</attribute>
|
||||
<attribute name="decoration-danger">picking_type_code == 'incoming' and state not in ('done', 'cancel') and purchase_id and not purchase_prices_reviewed</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='name']" position="before">
|
||||
<field name="purchase_id" invisible="1" />
|
||||
<field name="purchase_prices_reviewed" optional="hide" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_picking_internal_search_price_review" model="ir.ui.view">
|
||||
<field name="name">stock.picking.internal.search.price.review</field>
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_internal_search" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//filter[@name='starred']" position="after">
|
||||
<filter
|
||||
name="purchase_prices_not_reviewed"
|
||||
string="Purchase Prices Not Reviewed"
|
||||
domain="[
|
||||
('picking_type_code', '=', 'incoming'),
|
||||
('purchase_id', '!=', False),
|
||||
('purchase_id.prices_reviewed', '=', False)
|
||||
]"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue