summaryrefslogtreecommitdiff
path: root/addons/iap
diff options
context:
space:
mode:
authorRémi Rahir <rar@odoo.com>2018-09-21 16:33:20 +0200
committerRémi Rahir <rar@odoo.com>2018-09-25 22:28:43 +0200
commit7838bde2a8a6980cf217ffe0e8838cb1e3f52c2d (patch)
tree5d1b3a073347a00cac68b71f301b564c6f22211b /addons/iap
parent302bd149dc0c4aa902df12312f243e8ed93f9666 (diff)
[IMP] partner_autocomplete: diverse improvements
- CRON changed to 60min - Fixed display/rendering issues with autocomplete widgets. - Moved 'Insufficient credit' banner - Editable endpoint for partner_autocomplete service
Diffstat (limited to 'addons/iap')
-rw-r--r--addons/iap/models/iap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/iap/models/iap.py b/addons/iap/models/iap.py
index 8d6b85e6d73..6bc661d3fdd 100644
--- a/addons/iap/models/iap.py
+++ b/addons/iap/models/iap.py
@@ -199,7 +199,7 @@ class IapAccount(models.Model):
}
credit = jsonrpc(url=url, params=params)
- account.write({'insufficient_credit': credit == 0})
+ account.sudo().write({'insufficient_credit': credit == 0})
return credit