[STOCK] 6.0 6.1 change move date don't update picking date

Bug #914670 reported by Sébastien BEAU - http://www.akretion.com
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Incomplete
Low
OpenERP Publisher's Warranty Team
OpenERP Community Backports (Addons)
Status tracked in 7.0
7.0
Confirmed
Medium
Unassigned

Bug Description

Hi
I found a bug in stock module.

Scenario:
Create a sale order
Validate it
Using the menu "Product Move => Delivery Product"
    open on line of the "stock move" generated by the sale order
    change the "planned date" of the "stock move"
    save
Now Open the picking related to this move
Check the max date

=> the "max date" was not updated.

Indeed the "max date" on the "stock.picking" have the option store=True

        'max_date': fields.function(get_min_max_date, fnct_inv=_set_maximum_date, multi="min_max_date",
                 store=True, type='datetime', string='Max. Expected Date', select=2),

It's the same for "min date"

        'min_date': fields.function(get_min_max_date, fnct_inv=_set_minimum_date, multi="min_max_date",
                 store=True, type='datetime', string='Expected Date', select=1, help="Expected date for the picking to be processed"),

You should add invalidation function for this two computed fields.

Best regards

Tags: maintenance

Related branches

summary: - change move date don't update picking date
+ [STOCK] 6.0 6.1 change move date don't update picking date
Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello Sebastien BEAU,
I have checked your issue at my side, you can't change expected date from "Stock. move"
because that date function is define in Stock.picking model , if you want to change, you can do it from stock picking
"Delivery Order" menu.
hope you can understand ,if I am wrong correct me
Thanks!

Changed in openobject-addons:
status: New → Incomplete
tags: added: maintenance
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Revision history for this message
Benoit Guillot - http://www.akretion.com (benoit-guillot-z) wrote :

Hello Ravish,

Sorry for the late reply.

The client needs to recompute the expected date of the incomming by changing the date of the move lines.
He needs to have the good expected date on each lines (the date can be different from a move line to an other) without spliting the picking.

The fields function max_date and min_date should be updated when the expected date of one of the move lines changes.

In our case we created a button to recompute the date expected of the move line if the supplier has a shortage on a product.
Then when the date expected of the move line is recompute due to that shortage, the date expected of the incomming should be recompute too. Currently the date of the incomming doesn't change.

Best regards,

Benoit

Changed in openobject-addons:
importance: Undecided → Low
Revision history for this message
Ronald Portier (Therp) (rportier1962) wrote :

The problem still exists in OpenERP 7.0, and is much annoying to one of our clients, where we installed the very useful module(s) from Akretion.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.