Skip to Content
Menu
This question has been flagged

How to set Scheduled Date in stock transfer as date for Journal Entries when validating transfer. By default it take the current date. Is there a workaround ?

Avatar
Discard
Best Answer

There is one trick hope it works for you. On button validate in transfer put the context like, context="{'force_period_date': scheduled_date}"

<button name="button_validate" context="{'force_period_date': scheduled_date}" attrs="{'invisible': ['|', ('state', 'in', ('waiting','confirmed')), ('show_validate', '=', False)]}" string="Validate" type="object" class="oe_highlight" groups="stock.group_stock_user"/>

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 21
4473
0
Feb 17
4739
2
Feb 24
2073
1
Apr 23
1331
2
Nov 22
2142