Commit 0aa3590b authored by Jérome Perrin's avatar Jérome Perrin

Inventory API: omit_simulation can filter on stock.portal_type instead of catalog.portal_type

This way mysql will probably merge this with other constraints on
stock.portal_type when portal_type= is passed.
parent c528eb90
......@@ -101,7 +101,7 @@ WHERE\n
</dtml-if>\n
\n
<dtml-if omit_simulation>\n
AND catalog.portal_type != \'Simulation Movement\'\n
AND stock.portal_type != \'Simulation Movement\'\n
</dtml-if>\n
\n
<dtml-if omit_input>\n
......
......@@ -177,7 +177,7 @@ WHERE\n
</dtml-if>\n
\n
<dtml-if omit_simulation>\n
AND catalog.portal_type != \'Simulation Movement\'\n
AND <dtml-var stock_table_id>.portal_type != \'Simulation Movement\'\n
</dtml-if>\n
<dtml-if only_accountable>\n
AND <dtml-var stock_table_id>.is_accountable\n
......
......@@ -528,7 +528,7 @@ WHERE\n
</dtml-if>\n
\n
<dtml-if omit_simulation>\n
AND catalog.portal_type != \'Simulation Movement\'\n
AND stock.portal_type != \'Simulation Movement\'\n
</dtml-if>\n
<dtml-if only_accountable>\n
AND stock.is_accountable\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment