← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 680975] Re: In sale orders, changing the quantity changes the price

 

In the past (i.e. in a different ERP system) I resolved this by adding a
flag to record whether the price had been manually entered or not; if it
had been manually entered, then it was not changed by the system. If it
had not been manually entered, then the system would change the price on
change of the quantity, product id, customer, etc.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/680975

Title:
  In sale orders, changing the quantity changes the price

Status in OpenObject Addons Modules:
  Triaged
Status in OpenObject Addons 5.0 series:
  Triaged
Status in OpenObject Addons trunk series:
  Triaged

Bug description:
  Hi!

This has been tested in 5.0.14, because that's the version I'm currently working with.  But I've checked the code in the 6.0 trunk and it looks it hasn't changed, so it should be valid there too.

The problem is that the onchange of both product_id and product_uom_qty call product_id_change, and both re-get the price.  So, if the user sets the price first and the quantity after it, the price is overwriten.

This makes no sense.  They should either call different functions or take into account the "update_tax" field and do not update the price either.





References