Supplier reference not displayed on reception or purchase order

Bug #993177 reported by gde (OpenERP)
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP Publisher's Warranty Team

Bug Description

On 6.1, when I define a supplier for a product and if I specify a product name reference for this supplier, I am expecting to find this information on the purchase order, the reception order and the supplier invoice.

For the moment, we only find this information on the supplier invoice. We should find the information in the purchase order and in the reception. At least on the PDF report.

Steps to reproduce:
- Create a product with a supplier defined and a product code and name for this supplier
- Create a PO for that product
--> No reference to this specific name/code
- Receive the product
--> No reference to this specific name/code
- Open the invoice
--> Reference to this specific name/code

It is not very logical to find the information only on the invoice because people also send the purchase report to the supplier and the supplier will need his own reference and not the customer reference. It is the same on the reception order, the supplier will send product with his own reference.

It will be easier if the supplier reference is displayed on both the purchase order and the reception order

Tags: maintenance

Related branches

Revision history for this message
gde (OpenERP) (gde-openerp) wrote :

It is not really a duplicate of the bug #979677.

what I explain is that we should find the supplier reference at least on the PDR reports. To be able to look for a product based on the supplier name or code is a nice to have. But the reference to the supplier product on the document you send to the supplier is really useful and more or less mandatory.

Revision history for this message
gde (OpenERP) (gde-openerp) wrote :

and for sure, to have the information directly on the screen is a plus.

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello gde,

Sorry for the Inconvenience. I will double check it.

Thanks!

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello gde,

Finally I got your point, you need supplier's product code and Supplier 's product name on report.

Let's me explain little bit behaviour here:

If you created your PO based on the procurement/scheduler then you will got a supplier product code and Supplier 's product name on purchase order line. So If you print the report on PO then you will definitely got the supplier's product code and Supplier 's product name on report which was fixed on lp:671386.

But If you create a PO manually then on product_id_change of purchase order line doesn't get the supplier's product code and Supplier 's product name that's why you didn't see this on report.

As you said you got this both on report of supplier invoice because If you create a invoice manually .(just check)See on invoice line's when product_id_change method called supplier's product code and Supplier 's product name set on invoice line. That's why thing thing you can see on report.

#Bug : As your reported point supplier product name and code should be displayed on PO report, So we need to fixed this on PO line 's product_id_change then it will automatically displayed report and invoice as well as PO 's behaviour will become same. That's why I am confirming this issue.

Thank you!

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Revision history for this message
Alexis de Lattre (alexis-via) wrote :

This is my gift of the day : I wrote the patch to fix this bug in OpenERP 6.1. The patch alos fixes the bug for OpenERP trunk (you need to apply it manually on trunk because the position of that portion of code in the source file has changed).

I have successfully tested my patch on Openerp 6.1 and trunk.

With this patch, Purchase order lines have the same behavior for the "Description" field as supplier invoices, cf addons-6.1/account/account_invoice.py line 1373 :

result['name'] = res.partner_ref

Enjoy,

Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
removed: profserv
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello gde and Alexis de Lattre,

Issue has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575293-pso with rev-no: 6819
rev-id: <email address hidden>

It will be merged soon with Stable addons branch.

@gde: Thank you for reporting.
@Alexis de Lattre: Thank you for contribution.

Regards,
Priyesh

Changed in openobject-addons:
status: Confirmed → Fix Committed
Revision history for this message
Yann Papouin (yann-papouin) wrote :

Please also check my confirmed bug report:
https://bugs.launchpad.net/openobject-addons/+bug/984680

partner_ref will return default values if supplier code/name are not defined ?

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Alexis, your fix was merged at revision 6916 [1] in 6.1, thanks for your excellent contribution, as usual!

[1] rev-id: <email address hidden>

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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