sale order line product_id_change wrong context
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.
There is an other bug, in line 904 in map_tax call
result['tax_id'] = self.pool.
You should include context like that:
result['tax_id'] = self.pool.
Best regards,
Renato Lima - http://
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 28 lines (+4/-4)1 file modifiedsale/sale.py (+4/-4)
- Alexandre Fayolle - camptocamp (community): Needs Fixing (code review, no test)
- OpenERP Core Team: Pending requested
-
Diff: 28 lines (+4/-4)1 file modifiedsale/sale.py (+4/-4)
description: | updated |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |