Skip to content

Commit 392d140

Browse files
Fix layout of wizard UIs
1 parent 7c51de4 commit 392d140

File tree

4 files changed

+41
-33
lines changed

4 files changed

+41
-33
lines changed

spp_change_request/wizard/cancel_change_request_view.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
</group>
2020
<field name="change_request_id" invisible="1" />
2121
</sheet>
22+
<footer>
2223
<button
23-
name="cancel_change_request"
24-
string="Confirm"
25-
type="object"
26-
class="btn btn-success"
27-
/>
24+
name="cancel_change_request"
25+
string="Confirm"
26+
type="object"
27+
class="btn btn-success"
28+
/>
2829
<button string="Cancel" class="btn btn-danger" special="cancel" />
30+
</footer>
2931
</form>
3032
</field>
3133
</record>

spp_change_request/wizard/confirm_user_assignment_view.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
<field name="assign_to_any" invisible="1" />
2727
<field name="assign_to_id_domain" invisible="1" />
2828
</sheet>
29+
<footer>
2930
<button name="assign_to_user" string="YES" type="object" class="oe_highlight" />
3031
<button string="NO" class="btn-danger" special="cancel" />
32+
</footer>
3133
</form>
3234
</field>
3335
</record>

spp_change_request/wizard/reject_change_request_view.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
</group>
2121
<field name="change_request_id" invisible="1" />
2222
</sheet>
23+
<footer>
2324
<button
24-
name="reject_change_request"
25-
string="Confirm"
26-
type="object"
27-
class="oe_highlight"
28-
/>
25+
name="reject_change_request"
26+
string="Confirm"
27+
type="object"
28+
class="oe_highlight"
29+
/>
2930
<button string="Cancel" class="btn-danger" special="cancel" />
31+
</footer>
3032
</form>
3133
</field>
3234
</record>

spp_change_request_add_children_demo/views/change_request_add_children_view.xml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -522,20 +522,25 @@
522522
<notebook colspan="2" class="o_container_right">
523523
<page string="Request Details">
524524
<group colspan="2" col="2" string="Applicant Information">
525-
<field
526-
name="applicant_id"
527-
options="{'no_create': True,'no_open':True}"
528-
readonly="1"
529-
/>
530-
<button
531-
name="open_applicant_details_form"
532-
type="object"
533-
icon="fa-external-link"
534-
class="btn-success"
535-
invisible="not applicant_id"
536-
style="margin-left: 10px;"
537-
colspan="2"
538-
/>
525+
<div colspan="2">
526+
<label for="applicant_id" string="Applicant:" />
527+
<h3>
528+
<field
529+
name="applicant_id"
530+
options="{'no_create': True,'no_open':True}"
531+
readonly="1"
532+
class="oe_inline"
533+
/>
534+
<button
535+
name="open_applicant_details_form"
536+
type="object"
537+
icon="fa-external-link"
538+
class="btn-success oe_inline"
539+
invisible="not applicant_id"
540+
style="padding-left: 10px !important;"
541+
/>
542+
</h3>
543+
</div>
539544
<field
540545
name="applicant_phone"
541546
string="Phone No."
@@ -544,9 +549,9 @@
544549
options="{'enable_sms': false}"
545550
/>
546551
</group>
547-
<group colspan="4" col="4" string="New Information">
548-
<field name="full_name" readonly="1" colspan="4" class="oe_read_only" />
549-
<field name="family_name" readonly="1" colspan="4" class="oe_edit_only" />
552+
<group colspan="2" col="2" string="New Information">
553+
<field name="full_name" readonly="1" class="oe_read_only" />
554+
<field name="family_name" readonly="1" class="oe_edit_only" />
550555
<field name="given_name" readonly="1" class="oe_edit_only" />
551556
<field name="addl_name" readonly="1" class="oe_edit_only" />
552557
<field name="gender" readonly="1" />
@@ -557,15 +562,13 @@
557562
options="{'enable_sms': false}"
558563
/>
559564
<field name="uid_number" readonly="1" />
560-
<newline />
561-
<field name="birth_place" colspan="4" readonly="1" />
565+
<field name="birth_place" readonly="1" />
562566
<field name="birthdate_not_exact" readonly="1" />
563567
<field name="birthdate" readonly="1" />
564568
<field
565569
name="kind"
566570
widget="many2many_tags"
567571
options="{'no_open':True}"
568-
colspan="4"
569572
readonly="1"
570573
/>
571574
</group>
@@ -595,21 +598,20 @@
595598
</field>
596599
</page>
597600
<page string="Other Information">
598-
<group colspan="4" col="4">
601+
<group colspan="2" col="2">
599602
<field
600603
name="change_request_id"
601604
string="Request No."
602605
readonly="1"
603606
options="{'no_open':True}"
604-
colspan="4"
605607
/>
606608
<field
607609
name="assign_to_id"
608610
string="Assigned To"
609611
options="{'no_open':True}"
610612
readonly="1"
611613
/>
612-
<field name="current_user_assigned" invisible="1" colspan="4" />
614+
<field name="current_user_assigned" invisible="1" />
613615
<field name="last_validated_by_id" readonly="1" />
614616
<field name="date_validated" readonly="1" />
615617
</group>

0 commit comments

Comments
 (0)