diff options
| author | Yenthe666 <yenthevg@gmail.com> | 2019-01-04 15:35:50 +0000 |
|---|---|---|
| committer | Yenthe666 <yenthevg@gmail.com> | 2019-01-08 15:35:34 +0000 |
| commit | 2ee21d9938c14a47e33b36446a03f284cfa67ffe (patch) | |
| tree | ff2a61188c534ce143d420bc4978f4da0e125508 /addons/gamification/views | |
| parent | 6a8f9f357046196148f2fe6a236a8fa36cc3b48d (diff) | |
[IMP] gamification: improve view layout and add names for easier xpaths
closes odoo/odoo#29948
Diffstat (limited to 'addons/gamification/views')
| -rw-r--r-- | addons/gamification/views/goal.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/gamification/views/goal.xml b/addons/gamification/views/goal.xml index a3386496a47..9af36db1948 100644 --- a/addons/gamification/views/goal.xml +++ b/addons/gamification/views/goal.xml @@ -234,7 +234,7 @@ <field name="description" class="oe_inline"/> </div> - <group string="How to compute the goal?"> + <group string="How to compute the goal?" name="compute_details"> <field widget="radio" name="computation_mode"/> @@ -248,20 +248,20 @@ <field name="compute_code" attrs="{'invisible':[('computation_mode','!=','python')], 'required':[('computation_mode','=','python')]}" placeholder="e.g. result = env['mail.followers'].search_count([('res_model', '=', 'mail.channel'), ('partner_id', '=', object.user_id.partner_id.id)])"/> <field name="condition" widget="radio"/> </group> - <group string="Optimisation" attrs="{'invisible': [('computation_mode', '!=', 'count')]}"> + <group string="Optimisation" name="optimisation" attrs="{'invisible': [('computation_mode', '!=', 'count')]}"> <field name="batch_mode" /> - <div colspan="4">In batch mode, the domain is evaluated globally. If enabled, do not use keyword 'user' in above filter domain.</div> + <div colspan="2">In batch mode, the domain is evaluated globally. If enabled, do not use keyword 'user' in above filter domain.</div> <field name="batch_distinctive_field" attrs="{'invisible': [('batch_mode', '=', False)], 'required': [('batch_mode', '=', True)]}" domain="[('model_id', '=', model_id)]" class="oe_inline" /> <field name="batch_user_expression" attrs="{'invisible': [('batch_mode', '=', False)], 'required': [('batch_mode', '=', True)]}" class="oe_inline" placeholder="e.g. user.partner_id.id"/> </group> - <group string="Formating Options"> + <group string="Formating Options" name="format_options"> <field name="display_mode" widget="radio" /> <field name="suffix" placeholder="e.g. days" class="oe_inline"/> <field name="monetary"/> </group> - <group string="Clickable Goals" attrs="{'invisible': [('computation_mode', '=', 'manually')]}"> + <group string="Clickable Goals" name="clickable_goals" attrs="{'invisible': [('computation_mode', '=', 'manually')]}"> <field name="action_id" class="oe_inline"/> <field name="res_id_field" attrs="{'invisible': [('action_id', '=', False)]}" class="oe_inline"/> </group> |
