← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 837586] Re: date_expected not correctly updated

 

Hello Andreas,

I have thoroughly gone through your scenario.

As Expected Date is function field of stock.picking object hence is not allowed to control manually. 
so I am considering it as feature request.

Now when you change Field "Expected Date" to be editable. It allows to
change "Date" but only for those which are less than Expected
Date.(kindly check the attached video)

So, Currently Expected Date is set by stock move.

@Experts : Would you please share your views on this.

Thanks and more suggestion are welcomed.

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

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

-- 
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):
  Opinion

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