res.* osv.osv objects may be read() before being fully initialized
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
trying to implement
https:/
adding this code to account/account.py
class users(osv.osv):
_name = 'res.users'
_inherit = 'res.users'
_columns = {
}
users()
causes this error - the period_id s not added.
[2009-11-05 18:00:09,054] INFO:init:module account: creating or updating database tables
[2009-11-05 18:00:09,858] DEBUG:sql:bad query: SELECT "menu_id"
[2009-11-05 18:00:09,859] DEBUG:sql:[01]: column "period_id" does not exist
[2009-11-05 18:00:09,860] DEBUG:sql:[02]: LINE 1: SELECT "menu_id"
[2009-11-05 18:00:09,860] DEBUG:sql:[03]: ^
Traceback (most recent call last):
File "./openerp-
pooler.
File "/home/
addons.
File "/home/
r = load_module_
File "/home/
init_
File "/home/
result = obj._auto_init(cr, {'module': module_name})
File "/home/
default = self._defaults[
File "/home/
if user.company_id:
File "/home/
return self[name]
File "/home/
datas = self._table.
File "/home/
result = super(users, self).read(cr, uid, ids, fields, context, load)
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
self._order), sub_ids)
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
psycopg2.
LINE 1: SELECT "menu_id"
Changed in openobject-server: | |
assignee: | nobody → Ysa(Open ERP) (ysa-openerp) |
Changed in openobject-server: | |
status: | Invalid → Confirmed |
importance: | Undecided → Medium |
Changed in openobject-server: | |
assignee: | Ysa(Open ERP) (ysa-openerp) → OpenERP's Framework R&D (openerp-dev-framework) |
I can not help you with your bug, but please take care of the used English while developing new code as help='Jail for accounting date'
jail is a synoniem for prison.
Better to use something that is clear for all users like: help='Check and accept accounting period' Perhaps you have even a better description.
See discussion http:// openobject. com/wiki/ index.php/ English_ Improvements# A-Z