first commit
This commit is contained in:
19
modules/marketing_automation/mixin.py
Normal file
19
modules/marketing_automation/mixin.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.model import fields
|
||||
|
||||
|
||||
class MarketingAutomationMixin:
|
||||
__slots__ = ()
|
||||
|
||||
marketing_party = fields.Function(
|
||||
fields.Many2One('party.party', "Marketing Party"),
|
||||
'get_marketing_party', searcher='search_marketing_party')
|
||||
|
||||
def get_marketing_party(self, name):
|
||||
raise NotImplementedError
|
||||
|
||||
@classmethod
|
||||
def search_marketing_party(cls, name, clause):
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user