| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="crm_reveal_rule_form" model="ir.ui.view"> |
| 4 | <field name="name">crm.reveal.rule.form</field> |
| 5 | <field name="model">crm.reveal.rule</field> |
| 6 | <field name="arch" type="xml"> |
| 7 | <form> |
| 8 | <sheet> |
| 9 | <div class="oe_button_box" name="button_box"> |
| 10 | <button name="action_get_opportunity_tree_view" class="oe_stat_button" type="object" icon="fa-star" invisible="lead_type != 'opportunity' and opportunity_count == 0"> |
| 11 | <div class="o_stat_info"> |
| 12 | <field name="opportunity_count"/> |
| 13 | <span class="o_stat_text"> Opportunities </span> |
| 14 | </div> |
| 15 | </button> |
| 16 | <button name="action_get_lead_tree_view" class="oe_stat_button" type="object" icon="fa-star" groups="crm.group_use_lead" invisible="lead_type != 'lead' and lead_count == 0"> |
| 17 | <div class="o_stat_info"> |
| 18 | <field name="lead_count"/> |
| 19 | <span class="o_stat_text"> Leads </span> |
| 20 | </div> |
| 21 | </button> |
| 22 | </div> |
| 23 | <div class="oe_title mb8"> |
| 24 | <label for="name"/> |
| 25 | <h1 class="o_row"> |
| 26 | <field name="name" placeholder="e.g. US Visitors"/> |
| 27 | </h1> |
| 28 | </div> |
| 29 | <div class="row"> |
| 30 | <div class="col-md-6"> |
| 31 | <group> |
| 32 | <field name="lead_for" widget="radio"/> |
| 33 | <field name="active" widget="boolean_toggle"/> |
| 34 | </group> |
| 35 | <group string="Website Traffic Conditions"> |
| 36 | <field name="country_ids" widget="many2many_tags" options="{'no_open': True, 'no_create': True}"/> |
| 37 | <field name="website_id" options="{'no_open': True, 'no_create_edit': True}" groups="website.group_multi_website"/> |
| 38 | <field name="state_ids" widget="many2many_tags" invisible="not country_ids" domain="[('country_id', 'in', country_ids)]"/> |
| 39 | <field name="regex_url" widget="website_urls" placeholder="e.g. /page"/> |
| 40 | <field name="sequence"/> |
| 41 | </group> |
| 42 | </div> |
| 43 | <div class="col-md-6"> |
| 44 | <div class="alert alert-info" role="alert"> |
| 45 | 1 credit is consumed per visitor matching the website traffic conditions and whose company can be identified.<br/> |
| 46 | <span invisible="lead_for != 'people'">Up to <field name="extra_contacts" readonly="1" class="mb0"/> additional credit(s) are consumed if the company matches this rule.</span> |
| 47 | </div> |
| 48 | <div class="alert alert-info" role="alert" invisible="lead_for != 'people'"> |
| 49 | Make sure you know if you have to be GDPR compliant for storing personal data. |
| 50 | </div> |
| 51 | </div> |
| 52 | </div> |
| 53 | <group> |
| 54 | <group string="Opportunity Generation Conditions"> |
| 55 | <field name="industry_tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True, 'no_quick_create': True}"/> |
| 56 | <field name="filter_on_size"/> |
| 57 | <label for="company_size_min" invisible="not filter_on_size"/> |
| 58 | <div invisible="not filter_on_size"> |
| 59 | From <field name="company_size_min" class="oe_inline col-sm-3" /> |
| 60 | to <field name="company_size_max" class="oe_inline col-sm-3" /> |
| 61 | employees |
| 62 | </div> |
| 63 | </group> |
| 64 | <group string="Contact Filter" invisible="lead_for != 'people'"> |
| 65 | <field name="extra_contacts"/> |
| 66 | <field name="contact_filter_type" widget="radio"/> |
| 67 | <field name="preferred_role_id" invisible="contact_filter_type != 'role'" options="{'no_create_edit': True, 'no_quick_create': True}"/> |
| 68 | <field name="other_role_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True, 'no_quick_create': True}" invisible="not preferred_role_id or contact_filter_type != 'role'"/> |
| 69 | <field name="seniority_id" invisible="contact_filter_type != 'seniority'" options="{'no_create_edit': True, 'no_quick_create': True}"/> |
| 70 | </group> |
| 71 | </group> |
| 72 | <field name="lead_type" invisible="1"/> |
| 73 | <separator invisible="lead_type != 'lead'" string="Lead Data" /> |
| 74 | <separator invisible="lead_type != 'opportunity'" string="Opportunity Data" /> |
| 75 | <group> |
| 76 | <group> |
| 77 | <field name="lead_type" groups="crm.group_use_lead"/> |
| 78 | <field name="suffix"/> |
| 79 | <field name="team_id" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}"/> |
| 80 | <field name="user_id" domain="[('share', '=', False)]"/> |
| 81 | </group> |
| 82 | <group> |
| 83 | <field name="tag_ids" widget="many2many_tags"/> |
| 84 | <field name="priority" widget="priority"/> |
| 85 | </group> |
| 86 | </group> |
| 87 | </sheet> |
| 88 | </form> |
| 89 | </field> |
| 90 | </record> |
| 91 | |
| 92 | <record id="crm_reveal_rule_tree" model="ir.ui.view"> |
| 93 | <field name="name">crm.reveal.rule.list</field> |
| 94 | <field name="model">crm.reveal.rule</field> |
| 95 | <field name="arch" type="xml"> |
| 96 | <list> |
| 97 | <field name="sequence" widget="handle"/> |
| 98 | <field name="name"/> |
| 99 | <field name="lead_type"/> |
| 100 | </list> |
| 101 | </field> |
| 102 | </record> |
| 103 | |
| 104 | <record id="crm_reveal_rule_view_search" model="ir.ui.view"> |
| 105 | <field name="name">crm.reveal.rule.view.search</field> |
| 106 | <field name="model">crm.reveal.rule</field> |
| 107 | <field name="arch" type="xml"> |
| 108 | <search string="Search CRM Reveal Rule"> |
| 109 | <field string="Rule" name="name"/> |
| 110 | <separator/> |
| 111 | <filter string="Archived" name="inactive" domain="[('active', '=', False)]"/> |
| 112 | </search> |
| 113 | </field> |
| 114 | </record> |
| 115 | |
| 116 | <record id="crm_reveal_rule_action" model="ir.actions.act_window"> |
| 117 | <field name="name">Visits to Leads Rules</field> |
| 118 | <field name="res_model">crm.reveal.rule</field> |
| 119 | <field name="view_mode">list,form</field> |
| 120 | <field name="search_view_id" ref="crm_reveal_rule_view_search"/> |
| 121 | <field name="help" type="html"> |
| 122 | <p class="o_view_nocontent_smiling_face"> |
| 123 | Create a conversion rule |
| 124 | </p><p> |
| 125 | Create rules to generate B2B leads/opportunities from your website visitors. |
| 126 | </p> |
| 127 | </field> |
| 128 | </record> |
| 129 | |
| 130 | <record id="crm_reveal_view_form" model="ir.ui.view"> |
| 131 | <field name="name">crm.reveal.view.form</field> |
| 132 | <field name="model">crm.reveal.view</field> |
| 133 | <field name="arch" type="xml"> |
| 134 | <form> |
| 135 | <header> |
| 136 | <field name="reveal_state" widget="statusbar" options="{'clickable': '1'}"/> |
| 137 | </header> |
| 138 | <sheet> |
| 139 | <group> |
| 140 | <field name="reveal_ip"/> |
| 141 | <field name="reveal_rule_id"/> |
| 142 | <field name="create_date"/> |
| 143 | </group> |
| 144 | </sheet> |
| 145 | </form> |
| 146 | </field> |
| 147 | </record> |
| 148 | |
| 149 | <record id="crm_reveal_view_tree" model="ir.ui.view"> |
| 150 | <field name="name">crm.reveal.view.list</field> |
| 151 | <field name="model">crm.reveal.view</field> |
| 152 | <field name="arch" type="xml"> |
| 153 | <list> |
| 154 | <field name="reveal_ip"/> |
| 155 | <field name="reveal_rule_id"/> |
| 156 | <field name="reveal_state"/> |
| 157 | <field name="create_date"/> |
| 158 | </list> |
| 159 | </field> |
| 160 | </record> |
| 161 | |
| 162 | <record id="crm_reveal_view_action" model="ir.actions.act_window"> |
| 163 | <field name="name">Lead Generation Views</field> |
| 164 | <field name="res_model">crm.reveal.view</field> |
| 165 | <field name="view_mode">list,form</field> |
| 166 | </record> |
| 167 | </odoo> |