我正在尝试从以下部分为公司设置新的到期日期:
Saas - >客户 - >管理订阅(例如mycompany.com)
在添加“新到期日期”和“新到期原因”的表格中。表单提交后收到以下错误,
Exception during JSON request handling.
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 640, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 677, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 333, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 326, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 935, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 506, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 889, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/addons/web/controllers/main.py", line 877, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/saas_portal_sale/wizard/subscription_wizard.py", line 27, in apply_changes
super(SaasSubscriptionWizard, self).apply_changes()
File "/opt/odoo/addons/saas_portal/wizard/subscription_wizard.py", line 33, in apply_changes
self.client_id.change_subscription(expiration=self.expiration_new, reason=self.reason)
File "/opt/odoo/addons/saas_portal/models/saas_portal.py", line 629, in change_subscription
'value': expiration, 'hidden': True}]})
File "/opt/odoo/addons/saas_portal_backup/models/saas_portal.py", line 30, in upgrade
return super(SaasPortalClient, self).upgrade(payload=payload)
File "/opt/odoo/addons/saas_portal/models/saas_portal.py", line 545, in upgrade
res.append(config_obj.do_upgrade_database(payload.copy(), database_obj))
File "/opt/odoo/addons/saas_portal/wizard/config_wizard.py", line 86, in do_upgrade_database
raise Warning('Reason: %s \n Message: %s' % (res.reason, res.content))
Warning: Reason: INTERNAL SERVER ERROR
Message: 'decimal.precision'
注意:我可以看到数据库备份已正确创建,之后发生此错误。
我的服务器环境 Ubuntu 16.04 ,我正在使用 Odoo 10.0社区版