|
|
@ -13,4 +13,22 @@ |
|
|
|
</field> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="product_product_tree_view" model="ir.ui.view"> |
|
|
|
<field name="name"> |
|
|
|
product.product.view.form.inherit.low.stocks.product.alert |
|
|
|
</field> |
|
|
|
<field name="model">product.product</field> |
|
|
|
<field name="inherit_id" ref="product.product_product_tree_view"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="//field[@name='name']" position="after"> |
|
|
|
<field name="alert_state" column_invisible="True"/> |
|
|
|
<field name="alert_tag" column_invisible="True"/> |
|
|
|
</xpath> |
|
|
|
<list position="attributes"> |
|
|
|
<attribute name="decoration-danger">alert_state == True</attribute> |
|
|
|
</list> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
</odoo> |
|
|
|