← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 784265] Re: Purchase Order report does not print destination address

 

I am attaching a .diff (patch) file I created, though I have not done
this before so would suggest it is checked first.

** Patch added: "diff file for order.rml (Should be checked)"
   https://bugs.launchpad.net/openobject-addons/+bug/784265/+attachment/2133903/+files/Bug784265_order.rml.diff

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/784265

Title:
  Purchase Order report does not print destination address

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  When Purchase Orders (POs) are printed the "Ship To" destination
  address is not printed.  The address prints in the request for
  quotation report (request_quotation.rml) however nothing appears in
  the PO report (order.rml).

  To reproduce this I print a Purchase order for either a Request For
  Quotation or Purchase Order from the GTK client (version 6.0.2 on
  Windows XP).  In the resulting PDF I observe that the address is
  missing from the top left where I expect it to be.

  The server is running OpenERP 6.0.2 on Ubuntu 10.04 LTS x86_64 with
  purchase module version 6.0.1.1

  I expect that lines 175-182 from order.rml (shown below) should be
  printing the address.

    <para style="terp_default_9">[[ repeatIn(o.dest_address_id and [o.dest_address_id] or [],'addr') ]]</para>
    <para style="terp_default_Bold_9">Shipping address :</para>
    <para style="terp_default_9">[[ (addr.partner_id and addr.partner_id.title and addr.partner_id.title.name) or '' ]] [[ (addr.partner_id and addr.partner_id.name) or '' ]]</para>
    <para style="terp_default_9">[[ addr.street ]]</para>
    <para style="terp_default_9">[[ addr.street2 or removeParentNode('para') ]]</para>
    <para style="terp_default_9">[[ addr.zip or '' ]] [[ addr.city or '' ]]</para>
    <para style="terp_default_9">[[ addr.state_id and addr.state_id.name or removeParentNode('para') ]]</para>
    <para style="terp_default_9">[[ addr.country_id and addr.country_id.name or '' ]]</para>

  However nothing in the cell is printed, not even the text "Shipping
  Address :" which I would expect to print even if the variables could
  not be found/accessed.  This occurs on a new database (with rml files
  that have not been edited).  Adding text in the cell did not show
  either, however it did appear when placed in the other cells
  surrounding this one.  Also, if line 175 is removed then "Shipping
  address :" (from the next line) is printed but still no address.

  Please let me know if you have any suggestions or need any further
  information.


References