projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b74bbe
)
[IMP] mail: update: call to get_object updated
author
Thibault Delavallée
<tde@openerp.com>
Fri, 6 Dec 2013 10:02:30 +0000
(11:02 +0100)
committer
Thibault Delavallée
<tde@openerp.com>
Fri, 6 Dec 2013 10:02:30 +0000
(11:02 +0100)
bzr revid: tde@openerp.com-
20131206100230
-n4xxvskdbf3m0h1f
addons/mail/update.py
patch
|
blob
|
history
diff --git
a/addons/mail/update.py
b/addons/mail/update.py
index
3d07ce7
..
9428681
100644
(file)
--- a/
addons/mail/update.py
+++ b/
addons/mail/update.py
@@
-94,7
+94,7
@@
class publisher_warranty_contract(osv.osv):
# old behavior based on res.log; now on mail.message, that is not necessarily installed
IMD = self.pool['ir.model.data']
user = self.pool['res.users'].browse(cr, SUPERUSER_ID, SUPERUSER_ID)
- poster = IMD.get_object(cr, SUPERUSER_ID, 'mail', 'group_all_employees')
+ poster = IMD.get_object(cr, SUPERUSER_ID, 'mail', 'group_all_employees', context=context, check_existence_and_raise=False)
if not poster.exists():
if not user.exists():
return True