sale order line product_id_change wrong context

Bug #1284214 reported by Renato Lima - http://www.akretion.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 3

Bug Description

Hi,

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

Related branches

description: updated
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
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.