Skip to content

[16.0] Module remove_odoo_enterprise breaks contract_forecast settings view (at least) #116

@fcayre

Description

@fcayre

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:

  1. install both modules
  2. go to Settings > General settings > Invoicing, section Contract
  3. contract_forecast_interval and contract_forecast_rule_type are 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions