c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05371
[Bug 612759] Re: product - uom_id - must not be changed
** Also affects: openobject-addons/5.0
Importance: Undecided
Status: New
** Also affects: openobject-addons/trunk
Importance: Undecided
Status: New
** Changed in: openobject-addons/trunk
Status: New => Triaged
** Changed in: openobject-addons/5.0
Status: New => Triaged
--
product - uom_id - must not be changed
https://bugs.launchpad.net/bugs/612759
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: Triaged
Status in OpenObject Addons 5.0 series: Triaged
Status in OpenObject Addons trunk series: Triaged
Bug description:
there is no constraint that uom_id is not changed
if ever this happens
in stock/product.py
cr.execute(
'select sum(product_qty), product_id, product_uom '\
'from stock_move '\
'where location_id not in ('+location_ids_str+') '\
'and location_dest_id in ('+location_ids_str+') '\
'and product_id in ('+prod_ids_str+') '\
'and state in ('+states_str+') '+ (date_str and 'and '+date_str+' ' or '') +''\
'group by product_id,product_uom'
)
returns 2 or more lines form which only the first is processed giving a wrong result.
Or do I miss something ?