Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a90c09c1
Commit
a90c09c1
authored
Oct 18, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
May 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: use six.get_unbound_function.
parent
ec5b6e70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
...lateItem/portal_components/document.erp5.DummyMovement.py
+2
-2
No files found.
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
View file @
a90c09c1
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
erp5.component.document.Movement
import
Movement
from
erp5.component.document.Movement
import
Movement
from
six
import
get_unbound_function
class
DummyMovement
(
Movement
):
class
DummyMovement
(
Movement
):
"""Dummy Movement for testing purposes."""
"""Dummy Movement for testing purposes."""
...
@@ -72,7 +72,7 @@ class DummyMovement(Movement):
...
@@ -72,7 +72,7 @@ class DummyMovement(Movement):
parent
=
self
.
getParentValue
()
parent
=
self
.
getParentValue
()
if
isinstance
(
parent
,
DummyDelivery
):
if
isinstance
(
parent
,
DummyDelivery
):
self
=
parent
self
=
parent
return
DummyDelivery
.
getSimulationState
(
self
)
return
get_unbound_function
(
DummyDelivery
.
getSimulationState
)
(
self
)
def
getDeliveryValue
(
self
):
def
getDeliveryValue
(
self
):
"""
"""
...
...
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