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

support delivery with persons

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23807 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61008551
...@@ -195,8 +195,6 @@ class EmptyOrganisation:\n ...@@ -195,8 +195,6 @@ class EmptyOrganisation:\n
"""\n """\n
def getTitle(self):\n def getTitle(self):\n
return \'\'\n return \'\'\n
def getCorporateName(self):\n
return \'\'\n
def getDefaultAddressText(self):\n def getDefaultAddressText(self):\n
return \'\'\n return \'\'\n
def getDefaultAddressRegionTitle(self):\n def getDefaultAddressRegionTitle(self):\n
...@@ -211,13 +209,11 @@ class EmptyOrganisation:\n ...@@ -211,13 +209,11 @@ class EmptyOrganisation:\n
return d\n return d\n
\n \n
\n \n
source_section = context.getSourceSectionValue(\n source_section = context.getSourceSectionValue()\n
portal_type=\'Organisation\')\n
if source_section is None:\n if source_section is None:\n
source_section = EmptyOrganisation()\n source_section = EmptyOrganisation()\n
\n \n
destination_section = context.getDestinationSectionValue(\n destination_section = context.getDestinationSectionValue()\n
portal_type=\'Organisation\')\n
if destination_section is None:\n if destination_section is None:\n
destination_section = EmptyOrganisation()\n destination_section = EmptyOrganisation()\n
\n \n
...@@ -237,7 +233,7 @@ if destination_administration is None:\n ...@@ -237,7 +233,7 @@ if destination_administration is None:\n
\n \n
\n \n
data_dict = {\n data_dict = {\n
\'source_section_title\': source_section.getCorporateName() or\\\n \'source_section_title\': source_section.getProperty(\'corporate_name\') or\\\n
source_section.getTitle(),\n source_section.getTitle(),\n
\'source_section_image_path\': context.getSourceSectionValue() is not None\\\n \'source_section_image_path\': context.getSourceSectionValue() is not None\\\n
and context.getSourceSectionValue().getDefaultImagePath() or \'\',\n and context.getSourceSectionValue().getDefaultImagePath() or \'\',\n
...@@ -265,8 +261,9 @@ data_dict = {\n ...@@ -265,8 +261,9 @@ data_dict = {\n
is not None and\\\n is not None and\\\n
context.getSourceSectionValue().getVatCode() or \'\'),\n context.getSourceSectionValue().getVatCode() or \'\'),\n
\n \n
\'source_administration_title\': source_administration.getCorporateName()\\\n \'source_administration_title\': \\\n
or source_administration.getTitle(),\n source_administration.getProperty(\'corporate_name\') \\\n
or source_administration.getTitle(),\n
\'source_administration_address\': getOneLineAddress(\n \'source_administration_address\': getOneLineAddress(\n
source_administration.getDefaultAddressText(),\n source_administration.getDefaultAddressText(),\n
source_administration.getDefaultAddressRegionTitle()),\n source_administration.getDefaultAddressRegionTitle()),\n
...@@ -334,7 +331,7 @@ data_dict = {\n ...@@ -334,7 +331,7 @@ data_dict = {\n
\'destination_vatid\': getVatId(context.getDestination() and\n \'destination_vatid\': getVatId(context.getDestination() and\n
context.getDestinationValue().getProperty(\'vat_code\', \'\') or \'\'),\n context.getDestinationValue().getProperty(\'vat_code\', \'\') or \'\'),\n
\n \n
\'destination_section_title\': destination_section.getCorporateName() or \\\n \'destination_section_title\': destination_section.getProperty(\'corporate_name\') or \\\n
destination_section.getTitle(),\n destination_section.getTitle(),\n
\'destination_section_image_path\': destination_section.getDefaultImagePath(),\n \'destination_section_image_path\': destination_section.getDefaultImagePath(),\n
\'destination_section_image_width\': context.getDestinationSectionValue() is not None\\\n \'destination_section_image_width\': context.getDestinationSectionValue() is not None\\\n
...@@ -353,7 +350,8 @@ data_dict = {\n ...@@ -353,7 +350,8 @@ data_dict = {\n
\'destination_section_vatid\': getVatId(context.getDestinationSection() and\n \'destination_section_vatid\': getVatId(context.getDestinationSection() and\n
context.getDestinationSectionValue().getProperty(\'vat_code\') or \'\'),\n context.getDestinationSectionValue().getProperty(\'vat_code\') or \'\'),\n
\n \n
\'destination_administration_title\': destination_administration.getCorporateName() or \\\n \'destination_administration_title\':\\\n
destination_administration.getProperty(\'corporate_name\') or \\\n
destination_administration.getTitle(),\n destination_administration.getTitle(),\n
\'destination_administration_address\': getOneLineAddress(\n \'destination_administration_address\': getOneLineAddress(\n
destination_administration.getDefaultAddressText(),\n destination_administration.getDefaultAddressText(),\n
......
431 432
\ 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