-
-
Notifications
You must be signed in to change notification settings - Fork 179
Description
The remove_odoo_enterprise hides 2 fields added by module contract_forecast to Settings > General settings > Invoicing: contract_forecast_interval and contract_forecast_rule_type.
Module
remove_odoo_enterprise
Describe the bug
Module contract_forecast settings view adds 2 fields, which the remove_odoo_enterprise module hides in the _hide_empty_containers method.
To Reproduce
Affected versions: 16.0.2.0.4 (and contract_forecast 16.0.1.0.0)
Steps to reproduce the behavior:
- install both modules
- go to Settings > General settings > Invoicing, section Contract
contract_forecast_intervalandcontract_forecast_rule_typeare absent
Expected behavior
contract_forecast_interval and contract_forecast_rule_type should be present in the settings as intended by the contract_forecast module.
Additional context
The way _hide_empty_containers works looks dangerous as it expects the setting fields to be surrounded by a <div> tag with the class o_setting_box, which is not the case in the contract_forecast module.
An easy fix is to add the markup remove_odoo_enterprise expects to the contract_forecast setting view, but I doubt it is a durable choice. Any comments welcome.