Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
a1f9d51c
Commit
a1f9d51c
authored
17 years ago
by
Fabien Pinckaers
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix
bzr revid: fp@tinyerp.com-5eee10cf7227731fe49eecb0421ede189058ae4b
parent
c48e9957
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/addons/base/base.sql
+7
-0
7 additions, 0 deletions
bin/addons/base/base.sql
bin/addons/base/ir/ir_default.py
+4
-0
4 additions, 0 deletions
bin/addons/base/ir/ir_default.py
with
11 additions
and
0 deletions
bin/addons/base/base.sql
+
7
−
0
View file @
a1f9d51c
...
...
@@ -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
)
);
This diff is collapsed.
Click to expand it.
bin/addons/base/ir/ir_default.py
+
4
−
0
View file @
a1f9d51c
...
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment