onchange on quantities does not take UoS into account
Bug #939565 reported by
Numérigraphe
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 |
Changed in openobject-addons: | |
importance: | Undecided → Wishlist |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
To post a comment you must log in.
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!