diff --git a/account_payment_order/models/account_move.py b/account_payment_order/models/account_move.py
index 5aa71763314..a0a0d248d57 100644
--- a/account_payment_order/models/account_move.py
+++ b/account_payment_order/models/account_move.py
@@ -199,7 +199,7 @@ def create_account_payment_line(self):
if len(result_payorder_ids) == 1:
action.update(
{
- "view_mode": "form,tree,pivot,graph",
+ "view_mode": "form,list,pivot,graph",
"res_id": payorder.id,
"views": False,
}
@@ -207,7 +207,7 @@ def create_account_payment_line(self):
else:
action.update(
{
- "view_mode": "tree,form,pivot,graph",
+ "view_mode": "list,form,pivot,graph",
"domain": _("[('id', 'in', %s)]") % list(result_payorder_ids),
"views": False,
}
diff --git a/account_payment_order/models/account_payment_order.py b/account_payment_order/models/account_payment_order.py
index 35772e95162..ec5d8dc16d8 100644
--- a/account_payment_order/models/account_payment_order.py
+++ b/account_payment_order/models/account_payment_order.py
@@ -432,7 +432,7 @@ def action_move_journal_line(self):
if self.move_count == 1:
action.update(
{
- "view_mode": "form,tree,kanban",
+ "view_mode": "form,list,kanban",
"views": False,
"view_id": False,
"res_id": self.move_ids[0].id,
diff --git a/account_payment_order/views/account_invoice_view.xml b/account_payment_order/views/account_invoice_view.xml
index 238d384fe64..918d8e9de34 100644
--- a/account_payment_order/views/account_invoice_view.xml
+++ b/account_payment_order/views/account_invoice_view.xml
@@ -47,9 +47,7 @@
/>
-
-
-
+
diff --git a/account_payment_order/views/account_payment_line.xml b/account_payment_order/views/account_payment_line.xml
index aaf345f4352..31236556076 100644
--- a/account_payment_order/views/account_payment_line.xml
+++ b/account_payment_order/views/account_payment_line.xml
@@ -7,8 +7,6 @@
@@ -152,7 +146,7 @@
account.payment.order.tree
account.payment.order
-
+
@@ -165,7 +159,6 @@
string="Payment Transactions"
/>
-
-
+
@@ -262,14 +255,14 @@
Payment Orders
account.payment.order
- tree,form,pivot,graph
+ list,form,pivot,graph
[('payment_type', '=', 'outbound')]
{'default_payment_type': 'outbound'}
Debit Orders
account.payment.order
- tree,form,pivot,graph
+ list,form,pivot,graph
[('payment_type', '=', 'inbound')]
{'default_payment_type': 'inbound'}
diff --git a/account_payment_order/wizard/account_payment_line_create_view.xml b/account_payment_order/wizard/account_payment_line_create_view.xml
index d4c453c6d62..fa72f2d49de 100644
--- a/account_payment_order/wizard/account_payment_line_create_view.xml
+++ b/account_payment_order/wizard/account_payment_line_create_view.xml
@@ -11,7 +11,6 @@