Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
c9258290
Commit
c9258290
authored
Jul 27, 2015
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_trade: translate title and description in Order_printAsODSSummary
parent
1d45ec10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_printAsODSSummary.xml
...eItem/portal_skins/erp5_trade/Order_printAsODSSummary.xml
+4
-4
No files found.
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_printAsODSSummary.xml
View file @
c9258290
...
@@ -85,10 +85,10 @@ line_list.sort(sortMovement)\n
...
@@ -85,10 +85,10 @@ line_list.sort(sortMovement)\n
\n
\n
order_type_list = context.getPortalOrderTypeList()\n
order_type_list = context.getPortalOrderTypeList()\n
def getMovementTitle(movement):\n
def getMovementTitle(movement):\n
title = movement.getTitle()\n
title = movement.getT
ranslatedT
itle()\n
parent_value = movement.getParentValue()\n
parent_value = movement.getParentValue()\n
while parent_value.getPortalType() not in order_type_list:\n
while parent_value.getPortalType() not in order_type_list:\n
title = parent_value.getTitle() + \' / \' + title\n
title = parent_value.getT
ranslatedT
itle() + \' / \' + title\n
log(\'parent_value\', parent_value)\n
log(\'parent_value\', parent_value)\n
parent_value = parent_value.getParentValue()\n
parent_value = parent_value.getParentValue()\n
return title\n
return title\n
...
@@ -100,8 +100,8 @@ else:\n
...
@@ -100,8 +100,8 @@ else:\n
default_quantity_unit_title = context.portal_categories.\\\n
default_quantity_unit_title = context.portal_categories.\\\n
restrictedTraverse(\'quantity_unit/\' + default_quantity_unit).getTitle()\n
restrictedTraverse(\'quantity_unit/\' + default_quantity_unit).getTitle()\n
\n
\n
column_list = [(\'reference\', \'Reference\'), (\'title\', \'Title\'), \\\n
column_list = [(\'reference\', \'Reference\'), (\'t
ranslated_t
itle\', \'Title\'), \\\n
(\'description\', \'Description\'), (\'start_date\', \'Shipping Date\'), \\\n
(\'
translated_
description\', \'Description\'), (\'start_date\', \'Shipping Date\'), \\\n
(\'stop_date\', \'Delivery Date\'), (\'per_line_total_price\', \'Total Price\')]\n
(\'stop_date\', \'Delivery Date\'), (\'per_line_total_price\', \'Total Price\')]\n
if error is None:\n
if error is None:\n
for line in line_list:\n
for line in line_list:\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