[7.0]filter problem on the quantity product

Bug #1111473 reported by Guy BREVART
58
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 2

Bug Description

version : 7

with the view list of product if we try to filter all product by quantity, the result does not match the expected result.
(for exemple i filter the product with quantity = 0, the view display all products)

Tags: product
Guy BREVART (gbt-z)
summary: - filter problem on the quantity product
+ [7.0]filter problem on the quantity product
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Guy BREVART (gbt-z) wrote :

up!

Revision history for this message
Briehan Lombaard (briehan-lombaard) wrote :

Hi there,

I got it working by changing the field definitions for quantity available and quantity on hand in the product module. The values were not being stored in the database. Adding the stored=True parameter to the fields fixed the issue. The same would have to be done for the stock module to fix the issue in there as well.

Revision history for this message
Andrianto Kurniawan (andrix21) wrote :

@Briehan Lombaard
It was an BAD IDEA to store value of qty_available in product_product. Cause in openerp, table product_product used in multi-location and multi-company structure. So qty_available could not be stored, it depends on location value and company value in filter context.

Revision history for this message
Briehan Lombaard (briehan-lombaard) wrote :

Thanks Andrianto,

I thought there might be an issue with storing the value.

Amit Parik (amit-parik)
tags: added: product
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.