← Back to team overview

openerp-india team mailing list archive

[Bug 1284214] [NEW] sale order line product_id_change wrong context

 

Public bug reported:

Hi,
Best regards,

Using addons trunk #9178 or 7.0 #9853 in method product_id_change in
sale.order.line the context variable is always create, you can see in
line 874 in 7.0 branch:

context = {'lang': lang, 'partner_id': partner_id}

with this, no method override can add a new key,  this needs to be
changed:

context.update({'lang': lang, 'partner_id': partner_id})

There is an other bug, in line 904 in map_tax call

result['tax_id'] = self.pool.get('account.fiscal.position').map_tax(cr,
uid, fpos, product_obj.taxes_id)

You should include context like that:

result['tax_id'] = self.pool.get('account.fiscal.position').map_tax(cr,
uid, fpos, product_obj.taxes_id, context)


Best regards,


Renato Lima - http://www.akretion.com

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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/1284214

Title:
  sale order line product_id_change wrong context

Status in OpenERP Addons (modules):
  New

Bug description:
  Hi,
  Best regards,

  Using addons trunk #9178 or 7.0 #9853 in method product_id_change in
  sale.order.line the context variable is always create, you can see in
  line 874 in 7.0 branch:

  context = {'lang': lang, 'partner_id': partner_id}

  with this, no method override can add a new key,  this needs to be
  changed:

  context.update({'lang': lang, 'partner_id': partner_id})

  There is an other bug, in line 904 in map_tax call

  result['tax_id'] =
  self.pool.get('account.fiscal.position').map_tax(cr, uid, fpos,
  product_obj.taxes_id)

  You should include context like that:

  result['tax_id'] =
  self.pool.get('account.fiscal.position').map_tax(cr, uid, fpos,
  product_obj.taxes_id, context)

  
  Best regards,

  
  Renato Lima - http://www.akretion.com

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


Follow ups

References