changeset 80389d9bfc6c in modules/marketing_automation:5.8
details:
https://hg.tryton.org/modules/marketing_automation?cmd=changeset;node=80389d9bfc6c
description:
Returns all available models when no scenario is set
This is needed to let the domain parsers provide completion and
correctly
split the value.
issue9865
review320431002
(grafted from d091786f90994b9c1f8a0f8128df1da2468f56f0)
diffstat:
marketing_automation.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 1fcb74f5a799 -r 80389d9bfc6c marketing_automation.py
--- a/marketing_automation.py Fri Dec 11 15:44:02 2020 +0100
+++ b/marketing_automation.py Fri Nov 27 22:41:03 2020 +0100
@@ -654,9 +654,10 @@
def get_models(self):
pool = Pool()
Model = pool.get('ir.model')
+ Scenario = pool.get('marketing.automation.scenario')
if not self.scenario:
- return [('', '')]
+ return Scenario.get_models()
model, = Model.search([
('model', '=', self.scenario.model),