Products by location: put the domain on the action

This commit is contained in:
Bertrand Chenal committed 2009-04-08 12:16:29 +02:00
1 parent 29229ebb47
commit 83591e8921
2 files changed
+1 -5

No files matched your search

-5
View File
@@ -304,11 +304,6 @@ class OpenProduct(Wizard):
context['stock_date_end'] = datetime.date.max
res['context'] = str(context)
domain = eval(res['domain'])
product_ids = product_obj.search(
cursor, user, domain + [('quantity', '!=', 0.0)], context=context)
res['domain'] = str(domain + [('id', 'in', product_ids)])
return res
OpenProduct()
+1
View File
@@ -88,6 +88,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="res_model">product.product</field>
<field name="view_type">form</field>
<field name="window_name" eval="False"/>
<field name="domain">[('quantity', '!=', 0.0)]</field>
</record>
<record model="ir.action.wizard" id="wizard_product_open">
<field name="name">Product Quantities</field>