[IMP] order and domain

bzr revid: mat@openerp.com-20130424085238-k8q6uess92xl2q5u
This commit is contained in:
Martin Trigaux 2013-04-24 10:52:38 +02:00
parent 8182600868
commit a92cc45cc3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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>