1
<?xml version="1.0" encoding="utf-8"?>
5
<record id="share_step0_form" model="ir.ui.view">
6
<field name="name">share.step0.form</field>
7
<field name="model">share.create</field>
8
<field name="type">form</field>
9
<field name="arch" type="xml">
11
<separator colspan="4" string="Step 1: Chose the action and the additional domain"/>
12
<field name="action_id"/>
13
<field name="domain"/>
14
<separator colspan="4"/>
15
<group col="2" colspan="4">
16
<button special="cancel" string="Cancel" icon='gtk-cancel'/>
17
<button name="do_step_1" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
23
<record id="share_step1_form" model="ir.ui.view">
24
<field name="name">share.step1.form</field>
25
<field name="model">share.create</field>
26
<field name="type">form</field>
27
<field name="arch" type="xml">
29
<separator colspan="4" string="Step 2: Chose the User type"/>
30
<field name="user_type"/>
32
<group colspan="4" attrs="{'invisible':[('user_type','!=','existing')]}">
33
<separator colspan="4" string="Exising Users"/>
34
<field colspan="4" nolabel="1" name="user_ids" domain="[('share_user','=',True)]"/>
36
<group colspan="4" attrs="{'invisible':[('user_type','!=','new')]}">
37
<separator colspan="4" string="New Users"/>
38
<field colspan="4" nolabel="1" name="new_user"/>
40
<separator colspan="4"/>
41
<group col="3" colspan="4">
42
<button special="cancel" string="Cancel" icon='gtk-cancel'/>
43
<button name="do_step_1" string="Previous" colspan="1" type="object" icon="gtk-go-back"/>
44
<button name="do_step_2" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
50
<record id="share_step2_form" model="ir.ui.view">
51
<field name="name">share.step2.form</field>
52
<field name="model">share.create</field>
53
<field name="type">form</field>
54
<field name="arch" type="xml">
56
<separator colspan="4" string="Step 3: Chose Access Mode"/>
57
<group colspan="4" attrs="{'invisible':[('read_access','!=',True)]}">
58
<field name="access_mode" attrs="{'readonly':[('write_access','!=',True)]}"/>
60
<separator colspan="4"/>
61
<group col="3" colspan="4">
62
<button special="cancel" string="Cancel" icon='gtk-cancel'/>
63
<button name="do_step_2" string="Previous" colspan="1" type="object" icon="gtk-go-back"/>
64
<button name="do_step_3" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
72
<record id="action_share_wizard" model="ir.actions.act_window">
73
<field name="name">Share Access Rules</field>
74
<field name="type">ir.actions.act_window</field>
75
<field name="res_model">share.create</field>
76
<field name="view_type">form</field>
77
<field name="view_mode">form</field>
78
<field name="view_id" ref="share_step0_form"/>
79
<field name="target">new</field>
82
<menuitem action="action_share_wizard" id="menu_action_share_wizard" parent="base.menu_security"/>
85
<record id="share_result_form" model="ir.ui.view">
86
<field name="name">share.result.form</field>
87
<field name="model">share.result</field>
88
<field name="type">form</field>
89
<field name="arch" type="xml">
91
<separator colspan="4" string="Step 4: Share Users Detail"/>
92
<field name="users" colspan="4" nolabel="1"/>
93
<separator colspan="4"/>
94
<group col="2" colspan="4">
95
<button special="cancel" string="Cancel" icon='gtk-cancel'/>
96
<button name="do_send_email" string="Send Email" type="object" icon="gtk-apply"/>