Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
980 Tampilan

How can I create purchase orders of backdate


Avatar
Buang
Penulis

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

Jawaban Terbai

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

Thanks

Avatar
Buang
Penulis Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mei 25
2231
3
Des 24
6481
1
Jul 24
3161
1
Jun 24
2192
2
Jun 24
3065