Created
October 20, 2014 01:58
-
-
Save weweliang/97b8043f284dc9ba6d33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenERP Server Error | |
Traceback (most recent call last): | |
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 500, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 517, in dispatch | |
result = self._call_function(**self.params) | |
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 283, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/service/model.py", line 113, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 280, in checked_call | |
return self.endpoint(*a, **kw) | |
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 733, in __call__ | |
return self.method(*args, **kw) | |
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 376, in response_wrap | |
response = f(*args, **kw) | |
File "/home/odoo/GreenOdoo/source/addons/web/controllers/main.py", line 948, in call_button | |
action = self._call_kw(model, method, args, {}) | |
File "/home/odoo/GreenOdoo/source/addons/web/controllers/main.py", line 936, in _call_kw | |
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper | |
return old_api(self, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/addons/base/module/wizard/base_module_upgrade.py", line 105, in upgrade_module | |
openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) | |
File "/home/odoo/GreenOdoo/source/openerp/modules/registry.py", line 324, in new | |
openerp.modules.load_modules(registry._db, force_demo, status, update_module) | |
File "/home/odoo/GreenOdoo/source/openerp/modules/loading.py", line 358, in load_modules | |
loaded_modules, update_module) | |
File "/home/odoo/GreenOdoo/source/openerp/modules/loading.py", line 263, in load_marked_modules | |
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) | |
File "/home/odoo/GreenOdoo/source/openerp/modules/loading.py", line 163, in load_module_graph | |
init_module_models(cr, package.name, models) | |
File "/home/odoo/GreenOdoo/source/openerp/modules/module.py", line 283, in init_module_models | |
result = obj._auto_init(cr, {'module': module_name}) | |
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper | |
return old_api(self, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 2643, in _auto_init | |
self._set_default_value_on_column(cr, k, context=context) | |
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper | |
return old_api(self, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 2416, in _set_default_value_on_column | |
default = default(self, cr, SUPERUSER_ID, context) | |
File "/home/odoo/GreenOdoo/source/addons/osbzr_wd/osbzr_wd.py", line 124, in <lambda> | |
'unit_id':lambda self, cr, uid, c: self.pool.get('res.users').browse(cr, uid, uid, c).unit_id.id, | |
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 751, in __get__ | |
self.determine_value(record) | |
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 855, in determine_value | |
self.compute_value(recs) | |
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 811, in compute_value | |
self._compute_value(records) | |
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 803, in _compute_value | |
self.compute(records) | |
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 466, in _compute_related | |
record[self.name] = other[self.related[-1]] | |
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 5435, in __getitem__ | |
return self._fields[key].__get__(self, type(self)) | |
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 751, in __get__ | |
self.determine_value(record) | |
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 846, in determine_value | |
record._prefetch_field(self) | |
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 235, in wrapper | |
return new_api(self, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 3159, in _prefetch_field | |
result = records.read(list(fnames), load='_classic_write') | |
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 235, in wrapper | |
return new_api(self, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 3104, in read | |
self._read_from_database(stored) | |
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 235, in wrapper | |
return new_api(self, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 3216, in _read_from_database | |
cr.execute(query, [tuple(sub_ids)] + rule_params) | |
File "/home/odoo/GreenOdoo/source/openerp/sql_db.py", line 158, in wrapper | |
return f(self, *args, **kwargs) | |
File "/home/odoo/GreenOdoo/source/openerp/sql_db.py", line 234, in execute | |
res = self._obj.execute(query, params) | |
ProgrammingError: column res_partner.unit_id does not exist | |
LINE 1: SELECT res_partner."unit_id",res_partner."id" FROM "res_par... | |
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment