~vauxoo/addons-vauxoo/8.0-import_tax_tariff-dev-yani-rev-2

« back to all changes in this revision

Viewing changes to add_followers/wizard/add_followers_view.xml

  • Committer: Jose Morales
  • Date: 2013-05-18 03:08:16 UTC
  • mto: (543.6.1 merge_7)
  • mto: This revision was merged to the branch mainline in revision 797.
  • Revision ID: jose@vauxoo.com-20130518030816-9d4364toeqiwtpvc
 
[ADD] In many cases there is the need to add multiple users to multiple tasks or poryectos, which is a tedious task because you have to open each document and do it manually.

That is why you add a module that meets this need and allows you to add many followers to many tasks and projects in one step, telling new followers just happened

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
        <!-- wizard view -->
 
6
        <record model="ir.ui.view" id="add_followers_wizard_invite_form">
 
7
            <field name="name">Add Followers</field>
 
8
            <field name="model">mail.wizard.invite</field>
 
9
            <field name="priority">200</field>
 
10
            <field name="arch" type="xml">
 
11
                <form string="Add Followers" version="7.0">
 
12
                    <group>
 
13
                        <field name="groups" attrs="{'invisible':['|',('partners','=', True),
 
14
                                                                      ('p_a_g','=',True)]}" on_change="load_partners(mail_groups,groups,p_a_g)"/>
 
15
                        <field name="partners" attrs="{'invisible':['|',('groups','=', True),
 
16
                                                                      ('p_a_g','=',True)]}"/>
 
17
                        <field name="p_a_g" attrs="{'invisible':['|',('groups','=', True),
 
18
                                                                      ('partners','=',True)]}" on_change="load_partners(mail_groups,groups,p_a_g)"/>
 
19
                        <field name="mail_groups" on_change="load_partners(mail_groups,groups,p_a_g)"
 
20
                            attrs="{'invisible':['|',('partners','=', True),
 
21
                                                     ('p_a_g','=',False),
 
22
                                                     ('groups','=',False)]}"
 
23
                                                     widget="many2many_tags_email"/>
 
24
                        <field name="res_model" invisible="1"/>
 
25
                        <field name="res_id" invisible="1"/>
 
26
                        <field name="partner_ids"  widget="many2many_tags_email"
 
27
                                attrs="{'invisible':['|',('groups','=', True),
 
28
                                ('p_a_g','=',False),
 
29
                                ('partners','=',False)]}"
 
30
                                placeholder="Add contacts to notify..."
 
31
                                context="{'force_email':True, 'show_email':True}"/>
 
32
                        <field name="message"/>
 
33
                    </group>
 
34
                    <footer>
 
35
                        <button string="Add Followers"
 
36
                            name="add_followers" context="{'second':True}" type="object" class="oe_highlight"  />
 
37
                        or
 
38
                        <button string="Cancel" class="oe_link" special="cancel" />    
 
39
                    </footer>
 
40
                </form>
 
41
            </field>
 
42
        </record>
 
43
 
 
44
        <act_window name="Add Followers"
 
45
            key2="client_action_multi"                                             
 
46
            res_model="mail.wizard.invite"                                
 
47
            src_model="project.task"                                            
 
48
            view_type="form"                                                       
 
49
            view_mode="form"                                                       
 
50
            view_id="add_followers_wizard_invite_form"
 
51
            target="new"                                                           
 
52
            id="add_many_followers_task_id"/> 
 
53
 
 
54
        <act_window name="Add Followers"
 
55
            key2="client_action_multi"                                             
 
56
            res_model="mail.wizard.invite"                                
 
57
            src_model="project.project"                                            
 
58
            view_type="form"                                                       
 
59
            view_mode="form"                                                       
 
60
            view_id="add_followers_wizard_invite_form"
 
61
            target="new"                                                           
 
62
            id="add_many_followers_project_id"/> 
 
63
 
 
64
    </data>
 
65
</openerp>