Skip to content

Commit df562a9

Browse files
committed
[IMP] sale_timesheet_project_manual - As we can generate projects for a draft sale.order, the button linked to projects should be available for this state
1 parent 2d97252 commit df562a9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sale_timesheet_project_manual/views/sale_order.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
<field name="inherit_id" ref="sale.view_order_form" />
1010
<field name="arch" type="xml">
1111

12+
<xpath
13+
expr="//button[@name='action_view_project_ids']"
14+
position="attributes"
15+
>
16+
<attribute
17+
name="attrs"
18+
>{'invisible': [('project_ids', '=', [])]}</attribute>
19+
</xpath>
20+
1221
<button name="action_confirm" position="before">
1322
<field name="action_project_manual_allowed" invisible="1" />
1423
<button

0 commit comments

Comments
 (0)