Files
Odoo-Modules/fusion_plating
gsinghpal 1c68fd0555 fix(jobs): auto-resync step.duration_actual on timelog edits
When a supervisor edits a timelog's date_started/date_finished (or
deletes a stale timelog), the parent step's "Actual Min" column
was showing stale data — duration_actual is a regular Float set
once by button_finish.

Adds:
- fp.job.step._fp_resum_duration_actual: quiet helper that re-sums
  duration_actual from time_log_ids.duration_minutes. Skip no-op
  updates so write traffic is minimised.
- fp.job.step.timelog.create/write/unlink hooks: call the helper
  on the affected parent step(s) so duration_actual stays
  consistent. Write hook only fires when date_started/date_finished/
  step_id changed (notes edits skip resync). step_id reassignment
  resyncs both old and new parent.
- Existing action_recompute_duration_from_timelogs (manual button)
  still posts a chatter entry for audit-trail use cases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 23:53:45 -04:00
..
2026-04-20 13:07:15 -04:00
2026-05-04 02:14:34 -04:00
2026-04-26 15:05:17 -04:00
2026-04-16 20:53:53 -04:00
2026-04-28 19:39:37 -04:00
2026-05-10 10:25:12 -04:00
2026-05-10 10:25:12 -04:00
2026-05-10 10:25:12 -04:00
2026-05-10 10:25:12 -04:00
2026-04-28 19:39:37 -04:00
2026-04-20 01:16:12 -04:00
2026-04-28 19:39:37 -04:00
2026-04-28 19:39:37 -04:00
2026-04-28 19:39:37 -04:00
2026-04-29 03:35:33 -04:00
2026-05-10 10:25:12 -04:00
2026-04-28 19:39:37 -04:00
2026-04-28 19:39:37 -04:00
2026-04-24 21:04:38 -04:00
2026-04-20 01:16:12 -04:00
2026-05-10 10:25:12 -04:00
2026-04-20 01:16:12 -04:00
2026-04-16 20:53:53 -04:00