Is it possible do deactivate thistype of warnings without changing the loglevel?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I think the only way to achieve that is to change / inherit the source code. This logger is defined in the file base/models/ir_model.py, the method _reflect_model. You can just replace the lines with your own:
if field.string in by_label:
# comment -->
#_logger.warning('Two fields (%s, %s) of %s have the same label: %s.', field.name, by_label[field.string], model, field.string)
# add -->
pass
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.