Created
August 23, 2013 17:09
-
-
Save guerrerocarlos/6321701 to your computer and use it in GitHub Desktop.
Vista que define el campo de busqueda del modulo CRM en openerp 7.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- CRM Lead Search View --> | |
<record id="view_crm_case_leads_filter" model="ir.ui.view"> | |
<field name="name">CRM - Leads Search</field> | |
<field name="model">crm.lead</field> | |
<field name="arch" type="xml"> | |
<search string="Search Leads"> | |
<field name="name" string="Lead / Customer" filter_domain="['|','|',('partner_name','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/> | |
<field name="categ_ids" string="Category" filter_domain="[('categ_ids','ilike',self)]"/> | |
<field name="section_id" context="{'invisible_section': False}"/> | |
<field name="user_id"/> | |
<field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/> | |
<field name="create_date"/> | |
<field name="country_id" context="{'invisible_country': False}"/> | |
<separator/> | |
<filter string="Open" name="open" domain="[('state','!=','cancel')]" help="Open Leads"/> | |
<filter string="Dead" name="dead" domain="[('state','=','cancel')]"/> | |
<filter string="Unassigned" domain="[('user_id','=', False)]" help="No salesperson"/> | |
<filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]" help="Unread messages"/> | |
<filter string="Assigned to Me" | |
domain="[('user_id','=',uid)]" context="{'invisible_section': False}" | |
help="Leads that are assigned to me"/> | |
<filter string="Assigned to My Team(s)" | |
domain="[('section_id.member_ids', 'in', [uid])]" context="{'invisible_section': False}" | |
help="Leads that are assigned to any sales teams I am member of"/> | |
<separator /> | |
<filter string="Available for mass mailing" | |
name='not_opt_out' domain="[('opt_out', '=', False)]" | |
help="Leads that did not ask not to be included in mass mailing campaigns"/> | |
<separator /> | |
<group expand="0" string="Group By..."> | |
<filter string="Salesperson" domain="[]" context="{'group_by':'user_id'}"/> | |
<filter string="Team" domain="[]" context="{'group_by':'section_id'}"/> | |
<filter string="Stage" domain="[]" context="{'group_by':'stage_id'}"/> | |
<filter string="Customer" help="Partner" domain="[]" context="{'group_by':'partner_id'}"/> | |
<filter string="Country" domain="[]" context="{'group_by':'country_id'}"/> | |
<filter string="Referrer" domain="[]" context="{'group_by':'referred'}"/> | |
<filter string="Campaign" domain="[]" context="{'group_by':'type_id'}"/> | |
<filter string="Channel" domain="[]" context="{'group_by':'channel_id'}"/> | |
<filter string="Creation" domain="[]" context="{'group_by':'create_date'}"/> | |
</group> | |
<group string="Display"> | |
<filter string="Show Countries" context="{'invisible_country': False}" help="Show Countries"/> | |
<filter string="Show Sales Team" context="{'invisible_section': False}" domain="[]" help="Show Sales Team"/> | |
</group> | |
</search> | |
</field> | |
</record> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment