mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] rma_sale_mrp: description
- When creating an RMA for a kit from the portal, the description was lost for the components. - Also fix template that doesn't comply the field directive
This commit is contained in:
@@ -60,10 +60,10 @@
|
||||
<div>
|
||||
<i class="fa fa-reply mr-1" role="img"/>
|
||||
<span t-esc="kit_rma.name" class="mr-lg-3"/>
|
||||
<div class="d-lg-inline-block"><span t-field="kit_rma.sudo().product_id.display_name"/> (<t t-field="kit_rma.product_uom_qty" />)</div>
|
||||
<div class="d-lg-inline-block"><span t-field="kit_rma.sudo().product_id.display_name"/> (<span t-field="kit_rma.product_uom_qty" />)</div>
|
||||
</div>
|
||||
<t t-if="kit_rma.state in ['confirmed', 'received', 'returned', 'replaced', 'locked', 'refunded']">
|
||||
<span class="badge badge-success label-text-align"><i class="fa fa-fw fa-reply"/> <t t-field="kit_rma.state" /></span>
|
||||
<span class="badge badge-success label-text-align"><i class="fa fa-fw fa-reply"/> <span t-field="kit_rma.state" /></span>
|
||||
</t>
|
||||
<t t-if="kit_rma.state in ['waiting_return', 'waiting_replacement']">
|
||||
<span class="badge badge-warning label-text-align"><i class="fa fa-fw fa-clock-o"/> Waiting</span>
|
||||
|
||||
@@ -65,6 +65,7 @@ class SaleOrderRmaWizard(models.TransientModel):
|
||||
for kit_line in product_kit_component_lines:
|
||||
kit_line.quantity = min(qty_to_return, kit_line.quantity)
|
||||
kit_line.operation_id = line.operation_id
|
||||
kit_line.description = line.description
|
||||
kit_line.kit_qty_done = (
|
||||
kit_line.quantity / kit_line.per_kit_quantity)
|
||||
qty_to_return -= kit_line.quantity
|
||||
|
||||
Reference in New Issue
Block a user