~numerigraphe-team/stock-logistic-warehouse/7.0-inventory-location

« back to all changes in this revision

Viewing changes to stock_available_immediately/product_view.xml

  • Committer: nicolas.bessi at camptocamp
  • Date: 2012-04-24 08:53:45 UTC
  • Revision ID: nicolas.bessi@camptocamp.com-20120424085345-501tm0v06a17x6ir
[ADD] moved modules
(lp:c2c-addons/6.1  rev 28.1.10)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
 
 
3
<!--
 
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
 
8
-->
 
9
 
 
10
<openerp>
 
11
    <data>
 
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">
 
19
                    <newline/>
 
20
                    <field name="immediately_usable_qty" />
 
21
                </field>   
 
22
            </field>
 
23
        </record>
 
24
        
 
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">
 
31
                <data>
 
32
                    <tree position="attributes">
 
33
                        <attribute name="colors">red:immediately_usable_qty&lt;0;blue:immediately_usable_qty&gt;=0 and state in ('draft', 'end', 'obsolete');black:immediately_usable_qty&gt;=0 and state not in ('draft', 'end', 'obsolete')</attribute>
 
34
                    </tree>
 
35
                    <field name="virtual_available" position="replace">
 
36
                        <field name="immediately_usable_qty" />
 
37
                    </field>
 
38
                </data>
 
39
            </field>
 
40
        </record>
 
41
 
 
42
    </data>
 
43
</openerp>