Skip to content

[18.0][ADD]fleet_vehicle_assignation_log_datetime: add new module Replaces #184 #218

Open
rpsjr wants to merge 1 commit into
OCA:18.0from
rpsjr:recover-pr-184
Open

[18.0][ADD]fleet_vehicle_assignation_log_datetime: add new module Replaces #184 #218
rpsjr wants to merge 1 commit into
OCA:18.0from
rpsjr:recover-pr-184

Conversation

@rpsjr

@rpsjr rpsjr commented Feb 1, 2026

Copy link
Copy Markdown

Replaces #184

Motivation
The standard driver assignation log in Odoo tracks assignments by date, which lacks the precision needed to determine responsibility for time-sensitive events like traffic infractions. This module introduces datetime precision to solve this problem.

Implementation
Adds datetime_start and datetime_end fields to fleet.vehicle.assignation.log.
Replaces the original date fields in the view with the new datetime fields for a better user experience.
Keeps the original date fields invisible and synchronized via onchange methods to ensure backward compatibility.
Overrides fleet.vehicle.write() to set the datetime_start and datetime_end to the exact moment a driver is changed from the vehicle's form view.

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant