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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
4c6d54c2
Commit
4c6d54c2
authored
Nov 14, 2012
by
Rafael Monnerat
👻
Committed by
Xiaowu Zhang
Feb 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use field instead ad-hoc script to presence Dates nicely
parent
0171fdab
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
293 additions
and
101 deletions
+293
-101
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getFormattedCreationDate.xml
...kins/erp5_commerce/SaleOrder_getFormattedCreationDate.xml
+0
-79
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/SaleOrderModule_viewAsWebSaleOrderList.xml
...widget_library/SaleOrderModule_viewAsWebSaleOrderList.xml
+9
-0
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/SaleOrderModule_viewAsWebSaleOrderList/listbox.xml
...ibrary/SaleOrderModule_viewAsWebSaleOrderList/listbox.xml
+9
-22
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/SaleOrderModule_viewAsWebSaleOrderList/listbox_creation_date.xml
...erModule_viewAsWebSaleOrderList/listbox_creation_date.xml
+275
-0
No files found.
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getFormattedCreationDate.xml
deleted
100644 → 0
View file @
0171fdab
<?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>
"""\n
Return the creation date of the current context with\n
a niceer format.\n
\n
TODO:\n
- use a field and form for this purpose\n
"""\n
creation_date = context.getCreationDate()\n
return creation_date.strftime(\'%a, %d %b %Y %H:%M %p\')\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SaleOrder_getFormattedCreationDate
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Format creation date
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/SaleOrderModule_viewAsWebSaleOrderList.xml
View file @
4c6d54c2
...
...
@@ -50,6 +50,7 @@
<value>
<list>
<string>
bottom
</string>
<string>
hidden
</string>
</list>
</value>
</item>
...
...
@@ -65,6 +66,14 @@
</list>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<list>
<string>
listbox_creation_date
</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
...
...
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/SaleOrderModule_viewAsWebSaleOrderList/listbox.xml
View file @
4c6d54c2
...
...
@@ -362,7 +362,7 @@
<string>
Price
</string>
</tuple>
<tuple>
<string>
SaleOrder_getFormattedCreationD
ate
</string>
<string>
creation_d
ate
</string>
<string>
Order Date
</string>
</tuple>
<tuple>
...
...
@@ -411,7 +411,12 @@
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<list/>
<list>
<tuple>
<string>
creation_date
</string>
<string>
creation_date
</string>
</tuple>
</list>
</value>
</item>
<item>
...
...
@@ -529,7 +534,7 @@
<string>
Price
</string>
</tuple>
<tuple>
<string>
SaleOrder_getFormattedCreationD
ate
</string>
<string>
creation_d
ate
</string>
<string>
Date
</string>
</tuple>
<tuple>
...
...
@@ -562,25 +567,7 @@
<item>
<key>
<string>
url_columns
</string>
</key>
<value>
<list>
<tuple>
<string>
id
</string>
<string>
title
</string>
<string>
SaleOrder_getSaleOrderUrl
</string>
</tuple>
<tuple>
<string>
SaleOrder_getFormattedTotalPrice
</string>
<string>
SaleOrder_getSaleOrderUrl
</string>
</tuple>
<tuple>
<string>
SaleOrder_getFormattedCreationDate
</string>
<string>
SaleOrder_getSaleOrderUrl
</string>
</tuple>
<tuple>
<string>
translated_simulation_state
</string>
<string>
SaleOrder_getSaleOrderUrl
</string>
</tuple>
</list>
<list/>
</value>
</item>
</dictionary>
...
...
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/SaleOrderModule_viewAsWebSaleOrderList/listbox_creation_date.xml
0 → 100644
View file @
4c6d54c2
This diff is collapsed.
Click to expand it.
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