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
Léo-Paul Géneau
erp5
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
Show 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):
disable_cache
=
1
,
check_uid
=
0
,
disable_archive
=
disable_archive
,
immediate_reindex_archive
=
immediate_reindex_archive
)
method_id_list
=
[
'z0_uncatalog_stock'
]
script_id
=
'SQLCatalog_trimInventoryCacheOnCatalog'
if
getattr
(
portal
,
script_id
,
None
)
is
not
None
:
method_id_list
.
append
(
script_id
)
if
portal
.
portal_catalog
.
getSQLCatalog
(
sql_catalog_id
)
\
.
hasObject
(
'SQLCatalog_trimInventoryCacheOnCatalog'
)
:
method_id_list
.
append
(
'SQLCatalog_trimInventoryCacheOnCatalog'
)
# Delete existing stock records and old inventory_cache first.
portal
.
portal_catalog
.
catalogObjectList
(
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