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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Emmerich
erp5
Commits
00054675
Commit
00054675
authored
Sep 30, 2022
by
Kazuhiko Shiozaki
Committed by
Arnaud Fontaine
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! py2/py3: 2to3 -f methodattrs
parent
f8e881dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
...lateItem/portal_components/document.erp5.DummyMovement.py
+1
-1
product/ERP5Type/dynamic/lazy_class.py
product/ERP5Type/dynamic/lazy_class.py
+1
-1
product/ERP5Type/patches/ObjectManager.py
product/ERP5Type/patches/ObjectManager.py
+1
-1
No files found.
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
View file @
00054675
...
@@ -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
.
__func__
(
self
)
return
DummyDelivery
.
getSimulationState
(
self
)
def
getDeliveryValue
(
self
):
def
getDeliveryValue
(
self
):
"""
"""
...
...
product/ERP5Type/dynamic/lazy_class.py
View file @
00054675
...
@@ -371,7 +371,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
...
@@ -371,7 +371,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
for
key
,
value
in
six
.
iteritems
(
attribute_dict
):
for
key
,
value
in
six
.
iteritems
(
attribute_dict
):
setattr
(
klass
,
key
,
value
)
setattr
(
klass
,
key
,
value
)
if
getattr
(
klass
.
__setstate__
,
'
im_func
'
,
None
)
is
\
if
getattr
(
klass
.
__setstate__
,
'
__func__
'
,
None
)
is
\
persistent_migration
.
__setstate__
:
persistent_migration
.
__setstate__
:
# optimization to reduce overhead of compatibility code
# optimization to reduce overhead of compatibility code
klass
.
__setstate__
=
persistent_migration
.
Base__setstate__
klass
.
__setstate__
=
persistent_migration
.
Base__setstate__
...
...
product/ERP5Type/patches/ObjectManager.py
View file @
00054675
...
@@ -32,7 +32,7 @@ def ObjectManager_importObjectFromFile(self, filepath, verify=1, set_owner=1, id
...
@@ -32,7 +32,7 @@ def ObjectManager_importObjectFromFile(self, filepath, verify=1, set_owner=1, id
if
verify
:
self
.
_verifyObjectPaste
(
ob
,
validate_src
=
0
)
if
verify
:
self
.
_verifyObjectPaste
(
ob
,
validate_src
=
0
)
if
id
is
None
:
if
id
is
None
:
id
=
ob
.
id
id
=
ob
.
id
if
hasattr
(
id
,
'
im_func
'
):
id
=
id
()
if
hasattr
(
id
,
'
__func__
'
):
id
=
id
()
self
.
_setObject
(
id
,
ob
,
set_owner
=
set_owner
,
suppress_events
=
suppress_events
)
self
.
_setObject
(
id
,
ob
,
set_owner
=
set_owner
,
suppress_events
=
suppress_events
)
...
...
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