Skip to content

[15.0][MIG] helpdesk_mgmt_timesheet_addline#34

Open
adriresu wants to merge 6 commits into15.0from
15.0-mig-helpdesk_mgmt_timesheet_addline
Open

[15.0][MIG] helpdesk_mgmt_timesheet_addline#34
adriresu wants to merge 6 commits into15.0from
15.0-mig-helpdesk_mgmt_timesheet_addline

Conversation

@adriresu
Copy link
Copy Markdown

No description provided.

@adriresu adriresu force-pushed the 15.0-mig-helpdesk_mgmt_timesheet_addline branch from ce1045d to 1cbd7f1 Compare October 31, 2023 17:06
Copy link
Copy Markdown
Contributor

@dalonsod dalonsod left a comment

Choose a reason for hiding this comment

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

See comment. Once applied that patch, locally tested in a brand new database 👍

@adriresu adriresu force-pushed the 15.0-mig-helpdesk_mgmt_timesheet_addline branch from 1cbd7f1 to 49c9343 Compare November 23, 2023 18:47
@dalonsod
Copy link
Copy Markdown
Contributor

Please reword commit message [MIG] helpdesk_type_team_restricted: Migration to 15.0, because addon reference is wrong

@adriresu adriresu force-pushed the 15.0-mig-helpdesk_mgmt_timesheet_addline branch from 49c9343 to 112301b Compare November 27, 2023 14:36
@adriresu
Copy link
Copy Markdown
Author

Name fixed

@dalonsod
Copy link
Copy Markdown
Contributor

dalonsod commented Dec 4, 2023

@Anxo82 with this new addition, button is shown twice, isn't it? I'd prefer only moving it, so you can remove it from original location above timesheets grid

Copy link
Copy Markdown
Contributor

@dalonsod dalonsod left a comment

Choose a reason for hiding this comment

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

@Anxo82 See comment, and also, in separate commits:

  • [FIX] This button should be only available if timesheets are allowed for the ticket (see timesheets page invisible condition within ticket form).
  • [UPD] View files have unconventional names, because, they should be respectively moved to hr_timesheet_views.xml (or account_analytic_line_views.xml) and helpdesk_ticket_views.xml, as models are named.

<xpath expr="//button[@name='assign_to_me']" position="after" >
<button string="Create new timesheet"
name="%(helpdesk_mgmt_timesheet_addline.action_new_timesheet)d"
class="oe_edit_only btn-primary"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested, button is hidden even if ticket exists, when mode is not editable, maybe for this class. Could you remove it and try?

Suggested change
class="oe_edit_only btn-primary"
class="btn-primary"

cc @ChristianSantamaria

@Anxo82 Anxo82 force-pushed the 15.0-mig-helpdesk_mgmt_timesheet_addline branch from dc4c39d to 0e92082 Compare January 3, 2024 16:47
@Anxo82 Anxo82 force-pushed the 15.0-mig-helpdesk_mgmt_timesheet_addline branch from 0e92082 to 61136bd Compare January 3, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants