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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
e4686fb6
Commit
e4686fb6
authored
Feb 21, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item: fix pylnt messages and enable coding style test
parent
12c3e24c
Pipeline
#8278
failed with stage
in 0 seconds
Changes
9
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
8 additions
and
13 deletions
+8
-13
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_calculateReferencePrefix.py
.../erp5_item_trade/DeliveryLine_calculateReferencePrefix.py
+0
-1
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_createItemList.py
...rtal_skins/erp5_item_trade/DeliveryLine_createItemList.py
+0
-3
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_getSelectableItemList.py
...ins/erp5_item_trade/DeliveryLine_getSelectableItemList.py
+0
-1
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_getTempItemList.py
...tal_skins/erp5_item_trade/DeliveryLine_getTempItemList.py
+5
-2
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_selectItemList.xml
...tal_skins/erp5_item_trade/DeliveryLine_selectItemList.xml
+1
-1
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_updateSelectItemListDialog.py
...rp5_item_trade/DeliveryLine_updateSelectItemListDialog.py
+0
-1
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_updateSelectItemListDialog.xml
...p5_item_trade/DeliveryLine_updateSelectItemListDialog.xml
+1
-1
bt5/erp5_item/WorkflowTemplateItem/portal_workflow/item_workflow/scripts/checkConsistency.py
...portal_workflow/item_workflow/scripts/checkConsistency.py
+1
-2
bt5/erp5_item/bt/skip_coding_style_test
bt5/erp5_item/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_calculateReferencePrefix.py
View file @
e4686fb6
from
Products.ERP5Type.Message
import
translateString
from
DateTime
import
DateTime
prefix_reference
=
DateTime
().
strftime
(
'1%d%m%y'
)
...
...
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_createItemList.py
View file @
e4686fb6
...
...
@@ -2,7 +2,6 @@ from Products.ERP5Type.Message import translateString
item_list
=
[]
request
=
context
.
REQUEST
total_quantity
=
0.0
item_portal_type
=
kw
.
get
(
'type'
)
...
...
@@ -19,8 +18,6 @@ if dialog.has_field('your_item_extra_property_list'):
item_property_dict
[
field_id
.
replace
(
'your_'
,
''
,
1
)]
=
\
request
.
get
(
field_id
)
movement_cell_list
=
context
.
getCellValueList
()
base_id
=
'movement'
for
line
in
kw
.
get
(
'listbox'
):
...
...
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_getSelectableItemList.py
View file @
e4686fb6
from
Products.ERP5Type.Document
import
newTempBase
from
Products.ERP5Type.Utils
import
cartesianProduct
portal
=
context
.
getPortalObject
()
...
...
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_getTempItemList.py
View file @
e4686fb6
from
Products.ERP5Type.Document
import
newTempDeliveryLine
portal
=
context
.
getPortalObject
()
try
:
...
...
@@ -9,7 +8,11 @@ except ValueError:
result
=
[]
for
i
in
range
(
count
):
obj
=
newTempDeliveryLine
(
portal
,
id
=
"tmp_item_%s"
%
i
,
uid
=
"new_item_%s"
%
i
)
obj
=
portal
.
newContent
(
portal_type
=
'Movement'
,
temp_object
=
True
,
id
=
"tmp_item_%s"
%
i
,
uid
=
"new_item_%s"
%
i
)
result
.
append
(
obj
)
return
result
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_selectItemList.xml
View file @
e4686fb6
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
form_id=\'view\', list_selection_name=\'\', uids=
[], listbox=None, listbox_uid=[]
, *args, **kw
</string>
</value>
<value>
<string>
form_id=\'view\', list_selection_name=\'\', uids=
(), listbox=None, listbox_uid=()
, *args, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_updateSelectItemListDialog.py
View file @
e4686fb6
request
=
context
.
REQUEST
portal
=
context
.
getPortalObject
()
# FIXME: this is a workaround, because if listbox is present in request.form,
# editable fields will be empty when re-displaying the dialog.
...
...
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_updateSelectItemListDialog.xml
View file @
e4686fb6
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
dialog_id, listbox=
[]
, **kw
</string>
</value>
<value>
<string>
dialog_id, listbox=
()
, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_item/WorkflowTemplateItem/portal_workflow/item_workflow/scripts/checkConsistency.py
View file @
e4686fb6
object
=
state_change
[
'object'
]
object
.
Base_checkConsistency
()
state_change
[
'object'
].
Base_checkConsistency
()
bt5/erp5_item/bt/skip_coding_style_test
deleted
100644 → 0
View file @
12c3e24c
1
\ No newline at end of file
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