Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In order to provide warehouse access to my portal users, I created a view of the product.product model:
<tree colors="red:virtual_available<0;blue:virtual_available>=0 and state in ('draft', 'end', 'obsolete');black:virtual_available>=0 and state not in ('draft', 'end', 'obsolete')" string="Products">
<field name="categ_id" invisible="1"/>
<field name="type" invisible="1"/>
<field name="variants" groups="product.group_product_variant"/>
<field name="uom_id" string="Unit of Measure" groups="product.group_uom"/>
<field name="price" invisible="not context.get('pricelist',False)"/>
<field name="standard_price" invisible="1"/>
<field name="company_id" groups="base.group_multi_company" invisible="1"/>
I then gave my portal users access to the required models. They can see all the approriate products. I now want to filter that view to remove products where qty_available is less that 1. I have put the following in the domain value for the filter on the window action:
I have the filter check box selected.
Why is there no filtering taking place on the model? Alternatively, can I not filter by a calculated field like qty_available?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/9/14, 2:54 PM|
|Seen: 1176 times|
|Last updated: 3/16/15, 8:10 AM|