Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
1020 Visualizzazioni

How can I create purchase orders of backdate


Avatar
Abbandona
Autore

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

Risposta migliore

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

Thanks

Avatar
Abbandona
Autore Risposta migliore

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.


Avatar
Abbandona
Risposta migliore

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

    })




💥

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mag 25
2294
3
dic 24
6761
1
lug 24
3265
1
giu 24
2257
2
giu 24
3156