[FIX] web: residual rename create to add
This commit is contained in:
committed by
Aaron Bohy
parent
0cecc93aa4
commit
2d1316bfe6
@@ -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");
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user