تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
1005 أدوات العرض

How can I create purchase orders of backdate


الصورة الرمزية
إهمال
الكاتب

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

أفضل إجابة

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

Thanks

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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.


الصورة الرمزية
إهمال
أفضل إجابة

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

    })




💥

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 25
2245
3
ديسمبر 24
6593
1
يوليو 24
3196
1
يونيو 24
2214
2
يونيو 24
3099