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
Titouan Soulard
erp5
Commits
d0d7fac6
Commit
d0d7fac6
authored
Mar 12, 2015
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trade : add jump from resource module to related sale packing lists
parent
f860a113
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
390 additions
and
0 deletions
+390
-0
bt5/erp5_trade/ActionTemplateItem/portal_types/Component%20Module/jump_to_related_sale_packing_list.xml
.../Component%20Module/jump_to_related_sale_packing_list.xml
+85
-0
bt5/erp5_trade/ActionTemplateItem/portal_types/Product%20Module/jump_to_related_sale_packing_list.xml
...es/Product%20Module/jump_to_related_sale_packing_list.xml
+85
-0
bt5/erp5_trade/ActionTemplateItem/portal_types/Service%20Module/jump_to_related_sale_packing_list.xml
...es/Service%20Module/jump_to_related_sale_packing_list.xml
+85
-0
bt5/erp5_trade/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_child_resource.catalog_keys.xml
...p5_mysql_innodb/z_related_child_resource.catalog_keys.xml
+2
-0
bt5/erp5_trade/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_child_resource.xml
...al_catalog/erp5_mysql_innodb/z_related_child_resource.xml
+46
-0
bt5/erp5_trade/CatalogRelatedKeyTemplateItem/related_key_list.xml
..._trade/CatalogRelatedKeyTemplateItem/related_key_list.xml
+3
-0
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_getRelatedSalePackingListList.xml
...l_skins/erp5_trade/Base_getRelatedSalePackingListList.xml
+79
-0
bt5/erp5_trade/bt/template_action_path_list
bt5/erp5_trade/bt/template_action_path_list
+3
-0
bt5/erp5_trade/bt/template_catalog_method_id_list
bt5/erp5_trade/bt/template_catalog_method_id_list
+1
-0
bt5/erp5_trade/bt/template_catalog_related_key_list
bt5/erp5_trade/bt/template_catalog_related_key_list
+1
-0
No files found.
bt5/erp5_trade/ActionTemplateItem/portal_types/Component%20Module/jump_to_related_sale_packing_list.xml
0 → 100644
View file @
d0d7fac6
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_jump
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jump
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
jump_to_related_sale_packing_list
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Action Information
</string>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Related Sale Packing Lists
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/Base_getRelatedSalePackingListList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_trade/ActionTemplateItem/portal_types/Product%20Module/jump_to_related_sale_packing_list.xml
0 → 100644
View file @
d0d7fac6
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_jump
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jump
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
jump_to_related_sale_packing_list
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Action Information
</string>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Related Sale Packing Lists
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/Base_getRelatedSalePackingListList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_trade/ActionTemplateItem/portal_types/Service%20Module/jump_to_related_sale_packing_list.xml
0 → 100644
View file @
d0d7fac6
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_jump
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jump
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
jump_to_related_sale_packing_list
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Action Information
</string>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Related Sale Packing Lists
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/Base_getRelatedSalePackingListList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_trade/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_child_resource.catalog_keys.xml
0 → 100644
View file @
d0d7fac6
<catalog_method>
</catalog_method>
bt5/erp5_trade/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_child_resource.xml
0 → 100644
View file @
d0d7fac6
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
table_0\r\n
table_1\r\n
table_2\r\n
RELATED_QUERY_SEPARATOR=" AND "\r\n
query_table="catalog"
</string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z_related_child_resource
</string>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<dtml-var table_0>
.uid =
<dtml-var
table_1
>
.uid\n
<dtml-var
RELATED_QUERY_SEPARATOR
>
\n
<dtml-var
table_2
>
.uid =
<dtml-var
table_1
>
.category_uid\n
<dtml-var
RELATED_QUERY_SEPARATOR
>
\n
<dtml-var
table_1
>
.base_category_uid =
<dtml-var
"portal_categories.resource.getUid()"
>
\n
AND
<dtml-var
table_0
>
.uid =
<dtml-var
table_1
>
.uid\n
AND
<dtml-var
table_0
>
.parent_uid =
<dtml-var
query_table
>
.uid
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_trade/CatalogRelatedKeyTemplateItem/related_key_list.xml
0 → 100644
View file @
d0d7fac6
<key_list>
<key>
child_resource_uid | catalog,category,catalog/uid/z_related_child_resource
</key>
</key_list>
\ No newline at end of file
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_getRelatedSalePackingListList.xml
0 → 100644
View file @
d0d7fac6
<?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
encoding=
"cdata"
>
<![CDATA[
portal = context.getPortalObject()\n
selection_name = context.REQUEST.form[\'selection_name\']\n
uids = portal.portal_selections.getSelectionCheckedUidsFor(selection_name)\n
\n
param_list = []\n
for uid in uids:\n
param_list.append("child_resource_uid:list=%s" %(uid))\n
\n
portal.sale_packing_list_module.Base_redirect(\'view?%s\' %"&".join(param_list))\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_getRelatedSalePackingListList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_trade/bt/template_action_path_list
View file @
d0d7fac6
...
@@ -3,6 +3,7 @@ Business Link | view
...
@@ -3,6 +3,7 @@ Business Link | view
Business Process Module | view
Business Process Module | view
Business Process | trade_model_path_view
Business Process | trade_model_path_view
Business Process | view
Business Process | view
Component Module | jump_to_related_sale_packing_list
Container Line | view
Container Line | view
Container Line | view_quantity
Container Line | view_quantity
Container | view
Container | view
...
@@ -68,6 +69,7 @@ Person | jump_to_purchase_order
...
@@ -68,6 +69,7 @@ Person | jump_to_purchase_order
Person | jump_to_purchase_packing_list
Person | jump_to_purchase_packing_list
Person | jump_to_sale_order
Person | jump_to_sale_order
Person | jump_to_sale_packing_list
Person | jump_to_sale_packing_list
Product Module | jump_to_related_sale_packing_list
Purchase Order Cell | view
Purchase Order Cell | view
Purchase Order Line | price_view
Purchase Order Line | price_view
Purchase Order Line | profile_view
Purchase Order Line | profile_view
...
@@ -192,6 +194,7 @@ Sale Trade Condition | view
...
@@ -192,6 +194,7 @@ Sale Trade Condition | view
Sale Trade Condition | view_payment
Sale Trade Condition | view_payment
Sale Trade Condition | view_profile
Sale Trade Condition | view_profile
Sale Trade Condition | view_trade_model_line_list
Sale Trade Condition | view_trade_model_line_list
Service Module | jump_to_related_sale_packing_list
System Preference | pricing_preference
System Preference | pricing_preference
System Preference | trade_preference
System Preference | trade_preference
Trade Model Line Cell Consistency Constraint | predicate
Trade Model Line Cell Consistency Constraint | predicate
...
...
bt5/erp5_trade/bt/template_catalog_method_id_list
0 → 100644
View file @
d0d7fac6
erp5_mysql_innodb/z_related_child_resource
\ No newline at end of file
bt5/erp5_trade/bt/template_catalog_related_key_list
0 → 100644
View file @
d0d7fac6
child_resource_uid | catalog,category,catalog/uid/z_related_child_resource
\ 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