[IMP] crm_iap_lead,website_slides: add name on main elements
for easy xpaths closes odoo/odoo#34909 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
committed by
Martin Trigaux
parent
1f87abfead
commit
a2a5ff806e
@@ -43,12 +43,12 @@
|
||||
</div>
|
||||
</span>
|
||||
<group>
|
||||
<group string="Request">
|
||||
<group name="requests" string="Request">
|
||||
<field name="lead_number" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<field name="search_type" widget="radio" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<field name="error" attrs="{'invisible': [('state', '!=', 'error')]}"/>
|
||||
</group>
|
||||
<group string="Lead Information">
|
||||
<group name="lead_info" string="Lead Information">
|
||||
<field name="lead_type" groups="crm.group_use_lead" invisible="context.get('is_modal')" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<field name="team_id" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<field name="user_id" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
@@ -56,7 +56,7 @@
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Companies">
|
||||
<group name="companies" string="Companies">
|
||||
<field name="filter_on_size" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<label for="company_size_min" attrs="{'invisible': [('filter_on_size', '=', False)]}"/>
|
||||
<div attrs="{'invisible': [('filter_on_size', '=', False)]}">
|
||||
@@ -70,7 +70,7 @@
|
||||
<field name="state_ids" widget="many2many_tags" attrs="{'invisible': [('country_ids', '=', [])], 'readonly': [('state', '!=', 'draft')]}" domain="[('country_id', 'in', country_ids)]" options="{'no_create': True, 'no_open': True}"/>
|
||||
<field name="industry_ids" widget="many2many_tags" attrs="{'readonly': [('state', '!=', 'draft')]}" options="{'no_create': True, 'no_open': True}"/>
|
||||
</group>
|
||||
<group string="Contacts" attrs="{'invisible': [('search_type', '!=', 'people')]}">
|
||||
<group name="contacts" string="Contacts" attrs="{'invisible': [('search_type', '!=', 'people')]}">
|
||||
<field name="contact_number" attrs="{'readonly': [('state', '!=', 'draft')], 'required': [('search_type', '=', 'people')]}"/>
|
||||
<field name="contact_filter_type" widget="radio" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<field name="preferred_role_id"
|
||||
|
||||
@@ -68,10 +68,10 @@
|
||||
<field name="website_url"/>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Description">
|
||||
<page name="description" string="Description">
|
||||
<field name="description"/>
|
||||
</page>
|
||||
<page string="Document">
|
||||
<page name="document" string="Document">
|
||||
<group>
|
||||
<field name="slide_type"/>
|
||||
<field name="url"
|
||||
@@ -83,15 +83,15 @@
|
||||
attrs="{'invisible': [('slide_type', 'not in', ('document', 'presentation', 'infographic', 'webpage'))]}"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Website">
|
||||
<page name="website" string="Website">
|
||||
<group>
|
||||
<group>
|
||||
<group name="website_settings">
|
||||
<field name="is_preview"/>
|
||||
<field name="date_published"/>
|
||||
<field name="likes"/>
|
||||
<field name="dislikes"/>
|
||||
</group>
|
||||
<group>
|
||||
<group name="website_statistics">
|
||||
<field name="slide_views"/>
|
||||
<field name="public_views"/>
|
||||
<field name="total_views"/>
|
||||
@@ -101,7 +101,7 @@
|
||||
<label for="index_content"/>
|
||||
<field name="index_content"/>
|
||||
</page>
|
||||
<page string="External Links">
|
||||
<page name="external_links" string="External Links">
|
||||
<group>
|
||||
<field name="link_ids" widget="one2many" nolabel="1">
|
||||
<tree editable="top">
|
||||
@@ -111,9 +111,9 @@
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Quiz">
|
||||
<page name="quiz" string="Quiz">
|
||||
<group name="container_row_2">
|
||||
<group string="Earnings">
|
||||
<group name="quiz_earnings" string="Earnings">
|
||||
<group>
|
||||
<field name="quiz_first_attempt_reward"/>
|
||||
<field name="quiz_second_attempt_reward"/>
|
||||
@@ -121,7 +121,7 @@
|
||||
<field name="quiz_fourth_attempt_reward"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Questions">
|
||||
<group name="questions" string="Questions">
|
||||
<field name="question_ids" nolabel="1">
|
||||
<tree>
|
||||
<field name="sequence" widget="handle"/>
|
||||
|
||||
Reference in New Issue
Block a user