跳至内容
菜单
此问题已终结
1238 查看

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

    })




形象
丢弃
相关帖文 回复 查看 活动
1
4月 25
8011
0
3月 25
1411
1
3月 25
30
3
9月 24
6249
1
8月 24
467