[FIX] developer/frontend: typo in the user menu registry example

closes odoo/documentation#2038

X-original-commit: 6d30d81a76
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Beshoy Nabeih 2022-05-19 09:13:42 +00:00
parent d67a2492ce
commit a572e055a8

View File

@ -298,7 +298,7 @@ Example:
registry.category("user_menuitems").add("my item", (env) => {
return {
description: env._t("Technical Settings"),
callback: () => { env.services.action_manager.doAction(3); };
callback: () => { env.services.action_manager.doAction(3); },
hide: (Math.random() < 0.5),
};
}
});