← Back to team overview

openerp-india team mailing list archive

[Bug 984680] Re: [trunk]/[6.1] Missing product reference in purchase module

 

A related bug which affects those same lines of code, but was not fixed
with that patch, is that the current value of the "name" field is not
used, causing the field to get re-generated every time an unrelated
field is changed (the purchase order line quantity for example).  Rather
than create a new bug report, it seemed related enough to piggy back on
this one, but I'd be happy to open a new one if instructed to.

To reproduce this bug:
Open up a purchase order in edit mode.
Click a purchase order line to edit it.
Modify the description field to something besides the default generated value.
Change the quantity value and press ENTER.
Notice that the description field is reset back to the generated value.

I've attached an updated patch which includes the changes from the
original one, plus a check for an already assigned name value.


** Patch added: "Patch including fix to original bug and fix for retaining current description value."
   https://bugs.launchpad.net/openobject-addons/+bug/984680/+attachment/3201230/+files/purchase_order_line_fix2.patch

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

Title:
  [trunk]/[6.1] Missing product reference in purchase module

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Purchase module must use name_get method instead of product.name else
  product reference/code is not added to the purchase order line.

  See patch attached.

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


References