Skip to content

Commit

Permalink
[IMP] sync: display sync.job's state on sync order form
Browse files Browse the repository at this point in the history
  • Loading branch information
yelizariev committed Mar 3, 2025
1 parent 292fc99 commit 4591e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sync/models/sync_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class SyncOrder(models.Model):
required=True,
)
sync_job_id = fields.Many2one("sync.job")
sync_job_state = fields.Selection(
related="sync_job_id.state", string="Sync Job State"
)
description = fields.Html(related="sync_task_id.sync_order_description")
line_ids = fields.One2many(
"sync.order.line", "sync_order_id", string="Linked Records"
Expand Down
1 change: 1 addition & 0 deletions sync/views/sync_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
</group>
<group>
<field name="sync_job_id" readonly="1" />
<field name="sync_job_state" readonly="1" />
</group>
</group>
<notebook>
Expand Down

0 comments on commit 4591e6e

Please sign in to comment.