diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-12-24 14:00:23 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-12-24 14:00:23 +0100 |
| commit | aefd64e8cfe41db54588dac2c50cf2a50316cc7a (patch) | |
| tree | 299863831ddc4a12ea107931b9b89e0a48f0eed7 /addons/gamification/views | |
| parent | 6f5815f44de8afa6fd357dd79c7ec8cca121c357 (diff) | |
[REF] gamification: compute_code is now similar to ir.actions, cleanup code
bzr revid: mat@openerp.com-20131224130023-e4gc91ell38zdtfj
Diffstat (limited to 'addons/gamification/views')
| -rw-r--r-- | addons/gamification/views/challenge.xml | 6 | ||||
| -rw-r--r-- | addons/gamification/views/goal.xml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/gamification/views/challenge.xml b/addons/gamification/views/challenge.xml index 973194738cd..3aa4410aaf2 100644 --- a/addons/gamification/views/challenge.xml +++ b/addons/gamification/views/challenge.xml @@ -101,9 +101,9 @@ <field name="invited_user_ids" widget="many2many_tags" /> </group> <group string="Notification Messages"> - <div class="oe_grey"> - <p>Depending on the Diasplay mode, reports will be individual or shared.</p> - </div> + <div class="oe_grey" colspan="4"> + <p>Depending on the Display mode, reports will be individual or shared.</p> + </div> <field name="report_message_frequency" /> <field name="report_header" placeholder="e.g. The following message contains the current progress of the sale team..." attrs="{'invisible': [('report_message_frequency','=','never')]}" /> <field name="report_message_group_id" attrs="{'invisible': [('report_message_frequency','=','never')]}" /> diff --git a/addons/gamification/views/goal.xml b/addons/gamification/views/goal.xml index d76b41882df..a269f710c02 100644 --- a/addons/gamification/views/goal.xml +++ b/addons/gamification/views/goal.xml @@ -244,7 +244,7 @@ <field name="field_id" attrs="{'invisible':[('computation_mode','!=','sum')], 'required':[('computation_mode','=','sum')]}" domain="[('model_id','=',model_id)]" class="oe_inline"/> <field name="field_date_id" attrs="{'invisible':[('computation_mode','not in',('sum', 'count'))]}" domain="[('ttype', 'in', ('date', 'datetime')), ('model_id','=',model_id)]" class="oe_inline"/> <field name="domain" attrs="{'invisible':[('computation_mode','not in',('sum', 'count'))], 'required':[('computation_mode','in',('sum', 'count'))]}" class="oe_inline"/> - <field name="compute_code" attrs="{'invisible':[('computation_mode','!=','python')], 'required':[('computation_mode','=','python')]}" placeholder="e.g. self.my_method(cr, uid)"/> + <field name="compute_code" attrs="{'invisible':[('computation_mode','!=','python')], 'required':[('computation_mode','=','python')]}" placeholder="e.g. result = pool.get('mail.followers').search(cr, uid, [('res_model', '=', 'mail.group'), ('partner_id', '=', object.user_id.partner_id.id)], count=True, context=context)"/> <field name="condition" widget="radio"/> </group> <group string="Formating Options"> |
