c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24529
[Bug 784265] Re: Purchase Order report does not print destination address
Hello Doug,
I have checked your issue and found that while creating a PO, if I add
supplier information and don't add destination address in delivery and
invoicing tab. Then it doesn't show the shipping address in the PO
report, but when I add the destination address, than I am able to view
the shipping address in the PO report.
For more clear idea I have attached a video.
Thank you
** Attachment added: "purchase_order.ogv"
https://bugs.launchpad.net/openobject-addons/+bug/784265/+attachment/2133301/+files/purchase_order.ogv
** Changed in: openobject-addons
Status: New => Incomplete
--
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