Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Tryton
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
Tryton
Commits
2ec548fc4fbb
Commit
2ec548fc4fbb
authored
8 years ago
by
Xavier Codinas
Browse files
Options
Downloads
Patches
Plain Diff
Add option to update modules list
issue2638 review26431002
parent
e11df51790ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+1
-0
1 addition, 0 deletions
CHANGELOG
trytond/admin.py
+7
-1
7 additions, 1 deletion
trytond/admin.py
trytond/commandline.py
+2
-0
2 additions, 0 deletions
trytond/commandline.py
with
10 additions
and
1 deletion
CHANGELOG
+
1
−
0
View file @
2ec548fc
...
...
@@ -2,6 +2,7 @@
* Remove string attribute from views
* Don't check write access on model for button with groups
* Limit readonly state for xxx2Many
* Add option to update modules list with trytond-admin
* Use home directory as default path for database and web root.
* Add count option on Action Window Domains
* Remove window_name on Action Window
...
...
This diff is collapsed.
Click to expand it.
trytond/admin.py
+
7
−
1
View file @
2ec548fc
...
...
@@ -45,7 +45,13 @@
lang
=
[
x
[
0
]
for
x
in
cursor
.
fetchall
()]
else
:
lang
=
None
Pool
(
db_name
).
init
(
update
=
options
.
update
,
lang
=
lang
)
pool
=
Pool
(
db_name
)
pool
.
init
(
update
=
options
.
update
,
lang
=
lang
)
if
options
.
update_modules_list
:
with
Transaction
().
start
(
db_name
,
0
)
as
transaction
:
Module
=
pool
.
get
(
'
ir.module
'
)
Module
.
update_list
()
for
db_name
in
options
.
database_names
:
if
init
[
db_name
]:
...
...
This diff is collapsed.
Click to expand it.
trytond/commandline.py
+
2
−
0
View file @
2ec548fc
...
...
@@ -46,6 +46,8 @@
metavar
=
'
MODULE
'
,
help
=
"
update a module
"
)
parser
.
add_argument
(
"
--all
"
,
dest
=
"
update
"
,
action
=
"
append_const
"
,
const
=
"
ir
"
,
help
=
"
update all installed modules
"
)
parser
.
add_argument
(
"
-m
"
,
"
--update-modules-list
"
,
action
=
"
store_true
"
,
dest
=
"
update_modules_list
"
,
help
=
"
Update list of tryton modules
"
)
parser
.
epilog
=
(
'
The first time a database is initialized admin
'
'
password is read from file defined by TRYTONPASSFILE
'
...
...
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