OCA / server-env

Tools to manage environment-dependent configuration
GNU Affero General Public License v3.0
56 stars 149 forks source link

[FIX] server_environment: default field label #165

Closed oerp-odoo closed 6 months ago

oerp-odoo commented 11 months ago

If related field is not directly set (coming from inheritance) or string label is not specified explicitly, it might not have it in args, making it generate same default field labels, causing warnings in odoo.

Before this change you could get these kind of warnings:

2023-09-23 13:28:39,638 1 WARNING odoodb odoo.addons.base.models.ir_model:
Two fields (field1_env_default, field2_env_default) of your.model() have
the same label:  Env Default.

It would generate multiple fields having same label.

P.S. most likely same issue on 14.0, 16.0.

github-actions[bot] commented 7 months ago

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.