Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odoo CE
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
Comunitats Energètiques
Odoo CE
Merge requests
!208
Landing connection beta release
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Landing connection beta release
hotfix/landings-connection
into
dev
Overview
1
Commits
1
Pipelines
1
Changes
2
Merged
Dani Quilez
requested to merge
hotfix/landings-connection
into
dev
1 year ago
Overview
1
Commits
1
Pipelines
1
Changes
2
Expand
Update post and put wp API headers passing content-type
adjust update payload compatible with last wp API version
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
961b44c8
1 commit,
1 year ago
2 files
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
energy_communities/models/landing_page.py
+
2
−
2
Options
@@ -142,8 +142,8 @@ class LandingPage(models.Model):
password
=
instance_company
.
wordpress_db_password
auth
=
Authenticate
(
baseurl
,
username
,
password
).
authenticate
()
token
=
"
Bearer %s
"
%
auth
[
"
token
"
]
landing_page_data
=
record
.
to_dict
()
[
"
landing
"
]
landing_page_data
[
"
status
"
]
=
new_status
landing_page_data
=
record
.
to_dict
()
landing_page_data
[
"
landing
"
][
"
status
"
]
=
new_status
LandingPageResource
(
token
,
baseurl
,
record
.
wp_landing_page_id
).
update
(
landing_page_data
)
Loading