[MERGE] from trunk
authorChristophe Matthieu <chm@openerp.com>
Wed, 19 Dec 2012 14:40:55 +0000 (15:40 +0100)
committerChristophe Matthieu <chm@openerp.com>
Wed, 19 Dec 2012 14:40:55 +0000 (15:40 +0100)
bzr revid: chm@openerp.com-20121219144055-up3kamlh08nbk1ju

openerp/addons/base/res/res_users.py
openerp/report/render/rml2pdf/trml2pdf.py

index a2301ce..df83f0a 100644 (file)
@@ -299,8 +299,7 @@ class res_users(osv.osv):
             for id in ids:
                 if id in self._uid_cache[db]:
                     del self._uid_cache[db][id]
-        self.context_get.clear_cache(self, cr)
-
+        self.context_get.clear_cache(self)
         return res
 
     def unlink(self, cr, uid, ids, context=None):
index 81faef8..57699f4 100644 (file)
@@ -493,7 +493,7 @@ class _rml_canvas(object):
             img = ImageReader(s)
             (sx,sy) = img.getSize()
             _logger.debug("Image is %dx%d", sx, sy)
-            args = { 'x': 0.0, 'y': 0.0 }
+            args = { 'x': 0.0, 'y': 0.0, 'mask': 'auto'}
             for tag in ('width','height','x','y'):
                 if node.get(tag):
                     args[tag] = utils.unit_get(node.get(tag))