[FIX] developer/frontend: typo in the user menu registry example
closes odoo/documentation#2039
X-original-commit: 6d30d81a76
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
5ddc402467
commit
d5d232bb50
@ -298,7 +298,7 @@ Example:
|
|||||||
registry.category("user_menuitems").add("my item", (env) => {
|
registry.category("user_menuitems").add("my item", (env) => {
|
||||||
return {
|
return {
|
||||||
description: env._t("Technical Settings"),
|
description: env._t("Technical Settings"),
|
||||||
callback: () => { env.services.action_manager.doAction(3); };
|
callback: () => { env.services.action_manager.doAction(3); },
|
||||||
hide: (Math.random() < 0.5),
|
hide: (Math.random() < 0.5),
|
||||||
};
|
};
|
||||||
}
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user