[FIX] rma_sale_mrp: fix view inherit chain

This commit is contained in:
david
2021-06-22 15:52:52 +02:00
parent 08ce7566c5
commit 47da53066e

View File

@@ -3,7 +3,7 @@
<template <template
id="sale_order_portal_template" id="sale_order_portal_template"
name="Request RMA MRP" name="Request RMA MRP"
inherit_id="rma_sale.sale_order_portal_template" inherit_id="rma_sale.sale_rma_request_form"
> >
<xpath expr="//input[@t-attf-name='#{data_index}-product_id']" position="after"> <xpath expr="//input[@t-attf-name='#{data_index}-product_id']" position="after">
<input <input
@@ -26,8 +26,13 @@
/> />
</xpath> </xpath>
<!-- The component lines are splitted on the wizard so we should set the quantity properly --> <!-- 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"> <xpath
<attribute name="t-att-value">data.get('phantom_bom_product') and data['quantity'] or 0</attribute> 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> </xpath>
<!-- TODO: We could give a clue about what's to be returned, with readonly detailed lines --> <!-- TODO: We could give a clue about what's to be returned, with readonly detailed lines -->
<xpath <xpath