[FIX] rma_sale_mrp: portal rma

We must inform the component line maximum qty to return so we're able to
properly discount every line on the wizard

TT29876
This commit is contained in:
david
2021-05-25 15:52:23 +02:00
committed by Pedro M. Baeza
parent 2db34ce0f3
commit bc124799ef

View File

@@ -25,6 +25,10 @@
t-att-value="1"
/>
</xpath>
<!-- The component lines are splitted on the wizard so we should set the quantity properly -->
<xpath expr="//input[@t-attf-name='#{data_index}-quantity']" position="attributes">
<attribute name="t-att-value">data.get('phantom_bom_product') and data['quantity'] or 0</attribute>
</xpath>
<!-- TODO: We could give a clue about what's to be returned, with readonly detailed lines -->
<xpath
expr="//tbody[hasclass('request-rma-tbody')]//t[@t-if=&quot;data[&apos;quantity&apos;] &gt; 0 and data[&apos;picking&apos;]&quot;]/tr"