[FIX] web: residual rename create to add

This commit is contained in:
Francois (fge)
2021-06-18 21:31:34 +02:00
committed by Aaron Bohy
parent 0cecc93aa4
commit 2d1316bfe6
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ class InvalidAction extends Component {
this.env._t("No action with id '%s' could be found"),
this.props.actionId
);
this.notification.create(message, { type: "danger" });
this.notification.add(message, { type: "danger" });
}
}
InvalidAction.template = owl.tags.xml`<div class="o_invalid_action"></div>`;
@@ -98,7 +98,7 @@ QUnit.module("ActionManager", (hooks) => {
assert.expect(2);
const webClient = await createWebClient({ serverData });
patchWithCleanup(webClient.env.services.notification, {
create(message) {
add(message) {
assert.strictEqual(message, "No action with id '4448' could be found");
},
});