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
f5f64e4d
Commit
f5f64e4d
authored
15 years ago
by
Naresh Choksy
Browse files
Options
Downloads
Patches
Plain Diff
[IMP]:installation done wizard
bzr revid: nch@tinyerp.com-20100427101724-z69y791xfbrfpl58
parent
abc88397
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addons/base_setup/__init__.py
+19
-3
19 additions, 3 deletions
addons/base_setup/__init__.py
addons/base_setup/base_setup_data.xml
+2
-1
2 additions, 1 deletion
addons/base_setup/base_setup_data.xml
with
21 additions
and
4 deletions
addons/base_setup/__init__.py
+
19
−
3
View file @
f5f64e4d
# -*- coding: utf-8 -*-
##############################################################################
#
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
...
...
@@ -15,7 +15,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
...
...
@@ -23,8 +23,9 @@ import installer
import
todo
import
wizard
from
osv
import
osv
from
osv
import
fields
,
osv
import
netsvc
from
tools.translate
import
_
class
base_setup_config_choice
(
osv
.
osv_memory
):
"""
...
...
@@ -32,6 +33,21 @@ class base_setup_config_choice(osv.osv_memory):
_name
=
'
base.setup.config
'
logger
=
netsvc
.
Logger
()
def
get_users
(
self
,
cr
,
uid
,
context
=
{}):
user_obj
=
self
.
pool
.
get
(
'
res.users
'
)
user_ids
=
user_obj
.
search
(
cr
,
uid
,
[])
users
=
user_obj
.
browse
(
cr
,
uid
,
user_ids
)
user_str
=
'
\n
'
.
join
(
map
(
lambda
x
:
'
- %s: %s / %s
'
%
(
x
.
name
,
x
.
login
,
x
.
password
),
users
))
return
_
(
'
The following users have been installed on your database:
\n
'
)
+
user_str
_columns
=
{
'
installed_users
'
:
fields
.
text
(
'
Installed Users
'
)
}
_defaults
=
{
'
installed_users
'
:
get_users
}
def
set_default_menu
(
self
,
cr
,
uid
,
menu
,
context
=
None
):
user
=
self
.
pool
.
get
(
'
res.users
'
)
\
.
browse
(
cr
,
uid
,
uid
,
context
=
context
)
...
...
This diff is collapsed.
Click to expand it.
addons/base_setup/base_setup_data.xml
+
2
−
1
View file @
f5f64e4d
...
...
@@ -13,8 +13,9 @@
<separator
colspan=
"4"
string=
"Installation Done"
/>
<label
align=
"0.0"
colspan=
"4"
string=
"Your new database is now fully installed."
/>
<field
name=
"installed_users"
nolabel=
"1"
colspan=
"4"
/>
<label
align=
"0.0"
colspan=
"4"
string=
"You can start configuring the system or connect directly to the database
using the default setup
."
/>
string=
"You can start configuring the system or connect directly to the database
as an administrator
."
/>
</group>
</group>
<separator
string=
""
colspan=
"4"
/>
...
...
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