Before this patch, if some view had both `inherit_id` and `website_id`, its inheritances were being applied even in different websites. After this patch, if a view inherits from another, inheritances will only apply when both views belong to the same (or none) website. Refactoring based on the pr #17635 This closes odoo/odoo#17635