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
Laurent S
erp5
Commits
fb5c4b9b
Commit
fb5c4b9b
authored
May 20, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't use deprecated portal_ids API and call setters instead of edit
Because edit adds a line in workflow_history
parent
fc05b33b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml
...crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml
+3
-5
bt5/erp5_crm/bt/revision
bt5/erp5_crm/bt/revision
+1
-1
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml
View file @
fb5c4b9b
...
@@ -63,14 +63,12 @@ short_portal_type = type_definition.getShortTitle()\n
...
@@ -63,14 +63,12 @@ short_portal_type = type_definition.getShortTitle()\n
if not short_portal_type:\n
if not short_portal_type:\n
short_portal_type = \'\'.join(s for s in type_definition.getId() if s.isupper())\n
short_portal_type = \'\'.join(s for s in type_definition.getId() if s.isupper())\n
\n
\n
id_group = (\'reference\', short_portal_type)\n
new_id = portal.portal_ids.generateNewId(id_group=repr((\'reference\', short_portal_type)), default=1)\n
default = 1\n
new_id = portal.portal_ids.generateNewId(id_group=id_group, default=default)\n
reference = \'%s-%s\' % (short_portal_type, new_id)\n
reference = \'%s-%s\' % (short_portal_type, new_id)\n
\n
\n
# Set preferred text format and reference\n
# Set preferred text format and reference\n
context.
edit(content_type=context.portal_preferences.getPreferredTextFormat(),
\n
context.
setContentType(context.portal_preferences.getPreferredTextFormat())
\n
reference=
reference)\n
context.setReference(
reference)\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/erp5_crm/bt/revision
View file @
fb5c4b9b
651
652
\ No newline at end of file
\ No newline at end of file
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