Commit b172d348 authored by Jérome Perrin's avatar Jérome Perrin

When office:value-type is set to float, office:value must be defined,...

When office:value-type is set to float, office:value must be defined, otherwise odf is invalid with this cryptic message: Element text has extra content: sequence-decls 


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22066 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 635ce6df
...@@ -494,9 +494,11 @@ AAA=</string> </value> ...@@ -494,9 +494,11 @@ AAA=</string> </value>
tal:content=\'python:line_dict["description"]\'\n tal:content=\'python:line_dict["description"]\'\n
tal:attributes=\'text:style-name left_style_name\'>desc</text:p>\n tal:attributes=\'text:style-name left_style_name\'>desc</text:p>\n
</table:table-cell>\n </table:table-cell>\n
<table:table-cell table:style-name=\'Tableau1.A3\' office:value-type=\'float\'>\n <table:table-cell table:style-name=\'Tableau1.A3\'\n
office:value-type=\'float\'\n
tal:attributes=\'office:value line_dict/total_quantity\'> \n
<text:p text:style-name=\'Table_20_Contents\'\n <text:p text:style-name=\'Table_20_Contents\'\n
tal:content=\'python:line_dict["total_quantity"]\'\n tal:content=\'line_dict/total_quantity\'\n
tal:attributes=\'text:style-name right_style_name\'>qty</text:p>\n tal:attributes=\'text:style-name right_style_name\'>qty</text:p>\n
</table:table-cell>\n </table:table-cell>\n
<table:table-cell table:style-name=\'Tableau1.A3\' office:value-type=\'string\'>\n <table:table-cell table:style-name=\'Tableau1.A3\' office:value-type=\'string\'>\n
...@@ -509,12 +511,16 @@ AAA=</string> </value> ...@@ -509,12 +511,16 @@ AAA=</string> </value>
tal:content=\'python:line_dict["stop_date"]\'\n tal:content=\'python:line_dict["stop_date"]\'\n
tal:attributes=\'text:style-name style_name\'>stop_date</text:p>\n tal:attributes=\'text:style-name style_name\'>stop_date</text:p>\n
</table:table-cell>\n </table:table-cell>\n
<table:table-cell table:style-name=\'Tableau1.A3\' office:value-type=\'float\'>\n <table:table-cell table:style-name=\'Tableau1.A3\'\n
office:value-type=\'float\'\n
tal:attributes="office:value line_dict/base_price">\n
<text:p text:style-name=\'Table_20_Contents\'\n <text:p text:style-name=\'Table_20_Contents\'\n
tal:content=\'python:line_dict["base_price"]\'\n tal:content=\'python:line_dict["base_price"]\'\n
tal:attributes=\'text:style-name right_style_name\'>base_price</text:p>\n tal:attributes=\'text:style-name right_style_name\'>base_price</text:p>\n
</table:table-cell>\n </table:table-cell>\n
<table:table-cell table:style-name=\'Tableau1.A3\' office:value-type=\'float\'>\n <table:table-cell table:style-name=\'Tableau1.A3\'\n
office:value-type=\'float\'\n
tal:attributes=\'office:value line_dict/total_price\'>\n
<text:p text:style-name=\'Table_20_Contents\'\n <text:p text:style-name=\'Table_20_Contents\'\n
tal:content=\'python:line_dict["total_price"]\'\n tal:content=\'python:line_dict["total_price"]\'\n
tal:attributes=\'text:style-name right_style_name\'>total_price</text:p>\n tal:attributes=\'text:style-name right_style_name\'>total_price</text:p>\n
...@@ -561,7 +567,9 @@ AAA=</string> </value> ...@@ -561,7 +567,9 @@ AAA=</string> </value>
<text:p text:style-name=\'Table_20_Heading\'><span tal:replace=\'en_string\'/>:</text:p>\n <text:p text:style-name=\'Table_20_Heading\'><span tal:replace=\'en_string\'/>:</text:p>\n
<text:p text:style-name=\'Table_20_Heading\' tal:condition=\'python:my_string!=en_string\'><span tal:replace=\'my_string\'/>:</text:p>\n <text:p text:style-name=\'Table_20_Heading\' tal:condition=\'python:my_string!=en_string\'><span tal:replace=\'my_string\'/>:</text:p>\n
</table:table-cell>\n </table:table-cell>\n
<table:table-cell table:style-name=\'Tableau3.E2\' office:value-type=\'float\'>\n <table:table-cell table:style-name=\'Tableau3.E2\'\n
office:value-type=\'float\'\n
tal:attributes=\'office:value data_dict/total_price_novat\'>\n
<text:p text:style-name=\'Table_20_Contents_20_Right\' tal:content=\'python:data_dict["total_price_novat"]\'>800.000,00</text:p>\n <text:p text:style-name=\'Table_20_Contents_20_Right\' tal:content=\'python:data_dict["total_price_novat"]\'>800.000,00</text:p>\n
</table:table-cell>\n </table:table-cell>\n
</table:table-row>\n </table:table-row>\n
...@@ -679,7 +687,8 @@ AAA=</string> </value> ...@@ -679,7 +687,8 @@ AAA=</string> </value>
<text:p text:style-name=\'P4\'/>\n <text:p text:style-name=\'P4\'/>\n
</office:text>\n </office:text>\n
</office:body>\n </office:body>\n
</office:document-content> </office:document-content>\n
]]></string> </value> ]]></string> </value>
</item> </item>
......
396 397
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment