~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to threshold_value/threshold_value_view.xml

  • Committer: Quentin THEURET
  • Date: 2011-09-14 08:24:06 UTC
  • mto: This revision was merged to the branch mainline in revision 280.
  • Revision ID: qt@tempo-consulting.fr-20110914082406-00i88ui4jkm1v3vl
UF-388 [FIX] Fixed raising exception issue on unit tests of consumption_calcultion module
UF-404 [ADD] Added the threshold_value module with basics threshold value object

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8" ?>
 
2
<openerp>
 
3
    <data noupdate="0">
 
4
    
 
5
        <record id="threshold_value_form_view" model="ir.ui.view">
 
6
                <field name="name">threshold.value.form.view</field>
 
7
                <field name="model">threshold.value</field>
 
8
                <field name="type">form</field>
 
9
                <field name="arch" type="xml">
 
10
                        <form string="Threshold value">
 
11
                                <field name="name" />
 
12
                                <field name="warehouse_id" widget="selection" />
 
13
                                <field name="category_id" on_change="category_on_change(category_id)" />
 
14
                                <field name="location_id" domain="[('warehouse_id', '=', warehouse_id)]" />
 
15
                                <field name="product_id" on_change="product_on_change(product_id)" 
 
16
                                        attrs="{'invisible': [('category_id', '!=', False)], 'required': [('category_id', '=', False)]}" />
 
17
                                <field name="active" />
 
18
                                <field name="uom_id" attrs="{'invisible': [('category_id', '!=', False)]}" />
 
19
                        </form>
 
20
                </field>
 
21
        </record>
 
22
        
 
23
        <record id="threshold_value_tree_view" model="ir.ui.view">
 
24
                <field name="name">threshold.value.tree.view</field>
 
25
                <field name="model">threshold.value</field>
 
26
                <field name="type">tree</field>
 
27
                <field name="arch" type="xml">
 
28
                        <tree string="Threshold value">
 
29
                                <field name="name" />
 
30
                                <field name="category_id" />
 
31
                                <field name="product_id" />
 
32
                                <field name="location_id" />
 
33
                        </tree>
 
34
                </field>
 
35
        </record>
 
36
        
 
37
        <record id="action_threshold_value" model="ir.actions.act_window">
 
38
                <field name="name">Threshold value</field>
 
39
                <field name="res_model">threshold.value</field>
 
40
                <field name="view_type">form</field>
 
41
                <field name="view_mode">tree,form</field>
 
42
        </record>
 
43
        
 
44
        <menuitem id="menu_threshold_value"
 
45
                          action="action_threshold_value"
 
46
                          parent="procurement.menu_stock_procurement" />
 
47
    
 
48
    </data>
 
49
</openerp>
 
 
b'\\ No newline at end of file'