Skip to content

Commit 6bb836e

Browse files
committed
[FIX] helpdesk_mgmt_timesheet_addline: add condition: add changes to "New Timesheet" button
1 parent ac42bc2 commit 6bb836e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

helpdesk_mgmt_timesheet_addline/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"summary": """
66
Adds a more accesible button for timesheet creation within ticket form
77
""",
8-
"version": "15.0.1.1.0",
8+
"version": "15.0.1.1.1",
99
"license": "LGPL-3",
1010
"category": "After-Sales",
1111
"author": "Solvos",

helpdesk_mgmt_timesheet_addline/views/helpdesk_ticket_timesheet_views.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<xpath expr="//button[@name='assign_to_me']" position="after" >
1010
<button string="Create new timesheet"
1111
name="%(helpdesk_mgmt_timesheet_addline.action_new_timesheet)d"
12-
class="oe_edit_only btn-primary"
12+
class="btn-primary"
1313
type="action"
1414
context="{'default_ticket_id': id, 'default_project_id': project_id, 'default_task_id': task_id}"
15-
attrs="{'invisible' : [('id', '=', False)]}"/>
15+
attrs="{'invisible' : ['|', ('id', '=', False), ('project_id', '=', False)]}"/>
1616
</xpath>
1717
</field>
1818
</record>

0 commit comments

Comments
 (0)