onchange on quantities does not take UoS into account

Bug #939565 reported by Numérigraphe
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP R&D Addons Team 2

Bug Description

In "stock" there are onchange events to copy the UoM quantity to the UoS quantity.
But they produce wrong results if the UoM and UoS are different than the ones entered in the products.
Example:
- enter a product with UoM=Kg, UoS=PCE, factor=2
- enter a stock move with qty=1000g, uos_qty=2 PCE
- then change qty=1200g => uos_qty is set to 2400 PCE instead of 2.4 PCE .
In addition to the UoM>UoS factor, the system must convert from the selected UoM and to the selected UoS.
Lionel Sausin.

description: updated
description: updated
Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Lionel Sausin,

As per your scenario, when create the stock move and set the product_qty 1000g. At that time it's also affect on "UoS" base on the 'uos_coeff' [which are set in the product.product]. Same As, If you change the "Uos". It's affect on product_qty. So All behaviour are depend on your configuration.

I have also realized that, In whole process 'UOM' never come into picture. This is not a burning Issue. But can not Ignore this.

So, before Implementing this, we have to more discussion on this issue. That's why I am setting this as an "Opinion" so we can get more suggestion on this.

@Experts: Would you please share your view on this.

Thanks and more suggestions are welcomed!

Changed in openobject-addons:
status: New → Opinion
Revision history for this message
Numérigraphe (numerigraphe) wrote :

> I have also realized that, In whole process 'UOM' never come into picture. This is not a burning Issue. But can not Ignore this.
Yes I realized that too when I read the code, and I change the bug description accordingly, so I think we agree.
I'm setting confirmed, others may set back to opinion if they find a flaw in our diagnostics.
Lionel.

Changed in openobject-addons:
status: Opinion → Confirmed
Changed in openobject-addons:
importance: Undecided → Wishlist
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Revision history for this message
Numérigraphe (numerigraphe) wrote :

Please let me emphasize that this bug will lead to incorrect invoices, and suggest you increase the Importance to something more than "wishlist".
Lionel.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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