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
Mikolaï Krol
erp5
Commits
ecceb142
Commit
ecceb142
authored
Sep 18, 2014
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only add user if login does not exist yet
parent
e2f70046
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
34 deletions
+38
-34
product/ERP5Configurator/Document/PersonConfiguratorItem.py
product/ERP5Configurator/Document/PersonConfiguratorItem.py
+38
-34
No files found.
product/ERP5Configurator/Document/PersonConfiguratorItem.py
View file @
ecceb142
...
@@ -61,7 +61,11 @@ class PersonConfiguratorItem(XMLObject, ConfiguratorItemMixin):
...
@@ -61,7 +61,11 @@ class PersonConfiguratorItem(XMLObject, ConfiguratorItemMixin):
,
PropertySheet
.
Login
)
,
PropertySheet
.
Login
)
def
_checkConsistency
(
self
,
fixit
=
False
,
filter
=
None
,
**
kw
):
def
_checkConsistency
(
self
,
fixit
=
False
,
filter
=
None
,
**
kw
):
error_list
=
[
"Person %s should be created"
%
self
.
getReference
(),]
error_list
=
[]
person
=
self
.
portal_catalog
.
getResultValue
(
reference
=
self
.
getReference
(),
portal_type
=
"Person"
)
if
person
is
None
:
error_list
.
append
(
"Person %s should be created"
%
self
.
getReference
())
if
fixit
:
if
fixit
:
person_module
=
self
.
getPortalObject
().
person_module
person_module
=
self
.
getPortalObject
().
person_module
person
=
person_module
.
newContent
(
portal_type
=
"Person"
)
person
=
person_module
.
newContent
(
portal_type
=
"Person"
)
...
...
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