Skip to content
Permalink
Browse files

[IMP] add ability to unlink databases from subscription more easily

  • Loading branch information...
nby-odoo authored and tbe-odoo committed Nov 12, 2018
1 parent 7ac7c97 commit 8e55dba8cc5e7f58b81e1657c0a44667695accaf
Showing with 3 additions and 0 deletions.
  1. +3 −0 addons/mail/models/update.py
@@ -116,6 +116,9 @@ def update_notification(self, cron_mode=True):
self.env['ir.config_parameter'].sudo().set_param('database.expiration_date', result['enterprise_info'].get('expiration_date'), ['base.group_user'])
self.env['ir.config_parameter'].sudo().set_param('database.expiration_reason', result['enterprise_info'].get('expiration_reason', 'trial'), ['base.group_system'])
self.env['ir.config_parameter'].sudo().set_param('database.enterprise_code', result['enterprise_info'].get('enterprise_code'), ['base.group_user'])
self.env['ir.config_parameter'].sudo().set_param('database.already_linked_subscription_url', result['enterprise_info'].get('database_already_linked_subscription_url'), ['base.group_system'])
self.env['ir.config_parameter'].sudo().set_param('database.already_linked_email', result['enterprise_info'].get('database_already_linked_email'), ['base.group_system'])
self.env['ir.config_parameter'].sudo().set_param('database.already_linked_send_mail_url', result['enterprise_info'].get('database_already_linked_send_mail_url'), ['base.group_system'])

except Exception:
if cron_mode:

0 comments on commit 8e55dba

Please sign in to comment.
You can’t perform that action at this time.