Skip to content

Commit 4591e6e

Browse files
committed
[IMP] sync: display sync.job's state on sync order form
1 parent 292fc99 commit 4591e6e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sync/models/sync_order.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

sync/views/sync_order_views.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
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>

0 commit comments

Comments
 (0)