Recently installed merp_base on V12, after completing installation and entering configuration the following is observed.
Sales and purchase tax preferences removed
Purchase order approval requirement removed
Default currency and chart of accounts removed
When restoring preferences I'm presented with the below error; any suggestions to improve? When rolling back install I can restore preferences without issue.
Error:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 1039, in get
value = self._data[key][field][record._ids[0]]
KeyError: <odoo.models.NewId object at 0x06BC1630>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 984, in get
value = record.env.cache.get(record, self)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 1041, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('res.config.settings(<odoo.models.NewId object at 0x06BC1630>,).merp_version', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 698, in dispatch
result = self._call_function(self.params)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 346, in _call_function
return checked_call(self.db, *args, *kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 941, in call
return self.method(*args, *kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 519, in response_wrap
response = f(args, kw)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5524, in onchange
snapshot1 = Snapshot(record, nametree)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5414, in init
if subnames else record[name]
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5123, in getitem
return self._fields[key].get(self, type(self))
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 990, in get
self.determine_draft_value(record)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1112, in determine_draft_value
self._compute_value(record)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1046, in _compute_value
getattr(records, self.compute)()
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\merp_base\models\res_config.py", line 59, in _compute_merp_version
version = manifest['version'].split('.')
TypeError: 'NoneType' object is not subscriptable
Recently installed merp_base on V12, after completing installation and entering configuration the following is observed.
Sales and purchase tax preferences removed Purchase order approval requirement removed Default currency and chart of accounts removed
When restoring preferences I'm presented with the below error; any suggestions to improve? When rolling back install I can restore preferences without issue.
Error: Odoo Server Error
Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 1039, in get value = self._data[key][field][record._ids[0]] KeyError: <odoo.models.NewId object at 0x06BC1630>
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 984, in get value = record.env.cache.get(record, self) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 1041, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('res.config.settings(<odoo.models.NewId object at 0x06BC1630>,).merp_version', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise raise value File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 698, in dispatch result = self._call_function(self.params) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 346, in _call_function return checked_call(self.db, *args, *kwargs) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper return f(dbname, args, kwargs) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 339, in checked_call result = self.endpoint(*a, kw) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 941, in call return self.method(*args, *kw) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 519, in response_wrap response = f(args, kw) File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw return self._call_kw(model, method, args, kwargs) File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 749, in call_kw return _call_kw_multi(method, model, args, kwargs) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 736, in _call_kw_multi result = method(recs, *args, **kwargs) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5524, in onchange snapshot1 = Snapshot(record, nametree) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5414, in init if subnames else record[name] File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5123, in getitem return self._fields[key].get(self, type(self)) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 990, in get self.determine_draft_value(record) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1112, in determine_draft_value self._compute_value(record) File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1046, in _compute_value getattr(records, self.compute)() File "c:\program files (x86)\odoo 12.0\server\odoo\addons\merp_base\models\res_config.py", line 59, in _compute_merp_version version = manifest['version'].split('.') TypeError: 'NoneType' object is not subscriptable