~acsone-openerp/stock-logistic-warehouse/7.0-inventory-hierarchical-fill2-lga

« back to all changes in this revision

Viewing changes to stock_inventory_hierarchical_location/inventory_hierarchical_location_view.xml

[MERGE] several fixes for tests and broken refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<openerp>
3
 
        <data>
4
 
        
 
3
    <data>
5
4
        <record model="ir.ui.view" id="stock_inventory_hierarchical_location_form_view">
6
5
            <field name="name">hierarchical.inventory.location.form</field>
7
6
            <field name="model">stock.inventory</field>
8
7
            <field name="inherit_id" ref="stock.view_inventory_form" />
9
8
            <field name="arch" type="xml">
 
9
 
10
10
                 <xpath expr="/form//field[@name='exhaustive']" position="attributes">
11
11
                    <attribute name="attrs">{'readonly':[('parent_id', '!=', False)]}</attribute>
12
12
                </xpath>
 
13
 
13
14
                <xpath expr="/form//field[@name='location_id']" position="attributes">
14
15
                    <attribute name="on_change">onchange_location_id(location_id)</attribute>
15
16
                </xpath>
16
 
                <xpath expr="/form//field[@name='inventory_ids']" position="attributes">
 
17
 
 
18
            </field>
 
19
        </record>
 
20
 
 
21
        <record model="ir.ui.view" id="stock_ihl_exhautive_form_view">
 
22
            <field name="name">hierarchical.inventory.location.exhautive.form</field>
 
23
            <field name="model">stock.inventory</field>
 
24
            <field name="inherit_id" ref="stock_inventory_hierarchical.stock_inventory_hierarchical_form_view" />
 
25
            <field name="arch" type="xml">
 
26
                <xpath expr="//field[@name='inventory_ids']" position="attributes">
17
27
                    <attribute name="context">{'default_parent_id': active_id, 'default_exhaustive': exhaustive}</attribute>
18
28
                </xpath>
19
29
            </field>
23
33
        <record id="stock.action_inventory_form" model="ir.actions.act_window">
24
34
            <field name="context">{'full':'1', 'search_default_exhaustive':1, 'search_default_main_inventories':1}</field>
25
35
        </record>
26
 
        </data>
 
36
    </data>
27
37
</openerp>