Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Context Methods
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
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
XCG
Odoo modules
Context Methods
Commits
a89da06756f3
Commit
a89da06756f3
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
flake8
parent
10d653b7eb8b
No related branches found
No related tags found
1 merge request
!6
[13.0] 1.0.1
Pipeline
#40297
passed
2 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
__manifest__.py
+1
-1
1 addition, 1 deletion
__manifest__.py
hooks.py
+3
-3
3 additions, 3 deletions
hooks.py
with
9 additions
and
4 deletions
NEWS.rst
+
5
−
0
View file @
a89da067
Changelog
Changelog
=========
=========
1.0.1
-----
flake8 fix.
1.0
1.0
---
---
...
...
This diff is collapsed.
Click to expand it.
__manifest__.py
+
1
−
1
View file @
a89da067
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
"
name
"
:
"
Base Context
"
,
"
name
"
:
"
Base Context
"
,
"
license
"
:
"
AGPL-3
"
,
"
license
"
:
"
AGPL-3
"
,
"
summary
"
:
"
Provide context method on models
"
,
"
summary
"
:
"
Provide context method on models
"
,
"
version
"
:
"
13.0.1.0
"
,
"
version
"
:
"
13.0.1.0
.1
"
,
"
category
"
:
"
Technical
"
,
"
category
"
:
"
Technical
"
,
"
author
"
:
"
XCG Consulting
"
,
"
author
"
:
"
XCG Consulting
"
,
"
website
"
:
"
https://xcg-consulting.fr/
"
,
"
website
"
:
"
https://xcg-consulting.fr/
"
,
...
...
This diff is collapsed.
Click to expand it.
hooks.py
+
3
−
3
View file @
a89da067
...
@@ -43,9 +43,9 @@
...
@@ -43,9 +43,9 @@
}
}
def
with_lang
(
self
:
Model
)
->
Model
:
def
with_lang
(
self
:
Model
)
->
Model
:
"""
Add lang info from the current user regardless of what the context
may
"""
Add lang info from the current user regardless of what the context
already contain. It so happens the context often has wrong lang
info by
may
already contain. It so happens the context often has wrong lang
default.
info by
default.
Useful when running automated tasks.
Useful when running automated tasks.
...
...
This diff is collapsed.
Click to expand it.
Vincent Hatakeyama
@vincent.hatakeyama
mentioned in commit
9d18dd1ce68e
·
2 years ago
mentioned in commit
9d18dd1ce68e
mentioned in commit 9d18dd1ce68ea6d4305ddfc2a5808f47d118ddc6
Toggle commit list
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