-
+
TRANSLATE
diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py
index e197fa5403d..4d3668a0c0d 100644
--- a/addons/website_blog/controllers/main.py
+++ b/addons/website_blog/controllers/main.py
@@ -205,7 +205,6 @@ class WebsiteBlog(http.Controller):
if blog:
values['main_object'] = blog
- values['edit_in_backend'] = True
values['blog_url'] = QueryURL('', ['blog', 'tag'], blog=blog, tag=tag, date_begin=date_begin, date_end=date_end, search=search)
else:
values['blog_url'] = QueryURL('/blog', ['tag'], date_begin=date_begin, date_end=date_end, search=search)
@@ -301,15 +300,3 @@ class WebsiteBlog(http.Controller):
request.session['posts_viewed'].append(blog_post.id)
request.session.modified = True
return response
-
- @http.route('/blog/post_duplicate', type='http', auth="user", website=True, methods=['POST'])
- def blog_post_copy(self, blog_post_id, **post):
- """ Duplicate a blog.
-
- :param blog_post_id: id of the blog post currently browsed.
-
- :return redirect to the new blog created
- """
- new_blog_post = request.env['blog.post'].with_context(mail_create_nosubscribe=True).browse(int(blog_post_id)).copy()
- client_action_url = request.env["website"].get_client_action_url(f"/blog/{slug(new_blog_post.blog_id)}/{slug(new_blog_post)}", True)
- return request.redirect(client_action_url)
diff --git a/addons/website_blog/static/src/js/systray_items/edit_in_backend.js b/addons/website_blog/static/src/js/systray_items/edit_in_backend.js
deleted file mode 100644
index f1ad5a5d6a1..00000000000
--- a/addons/website_blog/static/src/js/systray_items/edit_in_backend.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/** @odoo-module **/
-
-import { EditInBackendSystray } from '@website/systray_items/edit_in_backend';
-import { patch } from 'web.utils';
-import wUtils from 'website.utils';
-
-patch(EditInBackendSystray.prototype, 'website_blog_edit_in_backend', {
- /**
- * @override
- */
- getElements() {
- const elements = this._super();
- const { metadata: { mainObject } } = this.websiteService.currentWebsite;
- if (mainObject.model === 'blog.post') {
- return [...elements, {
- title: this.env._t("Duplicate"),
- callback: () => this.duplicate(),
- }];
- }
- return elements;
- },
-
- async duplicate() {
- const { metadata: { mainObject } } = this.websiteService.currentWebsite;
- wUtils.sendRequest('/blog/post_duplicate', { blog_post_id: mainObject.id });
- }
-});
diff --git a/addons/website_event/static/src/js/tours/event_tour.js b/addons/website_event/static/src/js/tours/event_tour.js
index 8229e01048d..4f629ed59aa 100644
--- a/addons/website_event/static/src/js/tours/event_tour.js
+++ b/addons/website_event/static/src/js/tours/event_tour.js
@@ -40,11 +40,7 @@ EventAdditionalTourSteps.include({
content: Markup(_t("Looking great! Let's now
publish this page so that it becomes
visible on your website!")),
position: 'bottom',
}, {
- trigger: '.o_menu_systray_item.o_website_edit_in_backend .dropdown-toggle',
- content: _t("Want to change your event configuration? Let's go back to the event form."),
- position: 'bottom',
- }, {
- trigger: '.o_menu_systray_item.o_website_edit_in_backend .dropdown-menu .dropdown-item',
+ trigger: '.o_website_edit_in_backend > a',
extra_trigger: 'iframe .o_wevent_event',
content: _t("This shortcut will bring you right back to the event form."),
position: 'bottom'
diff --git a/addons/website_event/static/tests/tours/website_event.js b/addons/website_event/static/tests/tours/website_event.js
index 3e6364518e6..30d958d061b 100644
--- a/addons/website_event/static/tests/tours/website_event.js
+++ b/addons/website_event/static/tests/tours/website_event.js
@@ -62,7 +62,7 @@ odoo.define("website_event.tour", function (require) {
content: _t("Click to publish your event."),
position: "top",
}, {
- trigger: ".o_menu_systray_item.o_website_edit_in_backend",
+ trigger: ".o_website_edit_in_backend > a",
content: _t("Click here to customize your event further."),
position: "bottom",
}]);
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py
index d8f3339cd9c..f0e01a317b8 100644
--- a/addons/website_forum/controllers/main.py
+++ b/addons/website_forum/controllers/main.py
@@ -155,7 +155,7 @@ class WebsiteForum(WebsiteProfile):
values = self._prepare_user_values(forum=forum, searches=post, header={'ask_hide': not forum.active})
values.update({
'main_object': tag or forum,
- 'edit_in_backend': not tag,
+ 'edit_in_backend': True,
'question_ids': question_ids,
'question_count': question_count,
'search_count': question_count,
@@ -258,6 +258,7 @@ class WebsiteForum(WebsiteProfile):
values = self._prepare_user_values(forum=forum, searches=post)
values.update({
'main_object': question,
+ 'edit_in_backend': True,
'question': question,
'can_bump': (question.forum_id.allow_bump and not question.child_count and (datetime.today() - question.write_date).days > 9),
'header': {'question_data': True},
diff --git a/odoo/addons/base/models/res_users.py b/odoo/addons/base/models/res_users.py
index 35d12e23322..403f16d5af3 100644
--- a/odoo/addons/base/models/res_users.py
+++ b/odoo/addons/base/models/res_users.py
@@ -244,7 +244,7 @@ class Users(models.Model):
avatar, ... The user model is now dedicated to technical data.
"""
_name = "res.users"
- _description = 'Users'
+ _description = 'User'
_inherits = {'res.partner': 'partner_id'}
_order = 'name, login'