Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to recover from ProgrammingError: column res_users.alias_id does not exist

v9
By
Trevor Nemanic
on 12/29/15, 6:28 PM 895 views

In version 9, I recently added code for a model and received errors that I could not recover from, so I reverted the code back to a previous safe state. However, now I get the error that "ProgrammingError: column res_users.alias_id does not exist How do fix this error? My error trace is below

Odoo Server Error

Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 605, in _handle_exception
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 642, in dispatch
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 316, in _call_function
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\service\model.py", line 118, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 309, in checked_call
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 893, in __call__
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 471, in response_wrap
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\web\controllers\main.py", line 896, in call_button
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\web\controllers\main.py", line 884, in _call_kw
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\base\module\module.py", line 572, in button_immediate_upgrade
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\base\module\module.py", line 533, in _button_immediate_function
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\modules\registry.py", line 385, in new
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\modules\loading.py", line 338, in load_modules
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\modules\loading.py", line 237, in load_marked_modules
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\modules\loading.py", line 137, in load_module_graph
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\modules\module.py", line 293, in init_module_models
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\models.py", line 2637, in _auto_init
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\models.py", line 2393, in _set_default_value_on_column
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 342, in old_api
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 67, in <lambda>
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 236, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\mail\models\mail_message.py", line 38, in _get_default_from
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 807, in __get__
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 914, in determine_value
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 869, in compute_value
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 861, in _compute_value
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 564, in _compute_related
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 555, in traverse_related
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\models.py", line 5712, in __getitem__
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 807, in __get__
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\fields.py", line 905, in determine_value
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 236, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\models.py", line 3280, in _prefetch_field
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 236, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 562, in new_api
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\base\res\res_users.py", line 908, in read
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\base\res\res_users.py", line 307, in read
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\models.py", line 3175, in read
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 236, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\models.py", line 3210, in read
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 236, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\models.py", line 3348, in _read_from_database
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\sql_db.py", line 139, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\sql_db.py", line 215, in execute
ProgrammingError: column res_users.alias_id does not exist
LINE 1:  SELECT "res_users"."id" as "id","res_users"."alias_id" as "...
                                         ^

0
Trevor Nemanic
On 12/29/15, 6:55 PM

I solved the issue by uninstalling the module(which caused an error), cancelling the uninstall process, then pressing upgrade(no error). 

0
kirubanidhi
On 5/11/16, 8:41 AM

i resolved this issue. When error occuring that time press uninstalling your module then click cancalling process after completed then upgradee your current module

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/29/15, 6:28 PM
Seen: 895 times
Last updated: 5/11/16, 8:41 AM