Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1181 Prikazi

1-add date/time field  and name is  x_studio_old_order_date 

2-and read only add condition state == "sale"

3-add automation

  1. Model=sales order 
  2. trigger statin=sales order 
  3. apply on [('state', '=', 'sale')]

4- add python code 

if record.x_studio_old_order_date:

    record.write({

        'date_order':record.x_studio_old_order_date

    })




for inventory same step 

add date/time field on inventory receipt

invisible state == "draft"

required x_studio_old_order_date


readonly state=="done"


add an automation rule

and add python code 

if record.scheduled_date:

    record.write({

        'date_done':record.scheduled_date

    })




Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
apr. 25
7796
0
mar. 25
1333
1
mar. 25
30
3
sep. 24
5846
1
avg. 24
467