diff --git a/rma/views/rma_operation_view.xml b/rma/views/rma_operation_view.xml
index 39d992b3..e2e363e3 100644
--- a/rma/views/rma_operation_view.xml
+++ b/rma/views/rma_operation_view.xml
@@ -20,22 +20,16 @@
-
- rma.order.line.supplier.form
- rma.order.line
-
-
-
-
-
rma.order.line.form
rma.order.line
@@ -303,7 +67,6 @@
type="object"
string="Back to Draft"
attrs="{'invisible':[('state', '=', 'draft')]}"
- class="oe_highlight"
groups="rma.group_rma_customer_user,rma.group_rma_supplier_user"
/>
-
+
-
+
+
+
+
+
+
+
@@ -408,6 +177,7 @@
groups="stock.group_production_lot"
attrs="{'required': [('product_tracking', 'in', ('serial', 'lot'))]}"
/>
+
@@ -437,44 +207,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -489,13 +222,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -510,8 +288,8 @@
string="Company"
groups="base.group_multi_company"
>
-
-
+
+
@@ -527,6 +305,40 @@
+
+ rma.order.line.supplier.form
+ rma.order.line
+
+ primary
+
+
+ Customer RMA
+
+
+ Supplier
+ {'res_partner_search_mode': 'supplier'}
+
+
+ 1
+
+
+ [('picking_id.partner_id', '=', partner_id),
+ ('location_id.usage', '=', 'supplier'),
+ ('state', '=', 'done')]
+
+
+ [('type','=','supplier')]
+
+
+
+
rma.order.line.select
rma.order.line
diff --git a/rma/wizards/rma_make_picking_view.xml b/rma/wizards/rma_make_picking_view.xml
index bf488bbb..6e1d094f 100644
--- a/rma/wizards/rma_make_picking_view.xml
+++ b/rma/wizards/rma_make_picking_view.xml
@@ -106,40 +106,28 @@
-
-
-
-
- rma.order.line.supplier.form
- rma.order.line
-
-
-
diff --git a/rma/wizards/rma_order_line_make_supplier_rma_view.xml b/rma/wizards/rma_order_line_make_supplier_rma_view.xml
index f862c775..99a83aa2 100644
--- a/rma/wizards/rma_order_line_make_supplier_rma_view.xml
+++ b/rma/wizards/rma_order_line_make_supplier_rma_view.xml
@@ -67,9 +67,8 @@
diff --git a/rma_account/views/rma_order_line_view.xml b/rma_account/views/rma_order_line_view.xml
index 20bc2aef..a0235fa9 100644
--- a/rma_account/views/rma_order_line_view.xml
+++ b/rma_account/views/rma_order_line_view.xml
@@ -5,25 +5,6 @@
rma.order.line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -89,6 +51,7 @@
domain="[('move_id.move_type', '!=', 'entry'), '|',
('move_id.partner_id', '=', partner_id),
('move_id.partner_id', 'child_of', partner_id)]"
+ attrs="{'invisible':[('type', '!=', 'customer')]}"
/>
diff --git a/rma_account/wizards/rma_refund.xml b/rma_account/wizards/rma_refund.xml
index 64b76089..1168bf1c 100644
--- a/rma_account/wizards/rma_refund.xml
+++ b/rma_account/wizards/rma_refund.xml
@@ -57,29 +57,19 @@
+
-
- rma.order.line.supplier.form
- rma.order.line
-
-
-
-
-
-
-
diff --git a/rma_purchase/views/rma_order_line_view.xml b/rma_purchase/views/rma_order_line_view.xml
index 55a900ba..9ac0496b 100644
--- a/rma_purchase/views/rma_order_line_view.xml
+++ b/rma_purchase/views/rma_order_line_view.xml
@@ -8,29 +8,28 @@
form,tree
-
- rma.order.line.supplier.form
- rma.order.line
-
-
-
-
-
-
rma.order.line.supplier.form
rma.order.line
+
+
diff --git a/rma_sale/views/rma_order_line_view.xml b/rma_sale/views/rma_order_line_view.xml
index 013011a1..f9fe62d7 100644
--- a/rma_sale/views/rma_order_line_view.xml
+++ b/rma_sale/views/rma_order_line_view.xml
@@ -26,6 +26,7 @@
name="sale_line_id"
context="{'rma': True}"
options="{'no_create': True}"
+ attrs="{'invisible':[('type', '!=', 'customer')]}"
/>
@@ -51,43 +52,6 @@
-
- rma.order.line.supplier.form
- rma.order.line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
rma.order.line.form
rma.order.line
@@ -96,25 +60,15 @@
-
-
-
- rma.order.line.supplier.form
- rma.order.line
-
-
-