← Back to team overview

openerp-india team mailing list archive

[Bug 1070790] Re: [6.1] sale.order.line.note not insert with the right partner language

 

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1070790

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

Status in OpenERP Addons (modules):
  Incomplete

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1070790/+subscriptions


References