diff options
| author | Rémi Rahir <rar@odoo.com> | 2018-09-21 16:33:20 +0200 |
|---|---|---|
| committer | Rémi Rahir <rar@odoo.com> | 2018-09-25 22:28:43 +0200 |
| commit | 7838bde2a8a6980cf217ffe0e8838cb1e3f52c2d (patch) | |
| tree | 5d1b3a073347a00cac68b71f301b564c6f22211b /addons/iap/models/iap.py | |
| parent | 302bd149dc0c4aa902df12312f243e8ed93f9666 (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/models/iap.py')
| -rw-r--r-- | addons/iap/models/iap.py | 2 |
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 |
