Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yusei Tahara
erp5
Commits
4214b9ea
Commit
4214b9ea
authored
Apr 09, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRM: Set a not in wf history when validating entities created during ingestion
parent
3a45c304
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_finishIngestion.xml
...plateItem/portal_skins/erp5_crm/Event_finishIngestion.xml
+4
-2
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_finishIngestion.xml
View file @
4214b9ea
...
...
@@ -57,6 +57,7 @@
The default behaviour is to receive messages so that they\n
are marked as \'New\' and appear in the worklist.\n
"""\n
from Products.ERP5Type.Message import translateString\n
portal = context.getPortalObject()\n
portal_workflow = portal.portal_workflow\n
\n
...
...
@@ -135,6 +136,7 @@ if context.getPortalType() == \'Web Message\' and\\\n
organisation = organisation_email.getParentValue()\n
break\n
\n
# XXX do we really want to create a person so easily ? Isn\'t it better to just setSourceFreeText on the event ?\n
if person is None and (context.getSourcePersonFirstName() or context.getSourcePersonLastName()):\n
person_module = portal.getDefaultModule(person_portal_type)\n
person = person_module.newContent(portal_type=person_portal_type,\n
...
...
@@ -153,9 +155,9 @@ if context.getPortalType() == \'Web Message\' and\\\n
subordination_list.append(organisation.getRelativeUrl())\n
person.setDefaultCareerSubordinationList(subordination_list)\n
if person is not None and portal_workflow.isTransitionPossible(person, \'validate\'):\n
person.validate()\n
person.validate(
comment=translateString("Validated when ingesting ${event_reference}", mapping={"event_reference": context.getReference()})
)\n
if organisation is not None and portal_workflow.isTransitionPossible(organisation, \'validate\'):\n
organisation.validate()\n
organisation.validate(
translateString("Validated when ingesting ${event_reference}", mapping={"event_reference": context.getReference()})
)\n
if person is not None:\n
context.setSourceValue(person)\n
elif organisation is not None:\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment