diff --git a/trytond/res/ir.xml b/trytond/res/ir.xml
index 9ee2da05ac..ff6509e5e0 100644
--- a/trytond/res/ir.xml
+++ b/trytond/res/ir.xml
@@ -408,37 +408,37 @@ this repository contains the full copyright notices and license terms. -->
expr="/form/group/button[@name="button_install"]"
position="replace">
+ type="object" states="{'invisible': '''state != 'uninstalled' ''', 'readonly': '''%(res.group_admin)d not in groups'''}"/>
+ type="object" states="{'invisible': '''state != 'to install' ''', 'readonly': '''%(res.group_admin)d not in groups'''}"/>
+ type="object" states="{'invisible': '''state != 'installed' ''', 'readonly': '''%(res.group_admin)d not in groups or True'''}"/>
+ type="object" states="{'invisible': '''state != 'to remove' ''', 'readonly': '''%(res.group_admin)d not in groups'''}"/>
+ type="object" states="{'invisible': '''state != 'installed' ''', 'readonly': '''%(res.group_admin)d not in groups'''}"/>
+ type="object" states="{'invisible': '''state != 'to upgrade' ''', 'readonly': '''%(res.group_admin)d not in groups'''}"/>
]]>