Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1201 Näkymät

Hello,


I just installed Odoo Enterprise, I have created my old purchase orders from 2023, so I can close the accounting and stock of 2023.

The issue is that the effective date is today's date, I want them to enter the stock with the PO original date (2023)


How to do so ?


Thanks,

Avatar
Hylkää
Paras vastaus

Hi,


You can change the effective date using an Odoo server action. You also need to update the date fields of the related stock moves and stock move lines to match the effective date. Only then will the stock be reflected as processed on the backdated date(2023).


1. Settings->Technical->Actions->Server Actions

Type: Execute Code

Model: Transfer


2. Run the server action on the receipt corresponding to the purchase order by going to Purchase Order -> Receipt ->Action -> Stock Move in Backdate.




After running the server action, you will see that the effective date has been changed to the backdated value.




Stock Move



Stock Move Line


Hope it helps 


Avatar
Hylkää

Thank you for sharing! I have been searching for a solution for this, yours is simple and elegant, much appreciated!

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
toukok. 25
2509
3
jouluk. 24
7423
1
heinäk. 24
3681
1
kesäk. 24
2447
2
kesäk. 24
3460