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

« back to all changes in this revision

Viewing changes to msf_access_rights/views/field_access_rule_view.xml

[ADD] module folders and manifests. field_access_rule and field_access_rule_line model definitions. Views for both models. Menu item for models.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
5
        <!-- Field Access Rule Tree View -->
 
6
        <record id="field_access_rule_list_view" model="ir.ui.view">
 
7
            <field name='name'>Field Access Rule List</field>
 
8
            <field name='model'>msf_access_rights.field_access_rule</field>
 
9
            <field name="type">tree</field>
 
10
            <field name="arch" type="xml">
 
11
                <form string="Field Access Rule">
 
12
                    <field name="active" />
 
13
                    <field name="name" />
 
14
                    <field name="model" />
 
15
                    <field name="instance_level" />
 
16
                    <field name="domain" />
 
17
                    <field name="status" />
 
18
                </form>
 
19
            </field>
 
20
        </record>
 
21
 
 
22
        <!-- Field Access Rule Search View -->
 
23
        <record id="field_access_rule_search" model="ir.ui.view">
 
24
            <field name='name'>Field Access Rule Search</field>
 
25
            <field name='model'>msf_access_rights.field_access_rule</field>
 
26
            <field name="type">search</field>
 
27
            <field name="arch" type="xml">
 
28
                <search string="Search Ideas">
 
29
                    <group col="6" colspan="4">     
 
30
                        <filter string="Active" icon="terp-partner"
 
31
                            domain="[('active','=','1')]"
 
32
                            help="Show only Field Access Rules marked as Active"/>
 
33
                        <filter string="Inactive" icon="terp-partner"
 
34
                            domain="[('active','!=','1')]"
 
35
                            help="Show only Field Access Rules marked as Inactive"/>
 
36
                        <field name="name" />
 
37
                    </group>
 
38
                </search>
 
39
            </field>
 
40
        </record>
 
41
 
 
42
        <!-- Field Access Rule Form View -->
 
43
        <record id="field_access_rule_form_view" model="ir.ui.view">
 
44
            <field name='name'>Field Access Rule Form</field>
 
45
            <field name='model'>msf_access_rights.field_access_rule</field>
 
46
            <field name="type">form</field>
 
47
            <field name="arch" type="xml">
 
48
                <form>
 
49
                    <group col="6" colspan="4">
 
50
                        <field name="name" default_focus='1' colspan="1" />
 
51
                        <field name="model" on_change='onchange_model(model)' colspan="1" />
 
52
                        <field name="model_name" readonly='1' colspan="1" />    
 
53
                        <field name="instance_level" colspan="1" />
 
54
                        <field name="domain_filter" on_change='onchange_domain_filter(domain_filter)' colspan="1" />
 
55
                        <button type='object' name='create_new_filter_button' string='Create New filter' icon='stock/gtk-add' colspan="2" />
 
56
                    </group>
 
57
 
 
58
                    <separator string="Domain" colspan="2" />
 
59
                    <separator string="Groups" colspan="2" />
 
60
                    <field name="domain" colspan="2" nolabel="1" />
 
61
                    <field name="groups" colspan="2" nolabel="1" />
 
62
 
 
63
                    <separator string="Field Access Rule Lines" colspan="4" />
 
64
                    <button type='object' name='generate_rules_button' string='Generate Rules' icon='stock/gtk-execute' colspan="2" />
 
65
                    <button type='object' name='manage_line_lines_button' string='Manage Rule Lines' colspan="2" icon='stock/gtk-find-and-replace' />
 
66
                    <field name="field_access_rule_line_ids" colspan='4' nolabel='1' />
 
67
 
 
68
                    <separator string="Comments" colspan="4" />
 
69
                    <field name="comment" nolabel='1' colspan="4" />
 
70
 
 
71
                    <separator string="Rule Status" colspan="4" />
 
72
                    <group col="6" colspan="4">
 
73
                        <field name="active" colspan="2" />
 
74
                        <field name="status" colspan="2" />
 
75
                        <button type='object' name='validate_button' string='Validate' icon='icons/camera_test' colspan="2" />
 
76
                    </group>
 
77
                </form>
 
78
            </field>
 
79
        </record>
 
80
 
 
81
    </data>
 
82
</openerp>