Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Inventory (stock)
• Invoicing (account) • Discuss (mail) |
Lines of code | 197 |
Technical Name |
stock_allow_past_date |
License | LGPL-3 |
Website | http://www.vauxoo.com/ |
Versions | 11.0 8.0 12.0 |
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:
-
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. -
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 theaction_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