Commit ed042caf authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

Fix DeprecationWarning: [3.24] use entity_type(eid) instead

parent a62b9c3859de
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment