-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMP add an explicit notification message (printer name for example) #318
base: 16.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it helps the review when you tell us "why" you are introducing a change
@@ -21,8 +21,9 @@ def get_print_data_action( | |||
to_encode64=False, | |||
copies=1, | |||
host="https://localhost", | |||
msg="Your action is being executed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no translation anymore ?
@@ -4,7 +4,11 @@ import {registry} from "@web/core/registry"; | |||
|
|||
async function executeProxyAction({env, action}) { | |||
action.action_list.map(function (act) { | |||
env.services.notification.add(env._t("Your action is being executed"), { | |||
let msg = "Your action is being executed"; | |||
if (act.params.args && act.params.args[2] !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use kwargs ?
@@ -4,7 +4,11 @@ import {registry} from "@web/core/registry"; | |||
|
|||
async function executeProxyAction({env, action}) { | |||
action.action_list.map(function (act) { | |||
env.services.notification.add(env._t("Your action is being executed"), { | |||
let msg = "Your action is being executed"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is defined twice and no more translation
Thanks for the review @hparfr . @mourad-ehm could you fix it ? Thanks. |
@bealdav