Maintainers
+Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
diff --git a/rma_sale/views/sale_portal_template.xml b/rma_sale/views/sale_portal_template.xml
index fad64c85..c361b63f 100644
--- a/rma_sale/views/sale_portal_template.xml
+++ b/rma_sale/views/sale_portal_template.xml
@@ -17,13 +17,20 @@
+
@@ -32,6 +39,7 @@
Quantity
Delivery
Requested operation
+
@@ -46,12 +54,14 @@
+
+
+
+
+
+
diff --git a/rma_sale/wizard/sale_order_rma_wizard.py b/rma_sale/wizard/sale_order_rma_wizard.py
index df4afefb..30142fad 100644
--- a/rma_sale/wizard/sale_order_rma_wizard.py
+++ b/rma_sale/wizard/sale_order_rma_wizard.py
@@ -32,9 +32,6 @@ class SaleOrderRmaWizard(models.TransientModel):
def create_rma(self, from_portal=None):
self.ensure_one()
lines = self.line_ids.filtered(lambda r: r.quantity > 0.0)
- if from_portal:
- rma_product = self.order_id.rma_ids.mapped('product_id')
- lines = lines.filtered(lambda r: r.product_id not in rma_product)
val_list = [line._prepare_rma_values() for line in lines]
rma = self.env['rma'].create(val_list)
# post messages
@@ -125,6 +122,7 @@ class SaleOrderLineRmaWizard(models.TransientModel):
comodel_name='rma.operation',
string='Requested operation',
)
+ description = fields.Text()
@api.onchange('product_id')
def onchange_product_id(self):
@@ -166,4 +164,5 @@ class SaleOrderLineRmaWizard(models.TransientModel):
'product_uom_qty': self.quantity,
'product_uom': self.uom_id.id,
'operation_id': self.operation_id.id,
+ 'description': self.description,
}
+
+