-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add "Save Snippet" sidebar button + display custom inner content in the sidebar #3952
base: master-mysterious-egg
Are you sure you want to change the base?
Conversation
This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged. |
21a0353
to
b2480c8
Compare
This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged. |
addons/html_builder/static/src/builder/builder_sidebar/tabs/block_tab/block_tab.js
Show resolved
Hide resolved
expect(saveButtonSelector).toHaveCount(1); | ||
|
||
// TODO improve when "request_save" will be done. | ||
// Maybe make a tour to test the behavior ? |
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.
What is the behavior ?
addons/html_builder/static/src/builder/builder_sidebar/builder_sidebar.js
Show resolved
Hide resolved
addons/html_builder/static/src/builder/builder_sidebar/builder_sidebar.js
Show resolved
Hide resolved
this.context["model"] = editableParentEl.dataset.oeModel; | ||
this.context["field"] = editableParentEl.dataset.oeField; | ||
this.context["resId"] = editableParentEl.dataset.oeId; | ||
await rpc("/web/dataset/call_kw/ir.ui.view/save_snippet", { |
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 orm.call like delete_snippet ?
context: this.context, | ||
}, | ||
}); | ||
resolve(); |
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.
add new customSnippet to snippetsByCategory.snippet_custom. It will trigger the reactivity. We probably not need to reload the page
No description provided.