-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
[15.0][project_stock] Error in vals of the account analytic line (timesheet_invoice_type = billable_time) #1043
Comments
No, project_id shouldn't be populated. That's only for timesheets. |
OK, for me not to have project_id is not a problem. |
No,as said, that's interpreted by Odoo as a timesheet line, which is not. |
Hi @pedrobaeza maybe I explained wrong the issue, excuse me The lines are recorded by this module like (timesheet_invoice_type = billable_time). For this reason, the analytic lines recorded by this module appear in timesheets and count like a time consumed in the project. For this, I think this issue should be still open. |
Please indicate exactly where it appears. |
The behavior has changed. I imagine because just updated. I recorded a gif with the current behavior. The amount of time is 8 instead 1 due tio the unit of mesure. I don't have units of mesure enabled for the installation. Now I'm confused. Thanks. |
According to this comment, it may happen in v14 as a side effect: @victoralmau can you review? |
This behavior (although strange) is now correct as of v14 because https://github.com/odoo/odoo/blob/14.0/addons/hr_timesheet/models/project.py#L45-L55 takes into account all analytical notes linked to the project. Perhaps, a solution could be to create a module called
This also happens in v15. What do you think about this? |
But |
Yes, maybe a solution could be not to fill project_id and not link these analytic account notes with the project to this way. |
Ok, currently I think the best thing to do would be to overwrite https://github.com/OCA/project/blob/14.0/project_stock/models/project_task.py#L224 here to leave the project empty. Do you think this is correct? |
Sorry, all my descriptions of the issue are in 15.0 |
Such field shouldn't be populated as stated, so if the solution is to explicitly empty it, then go for it, both in v14 and v15. |
Module
project_stock
Describe the bug
Analytic lines created from this module count like timesheet and don't have the id of the project.
To Reproduce
Affected versions: 14.0
Steps to reproduce the behavior:
These analytic lines have the value (timesheet_invoice_type = billable_time).
And there isn't any value in field "project_id" too.
These analytic lines count like time consumed in the project.
Expected behavior
The value in the field should be (timesheet_invoice_type = other_costs)
And the field "project_id" the id of the project.
The text was updated successfully, but these errors were encountered: