Wrong product description copied to invoice lines

Bug #1101146 reported by Numérigraphe
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

In all current versions, when an invoice is manually recorded, the field <product.product>.description is automatically copied to the field <account.invoice.line>.note .
This is not consistent with the way the invoices are generated by the other modules.
On supplier invoices generated from a purchase order, the field <product.product>.description_purchase is copied instead.
On supplier invoices generated from a sale order, the field <product.product>.description_sale is copied instead.

So I suggest that when manually recording an invoice,
- if it's a supplier invoice, we copy <product.product>.description_purchase to <account.invoice.line>.note
- if it's a customer invoice, we copy <product.product>.description_sale to <account.invoice.line>.note

Lionel Sausin

Related branches

Revision history for this message
Numérigraphe (numerigraphe) wrote :

This is assuming that, on products, "description" is for internal use only. Unfortunately I could not find any documentation to prove this right or wrong.
The only thing I can tell is that there is no other module that copies "description" to a customer or supplier document.

Revision history for this message
Numérigraphe (numerigraphe) wrote :

I'm pushing a branch with a trivial patch and related help texts.
Lionel.

Changed in openobject-addons:
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello,
           I have checked and updated code and help with following branch
           It has been Fixed in :lp:~openerp-dev/openobject-addons/trunk-bug-1101146-rmu
           Revno: 8517
           Revision ID: <email address hidden>

It will be merged soon with trunk

Thanks,

Changed in openobject-addons:
status: Confirmed → Fix Committed
Revision history for this message
Ferdinand (office-chricar) wrote :

just a question
what is "soon" ?

Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

Thanks for reporting and sorry for the long delay.
 The changes have been integrated into trunk at revision 8743 (revision-id: <email address hidden>)
Regards

Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Denise van der Linden-Morris (denise) wrote :

I'm still facing an incorrect copy of the product description to the quotation whenever I create a new product in SAAS (.odoo.com account) by copying a similar product and changing the description before saving.

Whenever I save the copied product first and go back in edit mode before changing the description the incorrect description disappears

Revision history for this message
Daniel Blanco (daniel-blancomartin) wrote :

This still persist in Odoo v8. In this case it's a sale generated from POS.

Is there a refference to this bug to keep going at github?

What field is it getting this from in order to get rid of this in the database? There is no field "note" at account_invoice_line "note". Instead there is a "name" field. What if I clear this field?

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.