Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
expense
Commits
0a48f852ad92
Commit
ed042caf
authored
Mar 15, 2019
by
Nsukami Patrick
Browse files
Fix DeprecationWarning: [3.24] use entity_type(eid) instead
parent
a62b9c3859de
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_expense/sobjects.py
View file @
0a48f852
...
...
@@ -60,7 +60,7 @@ class OnExpenseAcceptedHook(hook.Hook):
def
__call__
(
self
):
cnx
=
self
.
_cw
etype
=
cnx
.
entity_
metas
(
self
.
eidfrom
)
[
'type'
]
etype
=
cnx
.
entity_
type
(
self
.
eidfrom
)
if
etype
!=
'Expense'
:
return
newstate
=
cnx
.
entity_from_eid
(
self
.
eidto
).
name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment