Merge lp:~openerp-dev/openobject-server/trunk-bug-1088086-tpa into lp:openobject-server

Proposed by Turkesh Patel (openERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-server/trunk-bug-1088086-tpa
Merge into: lp:openobject-server
Diff against target: 12 lines (+1/-1)
1 file modified
openerp/addons/base/res/res_company.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-server/trunk-bug-1088086-tpa
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com (community) Approve
OpenERP Core Team Pending
Review via email: mp+139842@code.launchpad.net

Description of the change

[res.company] Pass context in _set_address_data method in call of write method of partner_obj

To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Hello, This Same Fix Was already merged in 7.0 as an OPW,

Though here in Trunk is still not landing,

It will be appreciated that this landed on Trunk

Best regards.

review: Approve

Unmerged revisions

4685. By Turkesh Patel (openERP)

[FIX] pass context in write method.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/addons/base/res/res_company.py'
2--- openerp/addons/base/res/res_company.py 2012-11-02 16:28:05 +0000
3+++ openerp/addons/base/res/res_company.py 2012-12-14 06:58:22 +0000
4@@ -97,7 +97,7 @@
5 address_data = part_obj.address_get(cr, uid, [company.partner_id.id], adr_pref=['default'])
6 address = address_data['default']
7 if address:
8- part_obj.write(cr, uid, [address], {name: value or False})
9+ part_obj.write(cr, uid, [address], {name: value or False}, context=context)
10 else:
11 part_obj.create(cr, uid, {name: value or False, 'parent_id': company.partner_id.id}, context=context)
12 return True