Skip to content
Snippets Groups Projects
Commit 3855829a authored by Simon Goffaux (sigo)'s avatar Simon Goffaux (sigo)
Browse files

[FIX] website: cast website_id to int in pagenew

Cast website_id so that if it contains more than 1 digit, we do not
browse() a tuple with each digit. For example, if we pass pagenew() the
website_id '123', this is the current behavior:
 - browse('1', '2', '3')
After this fix:
 - browse(123)

To reproduce the erroneous behavior:
 - Create at least 10 websites so that the id of this website is at
least in the double digits.
 - Create a new page within this website with a double digit id.
 - It will throw an expected singleton error.

Issue was introduced in this commit: https://github.com/odoo/odoo/commit/d6014c60acc4231a5e56d492d2a39deaf789cbe8



opw-3290571

closes odoo/odoo#121486

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent b548d4a5
No related branches found
No related tags found
No related merge requests found
Loading
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