[IMP] no badge page for employee not connected to users

bzr revid: mat@openerp.com-20130411072211-nw4bxkvncfdg8a0f
This commit is contained in:
Martin Trigaux
2013-04-11 09:22:11 +02:00
parent b1c23a5fcb
commit 1787aa694e
+1 -1
View File
@@ -64,7 +64,7 @@
<field name="arch" type="xml">
<xpath expr="//page[@string='Public Information']" position="before">
<page string="Received Badges">
<page string="Received Badges" attrs="{'invisible': [('user_id', '=', False)]}">
<field name="has_badges" invisible="1"/>
<button string="Grant a Badge" type="action" name="%(action_reward_wizard)d"/> to reward this employee for a good action
<div class="oe_view_nocontent" attrs="{'invisible': [('has_badges', '=', True)]}">