1
<?xml version="1.0" encoding="utf-8"?>
4
stock available_immediately for OpenERP
5
Author Guewen Baconnier. Copyright Camptocamp SA
6
Copyright (C) 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
7
The licence is in the file __openerp__.py
12
<record model="ir.ui.view" id="view_normal_stock_active_qty_form">
13
<field name="name">product.normal.stock.active.qty.form.inherit</field>
14
<field name="model">product.product</field>
15
<field name="type">form</field>
16
<field name="inherit_id" ref="stock.view_normal_stock_property_form"/>
17
<field name="arch" type="xml">
18
<field name="virtual_available" position="after">
20
<field name="immediately_usable_qty" />
25
<record model="ir.ui.view" id="product_product_tree_view">
26
<field name="name">product_immediately_usable.product_product_tree_view</field>
27
<field name="model">product.product</field>
28
<field name="type">form</field>
29
<field name="inherit_id" ref="product.product_product_tree_view"/>
30
<field name="arch" type="xml">
32
<tree position="attributes">
33
<attribute name="colors">red:immediately_usable_qty<0;blue:immediately_usable_qty>=0 and state in ('draft', 'end', 'obsolete');black:immediately_usable_qty>=0 and state not in ('draft', 'end', 'obsolete')</attribute>
35
<field name="virtual_available" position="replace">
36
<field name="immediately_usable_qty" />