Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
969 Widoki

How can I create purchase orders of backdate


Awatar
Odrzuć
Autor

Okay thanks, but then how do I keep a track of my past purchases

Najlepsza odpowiedź

Hi,
By default odoo is not supporting back dates for inventory operations.

Thanks

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Actually I am using odoo online but I have created a new field named x_old_date_order but it doesn't show in po form.


Awatar
Odrzuć
Najlepsza odpowiedź

first add the field name any name you want 


add automation action 
state =sales order 

3 add this code in python 

if record.x_studio_old_order_date_1:

    record.write({

        'date_order':record.x_studio_old_order_date_1

    })

 
for inventory same step 


for inventory same add field 

for invensible condition 
state == "draft"
for require 

for read only 


after than add automation action 

and add this code for python 

if record.scheduled_date:

    record.write({

        'date_done':record.scheduled_date

    })




💥

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 25
2228
3
gru 24
6441
1
lip 24
3152
1
cze 24
2189
2
cze 24
3057