Customer reference not printed on invoice and packing list

Bug #443132 reported by Jan Verlaan
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Vinay Rana (OpenERP)

Bug Description

SITUATION IDENTIFIED IN:
Invoices and packing list (printed version as wel the form)

REPRODUCTION ENVIRONMENT:
revision-id: <email address hidden>
date: 2009-10-05 12:35:13 +0530
build-date: 2009-10-05 16:00:43 +0200
revno: 2431
branch-nick: addons

PROBLEM DESCRIPTION:
The customer reference inputted on a sales order is not printed on a invoice. It is also not available in the invoice form. When the invoice is send to customer, customer can not find his own reference back when verifying our invoice.
In practice customer is calling back to ask for their own reference belonging to the invoice and payment of invoice is postponed.

The packing list contains no information of the origin of sales order.

SPECIFIC PARAMETER SETUP:
A sales order with "Invoice from the packing"

STEPS TO BE FOLLOWED:
1. Create a sales order and fill in the field "Customer Ref"
2. On the second tab "Other data" be sure to select "Invoice from the packing"
3. Send the goods to customer
4. Create the invoice (from the packing)
5. Check the invoice.

OBSERVED RESULT:
The field "Description" is filled with the packno. from the packing.
The printed invoice has at the place of "Partner Ref" the packno printed.
The packinglist (send to customer) contains no reference to the sales order.

EXPECTED RESULT:
The field "Description" is filled with the "Customer. Ref" from the sales order.
The packinglist contains a reference to the sales order.

ADDITIONAL COMMENTS:
1. We do have already the references to the packing and the sales order in the field "Origin" so it is useless in "Description field"
2. When invoicing is of type "Shipping and Manual invoice" the Customer Ref is filled at description field in invoice
3. Desription field is printed on invoice into the header field called "Partner Ref"
4. The printed packinglist (which is send to the customer) has no reference to the sales order at all!

Related branches

description: updated
description: updated
summary: - Customer reference not printed on invoice
+ Customer reference not printed on invoice and packing list
Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

Please apply the attached patch and reply me for your side suggestion for this and new suggestion will be welcomed.

Thanks.

Changed in openobject-addons:
assignee: nobody → vra (openerp) (vra-openerp)
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

this patch is not clean, don't commit it. (why transforming the reference ?)

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Jan,

Find the patch attached here , it will now pass the reference of customer and picking to invoice.

And For Packing List report, either we may add that in notes or add one fields.related relating customer reference to SO.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Jan,

Would you please check this patch?

Thanks.

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

I have checked and yes it is doing as you described.
Unfortunately the provided solution doesn't feel good as one field is now combined for 2 purposes.
It would be better to have a own field at picking and invoice that store the customer reference at creation time of both documents. this require some more work on reports and the need for a new table field.
For our customer we build last week a customization that does this. I will request the developer to submit his patch here.
Then we can decide what is best for stable and for trunk version.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Jan,

Adding a field I think is not a proper idea.If I am wrong, may be you may go for a blueprint.your precious suggestions are welcomed.

Its fixed by revision 2450 <email address hidden>.

Thank you.

Changed in openobject-addons:
status: In Progress → Fix Released
Revision history for this message
Greg Mader (gmader) wrote :

did this ever get committed to 6.1? It doesn't seem like it is there.

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.