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):
17
17
required = True ,
18
18
)
19
19
sync_job_id = fields .Many2one ("sync.job" )
20
+ sync_job_state = fields .Selection (
21
+ related = "sync_job_id.state" , string = "Sync Job State"
22
+ )
20
23
description = fields .Html (related = "sync_task_id.sync_order_description" )
21
24
line_ids = fields .One2many (
22
25
"sync.order.line" , "sync_order_id" , string = "Linked Records"
Original file line number Diff line number Diff line change 31
31
string =" Refresh"
32
32
name =" action_refresh"
33
33
type =" object"
34
- invisible =" state != 'open '"
34
+ invisible =" state == 'draft '"
35
35
/>
36
36
<button
37
37
string =" Cancel"
59
59
</group >
60
60
<group >
61
61
<field name =" sync_job_id" readonly =" 1" />
62
+ <field name =" sync_job_state" readonly =" 1" />
62
63
</group >
63
64
</group >
64
65
<notebook >
You can’t perform that action at this time.
0 commit comments