-
Notifications
You must be signed in to change notification settings - Fork 23
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
[IMP] hr_timesheet_usability: En lineas de analitica inicializar los … #122
base: 12.0
Are you sure you want to change the base?
[IMP] hr_timesheet_usability: En lineas de analitica inicializar los … #122
Conversation
…campos hora inicio y fin, y también empleado.
@avanzosc/developers .... review please |
employee = employee_obj.search(cond, limit=1) | ||
return employee if employee else employee_obj | ||
|
||
time_start = fields.Float(default=default_times) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time_start y time_stop ya los crea hr_timesheet_activity_begin_end entonces, deberían estar aquí de nuevo? Es porque se les asigna aquí un default que no tienen en el otro lado?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muy buenos días @anajuaristi , efectivamente, en el módulo origen los crea, pero no les da ningún valor por defecto, esto hacé que cuando se muestra el formulario o el tree con estos campos, aparezcan vacios.
Con la modificación que yo he hecho al módulo "hr_timesheet_usability" les defino un default para que les de un valor por defecto.
Un saludo.
|
||
time_start = fields.Float(default=default_times) | ||
time_stop = fields.Float(default=default_times) | ||
employee_id = fields.Many2one(default=default_employee_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En analitica NO SIEMPRE hay que informar el empleado.
…campos hora inicio y fin, y también empleado.