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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
a6fe8eb7
Commit
a6fe8eb7
authored
Mar 26, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
project: fix pylint messages
parent
5439dc02
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
44 additions
and
81 deletions
+44
-81
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Base_generateDateMilestoneDomain.py
...al_skins/erp5_project/Base_generateDateMilestoneDomain.py
+4
-4
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_generateTasks.py
...em/portal_skins/erp5_project/ProjectLine_generateTasks.py
+10
-10
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_generateTasks.xml
...m/portal_skins/erp5_project/ProjectLine_generateTasks.xml
+1
-1
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_getRequirimentStringList.py
...kins/erp5_project/ProjectLine_getRequirimentStringList.py
+2
-2
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_getWorkList.py
...Item/portal_skins/erp5_project/ProjectLine_getWorkList.py
+0
-1
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectModule_generateMilestoneReport.py
...ins/erp5_project/ProjectModule_generateMilestoneReport.py
+3
-3
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_generateMonthDomain.py
.../portal_skins/erp5_project/Project_generateMonthDomain.py
+6
-19
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_generateProjectDomain.py
...ortal_skins/erp5_project/Project_generateProjectDomain.py
+0
-2
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_generateTaskDomain.py
...m/portal_skins/erp5_project/Project_generateTaskDomain.py
+1
-1
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_getMonthlyReportSectionList.py
...skins/erp5_project/Project_getMonthlyReportSectionList.py
+0
-4
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_getRelatedBugList.xml
...m/portal_skins/erp5_project/Project_getRelatedBugList.xml
+1
-1
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_getReportSectionList.py
...portal_skins/erp5_project/Project_getReportSectionList.py
+0
-2
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.py
.../portal_skins/erp5_project/Project_initializeFastInput.py
+3
-7
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_flatten_list.py
...tem/portal_skins/erp5_project/Requirement_flatten_list.py
+5
-5
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_generateReference.py
...ortal_skins/erp5_project/Requirement_generateReference.py
+2
-3
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_generateRequirements.py
...al_skins/erp5_project/Requirement_generateRequirements.py
+1
-1
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_generateRequirements.xml
...l_skins/erp5_project/Requirement_generateRequirements.xml
+1
-1
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskModule_generateDomain.py
...em/portal_skins/erp5_project/TaskModule_generateDomain.py
+0
-3
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_calculateDuplication.py
...em/portal_skins/erp5_project/Task_calculateDuplication.py
+0
-3
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project_trade/Delivery_updateTaskFastInputDialog.py
.../erp5_project_trade/Delivery_updateTaskFastInputDialog.py
+1
-2
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/project_workflow/scripts/checkConsistency.py
...tal_workflow/project_workflow/scripts/checkConsistency.py
+1
-2
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/checkConsistency.py
...workflow/task_report_workflow/scripts/checkConsistency.py
+1
-2
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/checkConsistency.py
...portal_workflow/task_workflow/scripts/checkConsistency.py
+1
-2
No files found.
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Base_generateDateMilestoneDomain.py
View file @
a6fe8eb7
...
@@ -4,12 +4,12 @@ now = DateTime()
...
@@ -4,12 +4,12 @@ now = DateTime()
domain_list
=
[]
domain_list
=
[]
parents_criterion_dict
=
{}
parents_criterion_dict
=
{}
def
appendNewTempDomain
(
id
,
criterion_dict
=
None
,
**
kw
):
def
appendNewTempDomain
(
id
_
,
criterion_dict
=
None
,
**
kw
):
if
criterion_dict
is
None
:
if
criterion_dict
is
None
:
criterion_dict
=
parents_criterion_dict
criterion_dict
=
parents_criterion_dict
else
:
else
:
criterion_dict
.
update
(
parents_criterion_dict
)
criterion_dict
.
update
(
parents_criterion_dict
)
domain
=
parent
.
generateTempDomain
(
id
=
id
)
domain
=
parent
.
generateTempDomain
(
id
=
id
_
)
domain
.
edit
(
domain
.
edit
(
criterion_property_list
=
criterion_dict
.
keys
(),
criterion_property_list
=
criterion_dict
.
keys
(),
**
kw
**
kw
...
@@ -19,12 +19,12 @@ def appendNewTempDomain(id, criterion_dict=None, **kw):
...
@@ -19,12 +19,12 @@ def appendNewTempDomain(id, criterion_dict=None, **kw):
domain_list
.
append
(
domain
)
domain_list
.
append
(
domain
)
appendNewTempDomain
(
appendNewTempDomain
(
id
=
"future"
,
id
_
=
"future"
,
title
=
"Future"
,
title
=
"Future"
,
criterion_dict
=
{
criterion_property
:
{
"min"
:
now
,
"max"
:
DateTime
(
'9999/01/01 00:00'
)}},
criterion_dict
=
{
criterion_property
:
{
"min"
:
now
,
"max"
:
DateTime
(
'9999/01/01 00:00'
)}},
)
)
appendNewTempDomain
(
appendNewTempDomain
(
id
=
"past"
,
id
_
=
"past"
,
title
=
"Past"
,
title
=
"Past"
,
criterion_dict
=
{
criterion_property
:
{
"min"
:
DateTime
(
'1000/01/01 00:00'
),
"max"
:
now
}},
criterion_dict
=
{
criterion_property
:
{
"min"
:
DateTime
(
'1000/01/01 00:00'
),
"max"
:
now
}},
)
)
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_generateTasks.py
View file @
a6fe8eb7
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_generateTasks.xml
View file @
a6fe8eb7
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
source, source_section, destination_decision, destination_section, destination, task_line_quantity_unit, resource, listbox=
[],
**kw
</string>
</value>
<value>
<string>
source, source_section, destination_decision, destination_section, destination, task_line_quantity_unit, resource, listbox=
(),
**kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_getRequirimentStringList.py
View file @
a6fe8eb7
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_getWorkList.py
View file @
a6fe8eb7
...
@@ -12,7 +12,6 @@ def getWorkLineList(line,worker):
...
@@ -12,7 +12,6 @@ def getWorkLineList(line,worker):
result
.
append
(
line
)
result
.
append
(
line
)
return
result
return
result
listbox
=
[]
worker_list
=
context
.
getParentValue
().
getSourceValueList
()
worker_list
=
context
.
getParentValue
().
getSourceValueList
()
work_line_list
=
[]
work_line_list
=
[]
for
worker
in
worker_list
:
for
worker
in
worker_list
:
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectModule_generateMilestoneReport.py
View file @
a6fe8eb7
...
@@ -27,9 +27,9 @@ portal_catalog = portal.portal_catalog
...
@@ -27,9 +27,9 @@ portal_catalog = portal.portal_catalog
# hasColumn exists, it is new and is not installed yet everywhere
# hasColumn exists, it is new and is not installed yet everywhere
hasColumn
=
getattr
(
portal_catalog
,
'hasColumn'
,
None
)
hasColumn
=
getattr
(
portal_catalog
,
'hasColumn'
,
None
)
if
hasColumn
is
not
None
:
if
hasColumn
is
not
None
:
for
prop
erty
in
[
'outcome_description'
]:
for
prop
in
[
'outcome_description'
]:
if
hasColumn
(
prop
erty
):
if
hasColumn
(
prop
):
select_dict
[
prop
erty
]
=
None
select_dict
[
prop
]
=
None
if
len
(
project_uid_list
):
if
len
(
project_uid_list
):
milestone_list
=
[
x
for
x
in
portal
.
portal_catalog
(
parent_uid
=
project_uid_list
,
milestone_list
=
[
x
for
x
in
portal
.
portal_catalog
(
parent_uid
=
project_uid_list
,
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_generateMonthDomain.py
View file @
a6fe8eb7
...
@@ -5,21 +5,15 @@ project_line_portal_type = 'Project Line'
...
@@ -5,21 +5,15 @@ project_line_portal_type = 'Project Line'
domain_list
=
[]
domain_list
=
[]
here
=
context
.
REQUEST
[
'here'
]
here
=
context
.
REQUEST
[
'here'
]
portal
=
context
.
getPortalObject
()
form_id
=
request
.
get
(
'form_id'
)
selection_name
=
request
.
get
(
'selection_name'
)
params
=
portal
.
portal_selections
.
getSelectionParamsFor
(
selection_name
,
request
)
object_path
=
request
.
get
(
'object_path'
)
object_path
=
request
.
get
(
'object_path'
)
if
object_path
is
None
:
if
object_path
is
None
:
object_path
=
context
.
REQUEST
.
get
(
'URL1'
).
split
(
'/'
)[
-
1
]
object_path
=
context
.
REQUEST
.
get
(
'URL1'
).
split
(
'/'
)[
-
1
]
search_path
=
'project_module/%s/%%'
%
object_path
category_list
=
[]
category_list
=
[]
if
depth
==
0
:
if
depth
==
0
:
# Get start date and stop date from document
# Get start date and stop date from document
from_date
=
request
.
get
(
'from_date'
)
from_date
=
request
.
get
(
'from_date'
)
at_date
=
request
.
get
(
'at_date'
)
at_date
=
request
.
get
(
'at_date'
)
current_month
=
None
# We must initialize from_date at the beginning of the month
# We must initialize from_date at the beginning of the month
current_date
=
from_date
current_date
=
from_date
is_total
=
here
.
is_total
is_total
=
here
.
is_total
...
@@ -56,10 +50,7 @@ if depth == 0:
...
@@ -56,10 +50,7 @@ if depth == 0:
#i += 1
#i += 1
else
:
else
:
object_dict
=
here
.
object_dict
string_index
=
getattr
(
parent
,
'string_index'
)
string_index
=
getattr
(
parent
,
'string_index'
)
object_sub_dict
=
object_dict
.
get
(
string_index
,
{})
object_url_dict
=
{}
project_to_display_dict
=
here
.
monthly_project_to_display_dict
.
get
(
string_index
,
{})
project_to_display_dict
=
here
.
monthly_project_to_display_dict
.
get
(
string_index
,
{})
if
depth
==
1
:
if
depth
==
1
:
category_list
=
[
here
.
project_dict
[
x
]
for
x
in
project_to_display_dict
.
keys
()
if
category_list
=
[
here
.
project_dict
[
x
]
for
x
in
project_to_display_dict
.
keys
()
if
...
@@ -70,10 +61,6 @@ else:
...
@@ -70,10 +61,6 @@ else:
# Very specific to the monthly report, if no data, we do not display the current tree part
# Very specific to the monthly report, if no data, we do not display the current tree part
# sor first, for performance, build a dict with all relative urls of project line that will
# sor first, for performance, build a dict with all relative urls of project line that will
# need to be displayed for this month
# need to be displayed for this month
object_dict
=
here
.
object_dict
object_sub_dict
=
object_dict
.
get
(
getattr
(
parent
,
'string_index'
),
{})
object_url_dict
=
{}
for
parent_category
in
parent_category_list
:
for
parent_category
in
parent_category_list
:
parent_category
=
'/'
.
join
(
parent_category
.
split
(
'/'
)[
1
:])
parent_category
=
'/'
.
join
(
parent_category
.
split
(
'/'
)[
1
:])
if
project_to_display_dict
.
has_key
(
parent_category
):
if
project_to_display_dict
.
has_key
(
parent_category
):
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_generateProjectDomain.py
View file @
a6fe8eb7
request
=
context
.
REQUEST
project_line_portal_type
=
'Project Line'
project_line_portal_type
=
'Project Line'
domain_list
=
[]
domain_list
=
[]
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_generateTaskDomain.py
View file @
a6fe8eb7
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_getMonthlyReportSectionList.py
View file @
a6fe8eb7
from
Products.ZSQLCatalog.SQLCatalog
import
Query
request
=
context
.
REQUEST
request
=
context
.
REQUEST
object_dict
=
{}
# it contains required temp object to display the listbox
object_dict
=
{}
# it contains required temp object to display the listbox
...
@@ -111,8 +110,6 @@ for task_line in result_list:
...
@@ -111,8 +110,6 @@ for task_line in result_list:
source_relative_url
=
source_dict
[
'relative_url'
]
source_relative_url
=
source_dict
[
'relative_url'
]
start_date_task
=
task_line
.
date
start_date_task
=
task_line
.
date
stop_date_task
=
task_line
.
mirror_date
stop_date_task
=
task_line
.
mirror_date
year_start_date
=
start_date_task
.
year
()
month_start_date
=
start_date_task
.
month
()
# create a list with people who works on the task
# create a list with people who works on the task
current_column
=
(
source_relative_url
,
source_title
)
current_column
=
(
source_relative_url
,
source_title
)
...
@@ -197,7 +194,6 @@ portal.portal_selections.setListboxDisplayMode(request, 'ReportTreeMode',
...
@@ -197,7 +194,6 @@ portal.portal_selections.setListboxDisplayMode(request, 'ReportTreeMode',
result
=
[]
result
=
[]
from
Products.ERP5Form.Report
import
ReportSection
from
Products.ERP5Form.Report
import
ReportSection
param_dict
=
{}
project_dict
=
{}
project_dict
=
{}
for
project_relative_url
in
project_relative_url_dict
.
keys
():
for
project_relative_url
in
project_relative_url_dict
.
keys
():
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_getRelatedBugList.xml
View file @
a6fe8eb7
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
selection=None, selection_report=None, portal_type=
[]
, **kw
</string>
</value>
<value>
<string>
selection=None, selection_report=None, portal_type=
()
, **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_getReportSectionList.py
View file @
a6fe8eb7
...
@@ -4,8 +4,6 @@ result = []
...
@@ -4,8 +4,6 @@ result = []
params
=
{}
params
=
{}
portal
=
context
.
portal_url
.
getPortalObject
()
for
project_line
in
[
x
.
getObject
()
for
x
in
context
.
searchFolder
(
sort_id
=
'int_index'
)]:
for
project_line
in
[
x
.
getObject
()
for
x
in
context
.
searchFolder
(
sort_id
=
'int_index'
)]:
result
.
append
(
result
.
append
(
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.py
View file @
a6fe8eb7
from
Products.ERP5Type.Document
import
newTempBase
from
Products.ERP5Type.Document
import
newTempBase
from
string
import
zfill
from
string
import
zfill
global
portal_object
,
new_id
,
l
portal_object
=
context
.
getPortalObject
()
portal_object
=
context
.
getPortalObject
()
if
lines_num
is
None
:
if
lines_num
is
None
:
...
@@ -13,9 +11,7 @@ l = []
...
@@ -13,9 +11,7 @@ l = []
# function to create a new fast input line
# function to create a new fast input line
def
createInputLine
():
def
createInputLine
(
new_id
):
global
portal_object
,
new_id
,
l
new_id
+=
1
int_len
=
3
int_len
=
3
o
=
newTempBase
(
portal_object
,
o
=
newTempBase
(
portal_object
,
str
(
new_id
),
str
(
new_id
),
...
@@ -24,8 +20,8 @@ def createInputLine():
...
@@ -24,8 +20,8 @@ def createInputLine():
l
.
append
(
o
)
l
.
append
(
o
)
# generate all lines for the fast input form
# generate all lines for the fast input form
for
x
in
range
(
lines_num
):
for
new_id
in
range
(
lines_num
):
createInputLine
()
createInputLine
(
new_id
+
1
)
# return the list of fast input lines
# return the list of fast input lines
return
l
return
l
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_flatten_list.py
View file @
a6fe8eb7
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_generateReference.py
View file @
a6fe8eb7
...
@@ -3,9 +3,8 @@ This script is called to generate references for all requirements
...
@@ -3,9 +3,8 @@ This script is called to generate references for all requirements
"""
"""
translateString
=
context
.
Base_translateString
translateString
=
context
.
Base_translateString
request
=
context
.
REQUEST
if
not
reference
:
current_type
=
context
.
getPortalType
()
reference
=
'R'
if
not
reference
:
reference
=
'R'
def
generateReference
(
prefix
,
order
,
portal_type
):
def
generateReference
(
prefix
,
order
,
portal_type
):
for
order_line
in
order
.
contentValues
(
portal_type
=
portal_type
,
checked_permission
=
'View'
,
sort_on
=
'int_index'
):
for
order_line
in
order
.
contentValues
(
portal_type
=
portal_type
,
checked_permission
=
'View'
,
sort_on
=
'int_index'
):
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_generateRequirements.py
View file @
a6fe8eb7
...
@@ -95,7 +95,7 @@ for key in clean_requirements_key_list:
...
@@ -95,7 +95,7 @@ for key in clean_requirements_key_list:
sub_requirement_int_index
=
0
sub_requirement_int_index
=
0
for
second_level
in
clean_requirements
[
key
]:
for
second_level
in
clean_requirements
[
key
]:
sub_requirement_int_index
+=
10
sub_requirement_int_index
+=
10
new_
2nd_requirement
=
new_
1st_requirement
.
newContent
(
portal_type
=
requirement_type
new_1st_requirement
.
newContent
(
portal_type
=
requirement_type
,
title
=
second_level
[
'title'
]
,
title
=
second_level
[
'title'
]
,
description
=
second_level
[
'description'
]
,
description
=
second_level
[
'description'
]
,
int_index
=
sub_requirement_int_index
,
int_index
=
sub_requirement_int_index
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Requirement_generateRequirements.xml
View file @
a6fe8eb7
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
listbox=
[]
, form_id=\'view\', **kw
</string>
</value>
<value>
<string>
listbox=
()
, form_id=\'view\', **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskModule_generateDomain.py
View file @
a6fe8eb7
request
=
context
.
REQUEST
domain_list
=
[]
if
depth
==
0
:
if
depth
==
0
:
module
=
context
.
task_module
module
=
context
.
task_module
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_calculateDuplication.py
View file @
a6fe8eb7
from
Products.ERP5Type.DateUtils
import
addToDate
from
Products.ERP5Type.DateUtils
import
addToDate
Base_translateString
=
context
.
Base_translateString
Base_translateString
=
context
.
Base_translateString
task_portal_type
=
'Task'
task_module
=
context
.
getDefaultModule
(
task_portal_type
)
def
validateDay
(
date
):
def
validateDay
(
date
):
if
(
periodicity_month_day_list
in
([],
None
,
())):
if
(
periodicity_month_day_list
in
([],
None
,
())):
...
@@ -30,7 +28,6 @@ def validateMonth(date):
...
@@ -30,7 +28,6 @@ def validateMonth(date):
def
getNextPeriodicalDate
(
current_date
):
def
getNextPeriodicalDate
(
current_date
):
next_start_date
=
current_date
next_start_date
=
current_date
previous_date
=
next_start_date
next_start_date
=
addToDate
(
next_start_date
,
day
=
1
)
next_start_date
=
addToDate
(
next_start_date
,
day
=
1
)
while
1
:
while
1
:
if
(
validateDay
(
next_start_date
))
and
\
if
(
validateDay
(
next_start_date
))
and
\
...
...
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project_trade/Delivery_updateTaskFastInputDialog.py
View file @
a6fe8eb7
...
@@ -35,7 +35,6 @@ project_search_dict = {}
...
@@ -35,7 +35,6 @@ project_search_dict = {}
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
for
line
in
line_list
:
for
line
in
line_list
:
line_dict
=
{}
line_dict
=
{}
line_id
=
"%s"
%
line
.
getUid
()
#line_dict['listbox_key'] = "%s" % line_id
#line_dict['listbox_key'] = "%s" % line_id
key
=
zfill
(
i
,
3
)
key
=
zfill
(
i
,
3
)
for
property_name
in
(
'title'
,
'quantity_unit_title'
,
'quantity'
,
for
property_name
in
(
'title'
,
'quantity_unit_title'
,
'quantity'
,
...
@@ -83,7 +82,7 @@ if len(validation_errors):
...
@@ -83,7 +82,7 @@ if len(validation_errors):
if
create
and
len
(
validation_errors
)
==
0
:
if
create
and
len
(
validation_errors
)
==
0
:
for
line
in
listbox
:
for
line
in
listbox
:
delivery_line
=
portal
.
restrictedTraverse
(
line
[
'relative_url'
])
delivery_line
=
portal
.
restrictedTraverse
(
line
[
'relative_url'
])
task
=
portal
.
task_module
.
newContent
(
portal
.
task_module
.
newContent
(
title
=
delivery_line
.
getTitle
(),
title
=
delivery_line
.
getTitle
(),
source_project
=
line
[
'source_project_relative_url'
],
source_project
=
line
[
'source_project_relative_url'
],
source
=
delivery_line
.
getSourceTrade
(),
source
=
delivery_line
.
getSourceTrade
(),
...
...
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/project_workflow/scripts/checkConsistency.py
View file @
a6fe8eb7
object
=
state_change
[
'object'
]
state_change
[
'object'
].
Base_checkConsistency
()
object
.
Base_checkConsistency
()
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/checkConsistency.py
View file @
a6fe8eb7
object
=
state_change
[
'object'
]
state_change
[
'object'
].
Base_checkConsistency
()
object
.
Base_checkConsistency
()
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/checkConsistency.py
View file @
a6fe8eb7
object
=
state_change
[
'object'
]
state_change
[
'object'
].
Base_checkConsistency
()
object
.
Base_checkConsistency
()
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