From 21749941eef20aeaf0173619ea7bf48c6957feb4 Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Mon, 30 Nov 2009 17:01:31 +0100 Subject: [PATCH] [FIX] fields: '_fnct_write' should pass context object to the 'write' method lp bug: https://launchpad.net/bugs/489355 fixed bzr revid: olt@tinyerp.com-20091130160131-bv9g7y9vf0gdpa53 --- bin/osv/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/fields.py b/bin/osv/fields.py index dc5e2a9fd4a..92c9c634365 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -721,7 +721,7 @@ class related(function): t_id=t_data['id'] t_data = t_data[self.arg[i]] if t_id: - obj.pool.get(field_detail['object']).write(cr,uid,[t_id],{args[-1]:values}) + obj.pool.get(field_detail['object']).write(cr,uid,[t_id],{args[-1]:values}, context=context) def _fnct_read(self, obj, cr, uid, ids, field_name, args, context=None): self._field_get2(cr, uid, obj, context)