Thursday, January 14, 2021
1 change · master
Resolved issues and error corrections
When a website view is created, Odoo now reliably assigns it to the website currently in use and prevents mismatches. This avoids accidental extra generic views and helps keep website-specific content organized correctly.
Original PR description
SOC for ir.ui.view creation. If a view is created without a website_id, it should get one if one is present in the context. Also check that an explicit website_id in create values matches the one in the context. Note: it was already the case but kinda by chance and not entirely correct. Most of the time, the 'arch' field was specified as a creation value... and as it is a computed field with an inverse method, a COW was triggered. But this had also the inconvenient of creating an extra generic view without any arch.