c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24584
[Bug 784265] Re: Purchase Order report does not print destination address
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
** Attachment added: "Updated order.rml file"
https://bugs.launchpad.net/openobject-addons/+bug/784265/+attachment/2133651/+files/order.rml
--
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