-
-
Notifications
You must be signed in to change notification settings - Fork 107
[18.0][ADD]fleet_vehicle_assignation_log_datetime: add new module #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0
Are you sure you want to change the base?
[18.0][ADD]fleet_vehicle_assignation_log_datetime: add new module #184
Conversation
109ab29 to
10b20eb
Compare
18db92e to
f59fbc1
Compare
|
@rpsjr I wouldn’t include the i18n folder. Once the PR is merged, GitHub automatically generates the .pot file. Translations can then be handled later through Weblate. |
Made it |
|
@rpsjr could you please squash the commits and keep only the ADD commit? Thanks! |
26f7a42 to
fc1c81b
Compare
|
Done
Atenciosamente,
Raimundo Pereira da Silva Junior
tel: +55 71 9 8877 0601
Em ter., 23 de set. de 2025, 18:30, Marcel Savegnago <
***@***.***> escreveu:
… *marcelsavegnago* left a comment (OCA/fleet#184)
<#184 (comment)>
@rpsjr <https://github.com/rpsjr> could you please squash the commits and
keep only the ADD commit? Thanks!
—
Reply to this email directly, view it on GitHub
<#184 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCBYEMSZCPRCUEX3VLAKKD3UG3XNAVCNFSM6AAAAACGVICAB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMRVGYYTOOJXGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
@rpsjr, could you fix the commit message? Suggested final message: [18.0][ADD] fleet_vehicle_assignation_log_datetime: add new module To edit the commit message, you can run:
In the editor, change pick to edit for the commit, then run: This way the history stays clean without all the "fix" noise.
|
fc1c81b to
f698614
Compare
f698614 to
8234bb9
Compare
Done! Thx for ur patience. |


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.