Purchase Order report does not print destination address

Bug #784265 reported by Doug
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

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.

Related branches

Revision history for this message
Edwin Dsouza(OpenERP) (eds-openerp) wrote :

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

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Doug (boarder-dougca) wrote :

Hello,

I have followed your instructions and confirmed that the address is printed.

If I enter the destination address as you describe, the Warehouse field (where the "Ship To" address comes from for the quotation) is cleared. Furthermore if after I have entered a destination address as you describe I select a warehouse the destination address field is cleared. This is not what I expected, and would like to be able to simply select a warehouse to ship to, while still allowing the destination address to be entered as you described.

I propose that the report file be updated to function similar to the Request For Quotation, and have attached a modified version of the order.rml (revision 4238 from trunk) file which does so. I have also removed the accent aigu from "Tel. :" (line 205).

     -Doug

Revision history for this message
Doug (boarder-dougca) wrote :

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

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello.

I have checked your issue.
And the patch seems good So I am confirming this issue.

Thanks for the participation!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: Incomplete → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Rohan Nayani(Open ERP) (ron-tinyerp) wrote :

Hello Doug,

Thanks for Reporting.
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-784265-ron
Revision ID: <email address hidden>
Revision num:4721.
Thanks for your contribution,

It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.