Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
974 Представления

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

    })




💥

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
мая 25
2229
3
дек. 24
6447
1
июл. 24
3156
1
июн. 24
2191
2
июн. 24
3063