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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
896e5cc8
Commit
896e5cc8
authored
Dec 13, 2011
by
Arnaud Fontaine
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to jump from Product to its related Transformation using it as Material as well.
parent
fa3e155a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
104 additions
and
6 deletions
+104
-6
bt5/erp5_pdm/ActionTemplateItem/portal_types/Product/jump_to_related_transformation.xml
...m/portal_types/Product/jump_to_related_transformation.xml
+1
-5
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Resource_jumpToRelatedTransformation.xml
...l_skins/erp5_pdm/Resource_jumpToRelatedTransformation.xml
+99
-0
bt5/erp5_pdm/bt/change_log
bt5/erp5_pdm/bt/change_log
+3
-0
bt5/erp5_pdm/bt/revision
bt5/erp5_pdm/bt/revision
+1
-1
No files found.
bt5/erp5_pdm/ActionTemplateItem/portal_types/Product/jump_to_related_transformation.xml
View file @
896e5cc8
...
...
@@ -71,11 +71,7 @@
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
string:${object_url}/Base_jumpToRelatedObject?base_category=resource&portal_type=Transformation
]]>
</string>
</value>
<value>
<string>
string:${object_url}/Resource_jumpToRelatedTransformation
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Resource_jumpToRelatedTransformation.xml
0 → 100644
View file @
896e5cc8
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
translateString = portal.Base_translateString\n
transformation_value_list = context.getRelatedValueList(checked_permission=\'View\',\n
portal_type=(\'Transformation\',\n
\'Transformation Transformed Resource\'))\n
if len(transformation_value_list) == 0:\n
return context.Base_redirect(\'view\',\n
keep_items=dict(portal_status_message=translateString(\'No Transformation related.\')))\n
elif len(transformation_value_list) == 1:\n
related_object = transformation_value_list[0]\n
if related_object.getPortalType() == \'Transformation Transformed Resource\':\n
related_object = related_object.getParentValue()\n
return related_object.Base_redirect(\n
\'view\',\n
keep_items=dict(reset=1,\n
portal_status_message=translateString(\'${this_portal_type} related to ${that_portal_type} : ${that_title}.\',\n
mapping={"this_portal_type": related_object.getTranslatedPortalType(),\n
"that_portal_type": context.getTranslatedPortalType(),\n
"that_title": context.getTitleOrId()})))\n
else:\n
transformation_uid_list = []\n
for value in transformation_value_list:\n
if value.getPortalType() == \'Transformation Transformed Resource\':\n
uid = value.getParentUid()\n
else:\n
uid = value.getUid()\n
\n
transformation_uid_list.append(uid)\n
\n
module = portal.getDefaultModule(\'Transformation\')\n
return module.Base_redirect(\'view\',\n
keep_items=dict(reset=1,\n
uid=transformation_uid_list))\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Resource_jumpToRelatedTransformation
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_pdm/bt/change_log
View file @
896e5cc8
2011-12-13 arnaud.fontaine
* Allow to jump from Product to its related Transformation using it as Material as well.
2011-11-22 yusei
* Stop showing detailed DateTime in listbox. This problem started occur due to recent specification change of zope's DateTime.
...
...
bt5/erp5_pdm/bt/revision
View file @
896e5cc8
568
\ No newline at end of file
569
\ No newline at end of file
Jérome Perrin
@jerome
mentioned in commit
98ec384d
·
Jul 27, 2021
mentioned in commit
98ec384d
mentioned in commit 98ec384d4bbdf11f725e99021fd90d210de5bf3f
Toggle commit list
Jérome Perrin
@jerome
mentioned in commit
1e35477f
·
Jul 28, 2021
mentioned in commit
1e35477f
mentioned in commit 1e35477f4e6b6a84dda47089235eb499d6fbd529
Toggle commit list
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