Stock Allow Past Date

by
Odoo
v 8.0 v 11.0 v 12.0 Third Party 231
Download for v 12.0 Deploy on Odoo.sh
Required Apps Inventory (stock)
Invoicing (account)
Technical Name stock_allow_past_date
LicenseLGPL-3
Websitehttp://www.vauxoo.com/
Also available in version v 11.0 v 8.0
You bought this module and need support? Click here!

Stock Allow Past Date

This module add the functionality to let to validate a picking with a past date and generate the move/quant with the past date instead the current date. It is considered as an stock module's bugfix. This module by it self do not change the way that picking is created, just add a workaround that can be manage with a key in context to let to create the picking in a past date.

This module is not for final user use, is more like a tool to be use for another modules (that take this module as dependency) to let then create picking and quants in past date. This is mostly used when creating historical data demo. And is not needed for regular creating picking purpose.

What do you need to create picking/quant in a past date:

  1. Create the demo data of the picking and move. You need to set the date field in both records. This field is the one re-used to set it in the quant.
  2. You need to call the picking methods with a prefix context activating the "Allow Past Date" mode. For this just add the with_context({'allow_past_date_quants': True}) . This is required to be use in the call of the action_confirm() , do_transfer() , action_done() picking methods and whatever other method that influence in the quant creation and validation.

TODO

  • Odoo picking Expected date ( date_expected ) set in help that this date is the one that is used when in the move. I check this an this is not happened, please review again and then report.
  • Check via unit test that the quant in_date/write date is the same.

Do you need help?

Let's offer you the best services!

Contact us by our official channels.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.