File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ class SyncOrder(models.Model):
1717 required = True ,
1818 )
1919 sync_job_id = fields .Many2one ("sync.job" )
20+ sync_job_state = fields .Selection (
21+ related = "sync_job_id.state" , string = "Sync Job State"
22+ )
2023 description = fields .Html (related = "sync_task_id.sync_order_description" )
2124 line_ids = fields .One2many (
2225 "sync.order.line" , "sync_order_id" , string = "Linked Records"
Original file line number Diff line number Diff line change 3131 string =" Refresh"
3232 name =" action_refresh"
3333 type =" object"
34- invisible =" state != 'open '"
34+ invisible =" state == 'draft '"
3535 />
3636 <button
3737 string =" Cancel"
5959 </group >
6060 <group >
6161 <field name =" sync_job_id" readonly =" 1" />
62+ <field name =" sync_job_state" readonly =" 1" />
6263 </group >
6364 </group >
6465 <notebook >
You can’t perform that action at this time.
0 commit comments