← Back to team overview

openerp-india team mailing list archive

[Bug 939565] Re: onchange on quantities does not take UoS into account

 

** Description changed:

  In various modules (at least sale and stock) there are onchange events to copy the UoM quantity to the UoS quantity.
- But that's wrong if the UoM and UoS are different. Example: enter qty=10 Kg, uos_qty=4 PCE, then change qty=12 Kg => uos_qty is set to 12 PCE.
- The best guess the system could make would be to apply the UoM>UoS factor and then convert to the selected UoS.
+ 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 changed:

- In various modules (at least sale and stock) there are onchange events to copy the UoM quantity to the UoS quantity.
+ 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: 
+ 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.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/939565

Title:
  onchange on quantities does not take UoS into account

Status in OpenERP Addons (modules):
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/939565/+subscriptions


References