You double check following field are already exist in base module table res_users
and res_partner
id, create_uid, create_date, write_date, write_uid
Reason behind this whenever you create new table you must inherit osv.osv
base class.
Example: I'm create project table and inherit from
osv.osv
so this table automatically create extra five column id, create_uid, create_date, write_date, write_uid plus you define project_name column. Total 6 six column created.
project.py
from openerp.osv import osv, fields
class My_project(osv.osv):
_name = 'my.project'
_description = 'My project'
_columns = {
'project_name':fields.char('Project Name',size=30),
}
Advantage
To know which user are create this table with timestamp (date time).
Auto Increment of ID field. so this column primary key,
Which user (write_uid) are update table row with also store with timestamp update into
write_date
column.So above reason help us to track time and userid.
If you set _log_access = False Attributes four fields will not be created in the SQL table: create_uid, create_date, write_uid, write_date.
project.py
from openerp.osv import osv, fields
class My_project(osv.osv):
_name = 'my.project'
_description = 'My project'
_log_access = False
_columns = {
'project_name':fields.char('Project Name',size=30),
}
Now you check only 2 column are create for this table.
Hope this help you!