Bugfix
bzr revid: fp@tinyerp.com-5eee10cf7227731fe49eecb0421ede189058ae4b
This commit is contained in:
parent
c48e995758
commit
a1f9d51cba
|
@ -334,3 +334,10 @@ CREATE TABLE ir_module_module_dependency (
|
|||
primary key(id)
|
||||
);
|
||||
|
||||
CREATE TABLE res_company (
|
||||
id serial NOT NULL,
|
||||
perm_id integer,
|
||||
name character varying(64) not null,
|
||||
parent_id integer references res_company on delete set null,
|
||||
primary key(id)
|
||||
);
|
||||
|
|
|
@ -38,6 +38,10 @@ class ir_default(osv.osv):
|
|||
'page': fields.char('View',size=64),
|
||||
'ref_table': fields.char('Table Ref.',size=64),
|
||||
'ref_id': fields.integer('ID Ref.',size=64),
|
||||
'company_id': fields.many2one('res.company','Company')
|
||||
}
|
||||
_defaults = {
|
||||
'company_id': lambda self, cr, uid, context: self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id,
|
||||
}
|
||||
ir_default()
|
||||
|
||||
|
|
Loading…
Reference in New Issue