← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 745795] Re: custom price in a sale.order.line gets lost

 

Hello Leonardo,

Yes you are right that when we apply custom price in sale line it does
not reflected with the changed quantity as it is consider the default
unit price due to the on change method.

The on change written for setting different values according to product
for fast encoding of sale lines. So if you want to overcome this problem
then you have to customize the unit price every time you wanted to
change the quantity.

Thanks.

-- 
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/745795

Title:
  custom price in a sale.order.line gets lost

Status in OpenERP Modules (addons):
  Invalid

Bug description:
  Observed in OE 6.0 and trunk rev 4613.

  To reproduce: create a new SO, new sale.order.line, enter a custom
  price. Then save and change the quantity of that product. Unit price
  is reset to the standard unit price (from the pricelist of whatever).

  Possible solution: the uom_qty field shouldn't have on_change
  (product_id_change). Or it should have its own onchange function that
  does the right thing.



References