[6.1] sale.order.line.note not insert with the right partner language

Bug #1070790 reported by Franco Tampieri
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

Situation:

Default language for system en_US
other language it_IT

- Partner with a language it_IT
- User with language en_US

When I create a sale order for the Partner, and insert a sale.order.line of a product that have a description_sale in it_IT language, the note is reported on the sale.order.line not in it_IT but in en_US (the default language of the user).

I've tested on:
server (4293)
addons (7042)
web (2472)

I've attach a patch that solve the problem.

Best regards

Franco Tampieri

Revision history for this message
Franco Tampieri (dr.dran) wrote :
Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Franco,

I have checked your scenario, but I think you might have a misunderstand something..

When you try to Insert sale order line of a product that have a description_sale in it_IT language. That's fine, But note is not in it_IT language. Because It's come from the description_sale at product.product.

Moreover, If you provide description_sale manually under the "Product form view at Description tab". and than try to Insert sale order line. would please try In this way.

Hope this will help for you.

Thanks!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Franco Tampieri (dr.dran) wrote :

Hi Amit,

I don't understand, but for example why in purchase order the note is populated with the correct description_purchase of the partner language and in the sale order not?

there is the line sample from the purchase.py of the purchase module:

line 758 -763
# - determine name and notes based on product in partner lang.
lang = res_partner.browse(cr, uid, partner_id).lang
context_partner = {'lang': lang, 'partner_id': partner_id}
product = product_product.browse(cr, uid, product_id, context=context_partner)
res['value'].update({'name': product.partner_ref, 'notes': notes or product.description_purchase})

Best Regards

Franco

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

Hello Franco,

First of all, Sorry for the Inconvenience.

Yes, you are right. "sale.order.line.note" should come with the partner language.

Thanks!

Changed in openobject-addons:
status: Incomplete → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Could somebody confirm if it was fixed already or still waiting a fix?

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

I can confirm that it's fixed on the v7.0

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.