Unable to activate marketing_campaign without sale_opportunity
I have a virtualenv with both marketing_campaing
and sale
modules installed. sale_opportunity
module is not installed as it is not a mandatory dependency.
When activating the marketing_camaign
module on the database I get the following error:
Traceback (most recent call last):
File "/home/pokoli/.virtualenvs/grafman/bin/trytond-admin", line 31, in <module>
admin.run(options)
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/admin.py", line 57, in run
pool.init(update=options.update, lang=list(lang),
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/pool.py", line 155, in init
self.start()
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/pool.py", line 108, in start
register_classes(with_test=cls.test)
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/modules/__init__.py", line 362, in register_classes
the_module = import_module(module)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/modules/__init__.py", line 52, in import_module
module = importlib.import_module(fullname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/modules/marketing_campaign/__init__.py", line 16, in <module>
from . import marketing, sale, sale_opportunity_reporting, sale_reporting
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/modules/marketing_campaign/sale_opportunity_reporting.py", line 81, in <module>
class Marketing(MarketingCampaignMixin, Abstract, ModelView):
File "/home/pokoli/.virtualenvs/grafman/lib/python3.11/site-packages/trytond/pool.py", line 21, in __new__
new = type.__new__(cls, name, bases, dct)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Cannot create a consistent method resolution
order (MRO) for bases Model, object, ModelView