[IMP] order and domain
bzr revid: mat@openerp.com-20130424085238-k8q6uess92xl2q5u
This commit is contained in:
parent
8182600868
commit
a92cc45cc3
|
@ -222,7 +222,7 @@ class gamification_goal(osv.Model):
|
|||
'state': 'draft',
|
||||
'start_date': fields.date.today,
|
||||
}
|
||||
_order = 'create_date, end_date desc, type_id, id'
|
||||
_order = 'create_date desc, end_date desc, type_id, id'
|
||||
|
||||
def update(self, cr, uid, ids, context=None):
|
||||
"""Update the goals to recomputes values and change of states
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<form string="Grant Badge To" version="7.0">
|
||||
Who would you like to reward?
|
||||
<group>
|
||||
<field name="employee_id" nolabel="1" domain="[('user_id', '!=', False)]" />
|
||||
<field name="employee_id" nolabel="1" domain="[('user_id', '!=', False),('user_id', '!=', uid)]" />
|
||||
<field name="badge_id" invisible="1"/>
|
||||
<field name="comment" nolabel="1" placeholder="Describe what they did and why it matters (will be public)" class="oe_no_padding"/>
|
||||
</group>
|
||||
|
|
Loading…
Reference in New Issue