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
4c08e2a9
Commit
4c08e2a9
authored
6 years ago
by
Rémi Rahir
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] iap: install web_settings_dashboard along with iap
parent
1e21b79f
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/iap/__init__.py
+9
-0
9 additions, 0 deletions
addons/iap/__init__.py
addons/iap/__manifest__.py
+3
-0
3 additions, 0 deletions
addons/iap/__manifest__.py
with
12 additions
and
0 deletions
addons/iap/__init__.py
+
9
−
0
View file @
4c08e2a9
...
...
@@ -3,3 +3,12 @@
from
.
import
models
from
.models.iap
import
jsonrpc
,
charge
,
InsufficientCreditError
from
odoo.api
import
Environment
,
SUPERUSER_ID
def
_install_web_settings_dashboard
(
cr
,
registry
):
env
=
Environment
(
cr
,
SUPERUSER_ID
,
{})
env
[
'
ir.module.module
'
].
search
([
(
'
name
'
,
'
=
'
,
'
web_settings_dashboard
'
),
(
'
state
'
,
'
=
'
,
'
uninstalled
'
),
]).
button_install
()
This diff is collapsed.
Click to expand it.
addons/iap/__manifest__.py
+
3
−
0
View file @
4c08e2a9
...
...
@@ -20,4 +20,7 @@ This module provides standard tools (account model, context manager and helpers)
'
static/src/xml/iap_templates.xml
'
,
],
'
auto_install
'
:
True
,
# needed because dependencies can't be changed in a stable version
# TODO in master: add web_settings_dashboard to depends and remove this
'
post_init_hook
'
:
'
_install_web_settings_dashboard
'
,
}
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