Skip to content

Commit

Permalink
[FIX] remove_odoo_enterprise debranding issue (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarteo authored Nov 27, 2024
1 parent 12c1e61 commit 0c8f2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remove_odoo_enterprise/models/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_views(self, views, options=None):
ret_val = super().get_views(views, options)

form_view = self.env["ir.ui.view"].browse(ret_val["views"]["form"]["id"])
if not form_view.xml_id == "base.res_config_settings_view_form":
if "base.res_config_settings_view_form" not in (form_view.xml_id, form_view.inherit_id.xml_id):
return ret_val

doc = etree.XML(ret_val["views"]["form"]["arch"])
Expand Down

0 comments on commit 0c8f2e3

Please sign in to comment.