Skip to content
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: remove total section when timesheets are not grouped #164662

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kusi-odoo
Copy link
Contributor

@kusi-odoo kusi-odoo commented May 7, 2024

-In this PR, we remove the total label in the portal view, if the
timesheets are not grouped.

task-3908815

@robodoo
Copy link
Contributor

robodoo commented May 7, 2024

@C3POdoo C3POdoo added the RD research & development, internal work label May 7, 2024
Comment on lines 98 to 100
<tr t-else="">
<div style="text-align: right;" class="mr-2 mb-1 text-muted">
<t t-if="is_uom_day">
Total: <span t-esc="timesheets._convert_hours_to_days(hours_spent)" t-options='{"widget": "timesheet_uom"}'/>
</t>
<t t-else="">
Total: <span t-esc="hours_spent" t-options='{"widget": "float_time"}'/>
</t>
</div>
</tr>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous code I removed. Now, I have added a new code instead of removing the else part of code.
Please check it.
Thanks

@kusi-odoo kusi-odoo force-pushed the 15.0-hr_timesheet-portal-fix-kusi branch from 4b22e83 to 0fad2cb Compare May 7, 2024 10:25
@ppr-odoo ppr-odoo force-pushed the 15.0-hr_timesheet-portal-fix-kusi branch from 0fad2cb to b6d58d7 Compare May 8, 2024 07:02
@ppr-odoo ppr-odoo changed the title [FIX] hr_timesheet: fix timesheet portal search view [FIX] hr_timesheet: hide the total section when timesheets are not grouped May 8, 2024
Copy link
Contributor

@auon-odoo auon-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@kusi-odoo kusi-odoo changed the base branch from 15.0 to master May 27, 2024 04:46
@kusi-odoo kusi-odoo force-pushed the 15.0-hr_timesheet-portal-fix-kusi branch from b6d58d7 to 404b6c9 Compare May 27, 2024 05:03
@ppr-odoo
Copy link
Contributor

@kusi-odoo Please update the commit message, PR title, and description.

@kusi-odoo kusi-odoo force-pushed the 15.0-hr_timesheet-portal-fix-kusi branch from 404b6c9 to e0c8832 Compare May 27, 2024 06:34
In this commit, we remove the total label in the portal view, if the
timesheets are not grouped.

task-3908815
@kusi-odoo kusi-odoo force-pushed the 15.0-hr_timesheet-portal-fix-kusi branch from e0c8832 to 070a655 Compare May 27, 2024 06:56
@kusi-odoo kusi-odoo changed the title [FIX] hr_timesheet: hide the total section when timesheets are not grouped [IMP] hr_timesheet: remove total section when timesheets are not grouped May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants