Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
9d44adff by Sergi Almacellas Abellana at 2023-07-05T14:50:34+02:00
Inherit marketing campaing opportunity abstract models in right order
Abstract models should be always the last in inheritance because
they are object when optional dependencies are not activated
PoolMeta shold be added because all classes in the pool must inherit from it
Closes #12375
- - - - -
1 changed file:
- modules/marketing_campaign/sale_opportunity_reporting.py
Changes:
=====================================
modules/marketing_campaign/sale_opportunity_reporting.py
=====================================
@@ -66,7 +66,7 @@
return default
-class MarketingContext(BaseContext):
+class MarketingContext(BaseContext, metaclass=PoolMeta):
"Sale Opportunity Reporting Context"
__name__ = 'sale.opportunity.reporting.marketing.context'
@@ -78,7 +78,7 @@
lazy_gettext('marketing_campaign.msg_marketing_source'))
-class Marketing(MarketingCampaignMixin, Abstract, ModelView):
+class Marketing(MarketingCampaignMixin, ModelView, Abstract):
"Sale Opportunity Reporting per Marketing"
__name__ = 'sale.opportunity.reporting.marketing'
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/9d44adffbffee56f8d34841a0c9baf9db7751414
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/9d44adffbffee56f8d34841a0c9baf9db7751414
You're receiving this email because of your account on foss.heptapod.net.