← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 837586] Re: date_expected not correctly updated

 

Hello Andreas Brueckl,

I have checked the same issue and the field "min_date" of stock.picking(field name : Expected Date) is read only.
So, Would please let me know how you changed the value of field "min_date" according to your description "If I now change the 'min_date' of the picking to 9/12/2011".

I have attached the video for more reference.

Would please elaborate more regarding this issue.

Regarding your comment #1 bug is already posted lp:504643

Thanks.

** Attachment added: "expected_date.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/837586/+attachment/2335688/+files/expected_date.ogv

** Changed in: openobject-addons
       Status: New => Incomplete

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

Title:
  date_expected not correctly updated

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  In the object "stock.picking" the method get_min_max_date() is used to
  calculate the fields min_date and max_date. Therefore the field
  'date_expected' of all stock moves is selected.

  With the methods _set_minimum_date()  and _set_maximum_date() the
  expected dates of all stock moves should be updated so that the
  function get_min_max_date() reflects the desired date.

  BUT:  _set_minimum_date()  and _set_maximum_date() update the field
  'date' of the stock moves, whereas get_min_max_date() uses the field
  'date_expected' of the stock moves to calculate the dates!

  Example:

  There is a stock picking with 1 stock move ('date': 8/30/2011, 'date_expected': 9/10/2011).
  For the picking the following value is calculated: 'min_date': 9/10/2011

  If I now change the 'min_date' of the picking to 9/12/2011, then the
  'date' field of the stock move is set to 9/12/2011 also, but the
  'date_expected' is not touched.

  So after reloading the 'min_date' of the picking is set back to
  9/12/2011 (since it is calculated using the 'date_expected' field of
  the stock moves).

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


References