Commit 75214141 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

getResourceRelativeUrl() is just same as getResource().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30935 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 011d3e8d
......@@ -82,7 +82,7 @@ for line in line_list:\n
else:\n
currency = line.getResourceValue()\n
exchange_ratio = currency.getPrice(context=line.asContext(\n
categories=[\'resource/%s\' % line.getResourceRelativeUrl(), \n
categories=[\'resource/%s\' % line.getResource(), \n
\'price_currency/currency_module/%s\' %\n
line.getDestinationSectionValue().getPriceCurrencyId()],\n
start_date=line.getStopDate()))\n
......
......@@ -77,7 +77,7 @@ for line in line_list:\n
else:\n
currency = line.getResourceValue()\n
exchange_ratio = currency.getPrice(context=line.asContext(\n
categories=[\'resource/%s\' % line.getResourceRelativeUrl(), \n
categories=[\'resource/%s\' % line.getResource(), \n
\'price_currency/currency_module/%s\' %\n
line.getSourceSectionValue().getPriceCurrencyId()],\n
start_date=line.getStartDate()))\n
......
......@@ -59,7 +59,7 @@ in the conversion of the destination price\n
"""\n
\n
currency = context.getResourceValue()\n
exchange_ratio = currency.getPrice(context=context.asContext(categories=[\'resource/%s\' % context.getResourceRelativeUrl(), \n
exchange_ratio = currency.getPrice(context=context.asContext(categories=[\'resource/%s\' % context.getResource(), \n
\'price_currency/currency_module/%s\' % context.getDestinationSectionValue().getPriceCurrencyId()],\n
start_date=context.getStopDate()))\n
return exchange_ratio\n
......
......@@ -54,7 +54,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>currency = context.getResourceValue()\n
exchange_ratio = currency.getPrice(context=context.asContext(categories=[\'resource/%s\' % context.getResourceRelativeUrl(), \n
exchange_ratio = currency.getPrice(context=context.asContext(categories=[\'resource/%s\' % context.getResource(), \n
\'price_currency/currency_module/%s\' % context.getSourceSectionValue().getPriceCurrencyId()],\n
start_date=context.getStartDate()))\n
return exchange_ratio\n
......
1069
\ No newline at end of file
1070
\ No newline at end of file
......@@ -79,10 +79,10 @@ for line in listbox:\n
cell = result[int(line_id)-1]\n
cell.setResourceValue(product) \n
line["quantity_unit"] = cell.getQuantityUnit()\n
line["resource_relative_url"] = cell.getResourceRelativeUrl()\n
request.form["field_listbox_resource_relative_url_new_%s"%line_id]=cell.getResourceRelativeUrl()\n
kw["field_listbox_resource_relative_url_new_%s"%line_id]=cell.getResourceRelativeUrl()\n
request.set("field_listbox_resource_relative_url_new_%s"%line_id,cell.getResourceRelativeUrl())\n
line["resource_relative_url"] = cell.getResource()\n
request.form["field_listbox_resource_relative_url_new_%s"%line_id]=cell.getResource()\n
kw["field_listbox_resource_relative_url_new_%s"%line_id]=cell.getResource()\n
request.set("field_listbox_resource_relative_url_new_%s"%line_id,cell.getResource())\n
request.form["field_listbox_reference_new_%s"%line_id] = product.getReference() or \'\'\n
request.form["field_listbox_title_new_%s"%line_id] = product.getTitle()\n
request.form["field_listbox_quantity_unit_new_%s"%line_id] = cell.getQuantityUnit()\n
......
790
\ No newline at end of file
791
\ No newline at end of file
......@@ -109,5 +109,5 @@ class EmploymentContract(SubscriptionItem):
destination_section = employer,
quantity = self.getQuantity(),
quantity_unit = self.getQuantityUnit(),
resource = self.getResourceRelativeUrl()
resource = self.getResource()
)
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