mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[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:
@@ -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="data['quantity'] > 0 and data['picking']"]/tr"
|
||||
|
||||
Reference in New Issue
Block a user