Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
1001 Lượt xem

How can I create purchase orders of backdate


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

    })




💥

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 25
2245
3
thg 12 24
6583
1
thg 7 24
3192
1
thg 6 24
2212
2
thg 6 24
3097