I have create one field in stock.quant.package model.
tracking_ref=fields.Char("Tracking Ref")
This field is used in two separate modules and I am not able to give module dependency because both are separate modules.
It may be possible that both modules are installed in same database or it may be possible that in some database only one module is installed.
Due to that reason i have create same field & view in both modules.
But now issue is that if both modules are installed then field is available two times in the form view.
Is there any possibility that if we install both modules then field will visible only one time in form view.
I am not sure it is the best solution. Just try:
module_common
module_common
Ex: module_a
depends module_common
and module_common
depends module_common
.
Hope it will resolve your problem.