Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
7626ca30
Commit
7626ca30
authored
Jun 10, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! inventory: fix indexation when erp5_stock_cache is not installed
parent
205b9a0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5/Document/Inventory.py
product/ERP5/Document/Inventory.py
+3
-3
No files found.
product/ERP5/Document/Inventory.py
View file @
7626ca30
...
@@ -335,9 +335,9 @@ class Inventory(Delivery):
...
@@ -335,9 +335,9 @@ class Inventory(Delivery):
disable_cache
=
1
,
check_uid
=
0
,
disable_archive
=
disable_archive
,
disable_cache
=
1
,
check_uid
=
0
,
disable_archive
=
disable_archive
,
immediate_reindex_archive
=
immediate_reindex_archive
)
immediate_reindex_archive
=
immediate_reindex_archive
)
method_id_list
=
[
'z0_uncatalog_stock'
]
method_id_list
=
[
'z0_uncatalog_stock'
]
script_id
=
'SQLCatalog_trimInventoryCacheOnCatalog'
if
portal
.
portal_catalog
.
getSQLCatalog
(
sql_catalog_id
)
\
if
getattr
(
portal
,
script_id
,
None
)
is
not
None
:
.
hasObject
(
'SQLCatalog_trimInventoryCacheOnCatalog'
)
:
method_id_list
.
append
(
script_id
)
method_id_list
.
append
(
'SQLCatalog_trimInventoryCacheOnCatalog'
)
# Delete existing stock records and old inventory_cache first.
# Delete existing stock records and old inventory_cache first.
portal
.
portal_catalog
.
catalogObjectList
(
portal
.
portal_catalog
.
catalogObjectList
(
stock_object_list
[:],
method_id_list
=
method_id_list
,
**
kw
)
stock_object_list
[:],
method_id_list
=
method_id_list
,
**
kw
)
...
...
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