-
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
[ADD] hr_timesheet_stop_button: In Timesheets new fields: Start Date,… #120
base: 12.0
Are you sure you want to change the base?
[ADD] hr_timesheet_stop_button: In Timesheets new fields: Start Date,… #120
Conversation
@avanzosc/developers .... review please |
start_date = fields.Datetime( | ||
string='Start date', default=fields.datetime.now()) |
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.
Modificar este campo debería de modificar el campo de fecha de imputacion.
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.
Realizado lo solicitado por @oihane , eskerrik asko.
end_date = fields.Datetime( | ||
string='End date') |
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.
Modificar este campo, debería de hacer el recálculo del importe.
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.
Tenido en cuenta lo solicitado por @oihane , eskerrik asko.
1773384
to
c75f6ac
Compare
Realizado lo solicitado. Eskerrik asko.
8b38147
to
b931fe9
Compare
b931fe9
to
65b5e69
Compare
class AccountAnalyticLine(models.Model): | ||
_inherit = 'account.analytic.line' | ||
|
||
start_date = fields.Datetime( |
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.
Haremos compatible este módulo con hr_timesheet_usability de OCA
- Eliminar los campos start date y end date
- Al crear la línea meter en el campo "hora inicio" del módulo de OCa, la de la creación de la línea
string='End date') | ||
|
||
@api.onchange('start_date', 'end_date') | ||
def _onchange_start_end_date(self): |
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.
No hace falta porque ya el de OCA hace el onchange
self.unit_amount = self._compute_new_duration( | ||
self.end_date, self.start_date) | ||
|
||
def action_end_button(self): |
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.
Usar el de OCA
… and End Date. Also new button "Put end date".
65b5e69
to
6e11f95
Compare
… and End Date. Also new button "Put end date".