Browse Source

[ADD] hide subscribe button is not worker

pull/105/head
Thibault Francois 8 years ago
committed by Elouan
parent
commit
c926742803
  1. 3
      beesdoo_shift/views/cooperative_status.xml

3
beesdoo_shift/views/cooperative_status.xml

@ -7,7 +7,8 @@
<xpath expr="//sheet" position="before"> <xpath expr="//sheet" position="before">
<header> <header>
<button name="coop_subscribe" string="Subscribe to shift" class="oe_highlight" <button name="coop_subscribe" string="Subscribe to shift" class="oe_highlight"
type="object" groups="beesdoo_shift.group_shift_management"/>
type="object" groups="beesdoo_shift.group_shift_management"
attrs="{'invisible': [('eater', '!=', 'worker_eater')]}"/>
</header> </header>
</xpath> </xpath>
<field name="eater" position="after"> <field name="eater" position="after">

Loading…
Cancel
Save