123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="view_partner_form" model="ir.ui.view">
- <field name="name">view_partner_form</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="base.view_partner_form"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='fax']" position="attributes">
- <attribute name="invisible">1</attribute>
- </xpath>
- <xpath expr="//notebook[@colspan='4']" position="inside">
- <page string="Historial Tareas de CRM">
- <field name="task_ids" widget="many2one_clickable">
- <tree editable="top" colors="red:expired_date == True and state == 'pending';gray:state == 'cancel';green:state == 'pending'">
- <field name="task_type_id" options='{"no_open": True, "no_create": 1, "no_create_edit": 1}' required="True"/>
- <field name="name"/>
- <field name="user_id" required="True"/>
- <field name="date_action_next"/>
- <field name="state"/>
- <field name="expired_date" invisible="1"/>
- <field name="description"/>
- <button name="action_done" string="Realizado" type="object" icon="gtk-apply" attrs="{'invisible':[('state','=','done')]}"/>
- <button name="action_done" string="Pendiente" type="object" icon="gtk-undo" attrs="{'invisible':[('state','=','pending')]}"/>
- <button name="action_cancel" string="Cancelado" type="object" icon="gtk-cancel" attrs="{'invisible':[('state','=','cancel')]}"/>
- </tree>
- </field>
- </page>
- </xpath>
- </field>
- </record>
- <record id="view_partner_social_form1" model="ir.ui.view">
- <field name="name">view_partner_social_form1</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="partner_social_fields.view_partner_social_form1"/>
- <field name="arch" type="xml">
- <group col="3" position="inside">
- <field name="instagram"/>
- <button name="goto_instagram" string="Ir" type="object"/>
- </group>
- </field>
- </record>
- <record id="view_partners_form_crm1" model="ir.ui.view">
- <field name="name">view_partners_form_crm1</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="crm.view_partners_form_crm1"/>
- <field name="arch" type="xml">
- <xpath expr="//button[@name='schedule_meeting']" position="attributes">
- <attribute name="invisible">1</attribute>
- </xpath>
- </field>
- </record>
- <record id="view_partners_form_crm_calls" model="ir.ui.view">
- <field name="name">view_partners_form_crm_calls</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="crm.view_partners_form_crm_calls"/>
- <field name="arch" type="xml">
- <xpath expr="//button[@name='%(crm.crm_case_categ_phone_incoming0)d']" position="attributes">
- <attribute name="invisible">1</attribute>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|