Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove_odoo_enterprise v18 建议 suggestion #93

Open
tanapa2018 opened this issue Jan 13, 2025 · 0 comments
Open

remove_odoo_enterprise v18 建议 suggestion #93

tanapa2018 opened this issue Jan 13, 2025 · 0 comments

Comments

@tanapa2018
Copy link

tanapa2018 commented Jan 13, 2025

odoo18 It is recommended to modify the following in res_config_settings.py to ensure that About can be displayed normally:
block.attrib.pop("title", None)
block.attrib.pop("tip", None)
block.attrib["class"] = "d-none"
to ensure that About can be displayed normally
is_about = (
block.attrib.get('id') == 'about' or
block.attrib.get('title') == 'About' or
block.attrib.get('name') == 'about_setting_container'
)

if not is_about:
block.getparent().remove(block)
block.attrib.pop("title", None)
block.attrib.pop("tip", None)
block.attrib["class"] = "d-none"

if not form_view.xml_id == "base.res_config_settings_view_form":
Modify to
if 'res_config_settings_view_form' not in form_view.xml_id:
Fix from Sales-Settings Bug that displays the Enterprise Edition menu when entering the settings page

odoo18 建议res_config_settings.py中的
block.attrib.pop("title", None)
block.attrib.pop("tip", None)
block.attrib["class"] = "d-none"
修改如下,以保证About可以正常显示
is_about = (
block.attrib.get('id') == 'about' or
block.attrib.get('title') == 'About' or
block.attrib.get('name') == 'about_setting_container'
)

if not is_about:
block.getparent().remove(block)
block.attrib.pop("title", None)
block.attrib.pop("tip", None)
block.attrib["class"] = "d-none"

if not form_view.xml_id == "base.res_config_settings_view_form":
修改为
if 'res_config_settings_view_form' not in form_view.xml_id:
修复从 销售-设置 进入设置页面时显示企业版菜单的bug

image
image

@tanapa2018 tanapa2018 changed the title 建议 suggestion remove_odoo_enterprise v18 建议 suggestion Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant