~eduardo-bayardo-bias/openobject-addons/bias_trunk_v8

« back to all changes in this revision

Viewing changes to crm_extra/crm_view.xml

  • Committer: Eduardo Bayardo
  • Date: 2016-10-06 21:28:13 UTC
  • Revision ID: eduardo.bayardo@bias.com.mx-20161006212813-z4utlenj8qtt3dlg
update crm protocol module

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<openerp>
3
3
    <data>
4
4
 
 
5
<!--
 
6
        <field name="groups_id" eval="[(6, 0, [ref('crm_extra.group_assign_user'),ref('crm_extra.group_view_assigned_user'),ref('crm_extra.group_operation_assigned_user')])]" />                
 
7
-->
 
8
    <!-- CRM Lead Kanban View  -->
 
9
    <record model="ir.ui.view" id="crm_case_kanban_view_leads">
 
10
        <field name="name">CRM - Leads Kanban</field>
 
11
        <field name="model">crm.lead</field>
 
12
        <field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
 
13
        <field name="arch" type="xml">
 
14
            <xpath expr="//field[@name='name']" position="before">
 
15
                    <field name="number"/> - 
 
16
            </xpath>
 
17
        </field>
 
18
    </record>
5
19
    <record model="ir.ui.view" id="crm_case_form_view_inherit">
6
20
        <field name="name">crm.lead.inherit.form</field>
7
21
        <field name="model">crm.lead</field>
8
22
        <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
9
 
<!--        <field name="groups_id" 
10
 
               eval="[(6, 0, [ref('crm_extra.group_assign_user'),ref('crm_extra.group_view_assigned_user'),ref('crm_extra.group_operation_assigned_user')])]" />                
11
 
-->
12
23
        <field name="arch" type="xml">
 
24
            <xpath expr="//label" position="before">
 
25
                <h1><field name="number_view" on_change="on_change_user(user_id, number, project_type, context)"/></h1>
 
26
            </xpath>
13
27
            <xpath expr="//field[@name='user_id']" position="replace">
14
28
                <field name="user_id" on_change="on_change_user(user_id, number, project_type, context)" 
15
29
                       context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'base.group_sale_salesman_all_leads'] }"/>
22
36
                            <field name="assigned_id"/>
23
37
                        </group>
24
38
                        <group>
 
39
                            <field name="number" invisible="1"/>
25
40
                            <label  string="Number: Commertial:NN, Year:YY, Sequence:NNNN" colspan="2"/>
26
 
                            <field name="number" invisible="1"/>
27
41
                            <field name="sequence" on_change="on_change_user(user_id, number, project_type, context)"/>
28
42
                        </group>
29
43
                    </group>