Skip to content
Snippets Groups Projects
Commit 746cda7f authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] website: URL of website_published is wrong when using next/previous

Steps to reproduce:

-go to runbot 8.0 and connect
-go into human ressources/job positions
-pass into list view and click on the first item
-click on the url to open this record into the website (website_published)
-go back (back into the browser)
-you're now into the form view again and then next step is to click on the button
"next" to access the following record
-click on the url of website_published

Before the fix:

wrong record, this is the previous one that is into the href

After the fix:

correct record with the correct id into the href

Closes #11800
opw:675832
parent 7061acd2
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,9 @@ instance.web.form.WidgetWebsiteButton = instance.web.form.AbstractField.extend({
var self = this;
this._super.apply(this, arguments);
this.$('#dopprod-0').on('click', function() {
self.render_value();
});
this.$("button:first").on("click", function () {
console.log("click", !!$(this).hasClass("btn-danger"));
self.set_value(!!$(this).hasClass("btn-danger"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment