[FIX] hr: disable launch plan button on warning

closes odoo/odoo#106618

X-original-commit: 19cef78284bbf85810bdf183e4462e35da902e3a
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
niyasraphy
2022-11-28 08:22:23 +01:00
parent 45b2017004
commit eb52fb3ddb
+1 -1
View File
@@ -19,7 +19,7 @@
</sheet>
<footer>
<button name="action_launch" string="Launch Plan" type="object" class="oe_highlight" attrs="{'invisible': [('warning', '!=', False)]}" groups="hr.group_hr_user" data-hotkey="q"/>
<button name="action_launch" string="Launch Plan" type="object" class="oe_highlight" disabled="disabled" attrs="{'invisible': [('warning', '=', False)]}" groups="hr.group_hr_user" data-hotkey="q"/>
<button name="action_launch" string="Launch Plan" type="object" class="oe_highlight disabled" attrs="{'invisible': [('warning', '=', False)]}" groups="hr.group_hr_user" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>