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
Paul Graydon
erp5
Commits
eb99bcf0
Commit
eb99bcf0
authored
Mar 03, 2022
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into zope4py2
parents
b8745df3
2b6afa33
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
165 additions
and
11 deletions
+165
-11
bt5/erp5_stock_cache/TestTemplateItem/portal_components/test.erp5.testInventoryWithStockCache.py
...ortal_components/test.erp5.testInventoryWithStockCache.py
+11
-0
bt5/erp5_stock_cache/TestTemplateItem/portal_components/test.erp5.testInventoryWithStockCache.xml
...rtal_components/test.erp5.testInventoryWithStockCache.xml
+106
-0
bt5/erp5_stock_cache/bt/template_test_id_list
bt5/erp5_stock_cache/bt/template_test_id_list
+1
-0
bt5/erp5_stock_cache/bt/test_dependency_list
bt5/erp5_stock_cache/bt/test_dependency_list
+13
-0
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Inventory.py
...TemplateItem/portal_components/document.erp5.Inventory.py
+6
-4
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Inventory.xml
...emplateItem/portal_components/document.erp5.Inventory.xml
+24
-3
product/ERP5/tests/testBusinessTemplateTwoFileExport.py
product/ERP5/tests/testBusinessTemplateTwoFileExport.py
+3
-3
product/ERP5Type/patches/DCWorkflowGraph.py
product/ERP5Type/patches/DCWorkflowGraph.py
+1
-1
No files found.
bt5/erp5_stock_cache/TestTemplateItem/portal_components/test.erp5.testInventoryWithStockCache.py
0 → 100644
View file @
eb99bcf0
import
unittest
from
erp5.component.test.testInventory
import
TestInventory
class
TestInventoryWithStockCache
(
TestInventory
):
"Test Inventory API with erp5_stock_cache"
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestInventoryWithStockCache
))
return
suite
bt5/erp5_stock_cache/TestTemplateItem/portal_components/test.erp5.testInventoryWithStockCache.xml
0 → 100644
View file @
eb99bcf0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testInventoryWithStockCache
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testInventoryWithStockCache
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_stock_cache/bt/template_test_id_list
0 → 100644
View file @
eb99bcf0
test.erp5.testInventoryWithStockCache
\ No newline at end of file
bt5/erp5_stock_cache/bt/test_dependency_list
0 → 100644
View file @
eb99bcf0
erp5_trade
erp5_full_text_myisam_catalog
erp5_core_proxy_field_legacy
erp5_apparel
erp5_project
erp5_configurator_standard_solver
erp5_simulation_test_trade_template
erp5_simulation_test
erp5_administration
erp5_mrp
erp5_accounting
erp5_dummy_movement
erp5_core_test
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Inventory.py
View file @
eb99bcf0
...
...
@@ -153,6 +153,8 @@ class Inventory(Delivery):
stock_append
=
stock_object_list
.
append
to_delete_stock_uid_set
=
set
()
to_delete_stock_uid_add
=
to_delete_stock_uid_set
.
add
to_delete_list
=
[]
to_delete_list_append
=
to_delete_list
.
append
for
inventory_calculation_dict
in
default_inventory_calculation_list
:
...
...
@@ -204,8 +206,6 @@ class Inventory(Delivery):
return
value
for
movement
in
method
():
# Make sure we remove any any value
to_delete_stock_uid_add
(
movement
.
getUid
())
if
movement
.
getResourceValue
()
is
not
None
and
\
movement
.
getInventoriatedQuantity
()
not
in
(
None
,
''
):
...
...
@@ -281,6 +281,10 @@ class Inventory(Delivery):
kwd
[
'category_list'
]
=
category_list
temp_delivery_line
.
edit
(
**
kwd
)
stock_append
(
temp_delivery_line
)
to_delete_list_append
(
temp_delivery_line
)
else
:
# Make sure we remove any any value
to_delete_stock_uid_add
(
movement
.
getUid
())
# Now create line to remove some subvariation text not present
# in new inventory
...
...
@@ -334,8 +338,6 @@ class Inventory(Delivery):
# Do deletion for everything first, even if there is no need to apply correction,
# in case we need to remove previous corrections
to_delete_stock_uid_add
(
self
.
getUid
())
to_delete_list
=
[]
to_delete_list_append
=
to_delete_list
.
append
for
uid
in
to_delete_stock_uid_set
:
temp_line
=
temp_constructor
(
self
,
inventory_id
)
temp_line
.
setUid
(
uid
)
...
...
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Inventory.xml
View file @
eb99bcf0
...
...
@@ -6,6 +6,12 @@
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
Inventory
</string>
</value>
...
...
@@ -53,13 +59,28 @@
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
I
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -72,7 +93,7 @@
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Q
=
</string>
</persistent>
</value>
</item>
</dictionary>
...
...
@@ -81,7 +102,7 @@
</dictionary>
</pickle>
</record>
<record
id=
"
3"
aka=
"AAAAAAAAAAM
="
>
<record
id=
"
4"
aka=
"AAAAAAAAAAQ
="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
...
...
product/ERP5/tests/testBusinessTemplateTwoFileExport.py
View file @
eb99bcf0
...
...
@@ -1081,9 +1081,9 @@ AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
"content_type"
:
"text/html"
,
"output_encoding"
:
"iso-8859-15"
}
skin_folder
.
_setObject
(
page_template_id
,
ZopePageTemplate
(
page_template_id
,
page_template_text
,
page_template_kw
[
"content_type"
]
,
# When not passed, default to iso-8859-15 on Zope2 and utf-8 on Zope4
output_encoding
=
page_template_kw
[
"output_encoding"
])
)
page_template_id
,
page_template_text
,
page_template_kw
[
"content_type"
]
))
skin_folder
.
_getOb
(
page_template_id
).
manage_changeProperties
(
output_encoding
=
page_template_kw
[
"output_encoding"
])
self
.
template
.
edit
(
template_skin_id_list
=
[
skin_folder_id
+
'/'
+
page_template_id
,])
...
...
product/ERP5Type/patches/DCWorkflowGraph.py
View file @
eb99bcf0
...
...
@@ -167,7 +167,7 @@ def getGraph(self, wf_id="", format="png", REQUEST=None):
'-Efontname=IPAexGothic'
,
'-Efontsize=10'
,
'-T%s'
%
format
),
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
result
=
p
.
communicate
(
po
t
)[
0
]
result
=
p
.
communicate
(
resul
t
)[
0
]
setHeader
(
'Content-Type'
,
'image/%s'
%
format
)
else
:
...
...
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