Commit a4ed1a23 authored by Romain Courteaud's avatar Romain Courteaud 🐸

Use accessor to fetch property.

Do not raise exception if user is not allowed to access the Trade Condition
parent 12ffcbad
...@@ -224,7 +224,7 @@ for line in getSubLineList(context):\n ...@@ -224,7 +224,7 @@ for line in getSubLineList(context):\n
\'stop_date\': getOrderedDate(line.getStopDate()) or \'\',\n \'stop_date\': getOrderedDate(line.getStopDate()) or \'\',\n
\'base_price\': line.getPrice() or \'\',\n \'base_price\': line.getPrice() or \'\',\n
\'total_price\': line.getTotalPrice() or 0,\n \'total_price\': line.getTotalPrice() or 0,\n
\'specialise_title\' : line.getProperty(\'specialise_title\', \'\'),\n \'specialise_title\' : line.getSpecialiseTitle(checked_permission=\'Access Content Information\'),\n
}\n }\n
\n \n
if line_dict[\'use_type_tax\']:\n if line_dict[\'use_type_tax\']:\n
...@@ -457,7 +457,7 @@ data_dict = {\n ...@@ -457,7 +457,7 @@ data_dict = {\n
\'vat_list\': total_vat,\n \'vat_list\': total_vat,\n
\'vat_total_price\':total_vat_price,\n \'vat_total_price\':total_vat_price,\n
\'description\': getFieldAsLineList(context.getDescription()),\n \'description\': getFieldAsLineList(context.getDescription()),\n
\'specialise_title\': context.getProperty(\'specialise_title\',\'\'),\n \'specialise_title\' : context.getSpecialiseTitle(checked_permission=\'Access Content Information\'),\n
\'line_vat\':line_vat,\n \'line_vat\':line_vat,\n
\'line_not_vat\':line_not_vat,\n \'line_not_vat\':line_not_vat,\n
\'line_list\': line_list,\n \'line_list\': line_list,\n
......
1028 1029
\ 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