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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
2c7e0157
Commit
2c7e0157
authored
Nov 28, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new method & new field library for rendering of paysheet as ODT
parent
7d17baa2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getODTDataDict.xml
...skins/erp5_payroll/PaySheetTransaction_getODTDataDict.xml
+1
-1
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAsODT.xml
...rtal_skins/erp5_payroll/PaySheetTransaction_viewAsODT.xml
+4
-5
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAsODTStyles.xml
...kins/erp5_payroll/PaySheetTransaction_viewAsODTStyles.xml
+3
-4
bt5/erp5_payroll/bt/revision
bt5/erp5_payroll/bt/revision
+1
-1
No files found.
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getODTDataDict.xml
View file @
2c7e0157
...
...
@@ -154,7 +154,7 @@ def getSocialOrganisationValue():\n
# one Business Process, so the first (which is the nearest from the\n
# delivery) is took\n
business_process = business_process_list[0]\n
business_path_list = business_process.getPathValueList(trade_phase=\\\n
business_path_list = business_process.get
TradeModel
PathValueList(trade_phase=\\\n
\'payroll/invoicing/social_security\')\n
if len(business_path_list) >
1:\n
raise NotImplementedError, \'For now, it can not support more \'\\\n
...
...
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAsODT.xml
View file @
2c7e0157
...
...
@@ -51,7 +51,7 @@ AAA=</string> </value>
<office:document-content xmlns:office=\'urn:oasis:names:tc:opendocument:xmlns:office:1.0\' xmlns:text=\'urn:oasis:names:tc:opendocument:xmlns:text:1.0\' xmlns:number=\'urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\' xmlns:meta=\'urn:oasis:names:tc:opendocument:xmlns:meta:1.0\' xmlns:tal=\'http://xml.zope.org/namespaces/tal\' xmlns:table=\'urn:oasis:names:tc:opendocument:xmlns:table:1.0\' xmlns:style=\'urn:oasis:names:tc:opendocument:xmlns:style:1.0\' xmlns:script=\'urn:oasis:names:tc:opendocument:xmlns:script:1.0\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:math=\'http://www.w3.org/1998/Math/MathML\' xmlns:draw=\'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\' xmlns:form=\'urn:oasis:names:tc:opendocument:xmlns:form:1.0\' xmlns:ooo=\'http://openoffice.org/2004/office\' xmlns:dc=\'http://purl.org/dc/elements/1.1/\' xmlns:chart=\'urn:oasis:names:tc:opendocument:xmlns:chart:1.0\' xmlns:i18n=\'http://xml.zope.org/namespaces/i18n\' xmlns:dr3d=\'urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\' xmlns:fo=\'urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\' xmlns:xforms=\'http://www.w3.org/2002/xforms\' xmlns:dom=\'http://www.w3.org/2001/xml-events\' xmlns:ooow=\'http://openoffice.org/2004/writer\' xmlns:svg=\'urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\' xmlns:metal=\'http://xml.zope.org/namespaces/metal\' xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\' xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xmlns:oooc=\'http://openoffice.org/2004/calc\' tal:attributes=\'dummy python:request.RESPONSE.setHeader("Content-Type", "text/html;; charset=utf-8")\' office:version=\'1.0\'\n
tal:define="data_dict here/PaySheetTransaction_getODTDataDict;\n
set_precision python: request.set(\'precision\', here.getQuantityPrecisionFromResource(here.getPriceCurrency()));\n
quantity_renderer nocall:here/Base_viewFieldLibrary/my_money_quantity/render_pdf;\n
quantity_renderer nocall:here/Base_viewFieldLibrary/my_
view_mode_
money_quantity/render_pdf;\n
gross_category python:\'base_amount/payroll/report/salary/gross\';\n
price_renderer nocall:here/PaySheetTransaction_viewFieldLibrary/my_price/render_pdf;\n
default_language python:test(request.get(\'international_form\'), \'en\', here.Localizer.get_selected_language())">
\n
...
...
@@ -649,8 +649,7 @@ AAA=</string> </value>
<text:p
text:style-name=
\'P4\'/
>
\n
</office:text>
\n
</office:body>
\n
</office:document-content>
\n
</office:document-content>
]]>
</unicode>
</value>
</item>
...
...
@@ -676,11 +675,11 @@ AAA=</string> </value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
<value>
<string>
iso-8859-15
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<
string></string
>
</value>
<value>
<
unicode></unicode
>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAsODTStyles.xml
View file @
2c7e0157
...
...
@@ -309,7 +309,7 @@ AAA=</string> </value>
<office:master-styles>
\n
<style:master-page
style:name=
"Standard"
style:page-layout-name=
"pm1"
>
\n
<style:header
tal:define=
"default_language python:test(request.get(\'international_form\'), \'en\', here.Localizer.get_selected_language());\n
date_renderer nocall:here/Base_viewFieldLibrary/my_date/render_pdf;\n
date_renderer nocall:here/Base_viewFieldLibrary/my_date
_time_field
/render_pdf;\n
orig_title python: \'Payslip\';\n
en_title python: unicode(here.Base_translateString(orig_title, lang=default_language), \'utf-8\');\n
my_title python: unicode(here.Base_translateString(orig_title), \'utf-8\');\n
...
...
@@ -367,14 +367,13 @@ AAA=</string> </value>
</style:master-page>
\n
<style:master-page
style:name=
"Endnote"
style:page-layout-name=
"pm2"
/>
\n
</office:master-styles>
\n
</office:document-styles>
\n
</office:document-styles>
]]>
</unicode>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/vnd.oasis.opendocument.text
</string>
</value>
<value>
<string>
text/xml
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
...
...
bt5/erp5_payroll/bt/revision
View file @
2c7e0157
588
\ No newline at end of file
589
\ 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