Debian Codegraph @

addons/stock_account/static/src/stock_valuation/line/toggle_line.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <templates>
3 <t t-name="stock_account.StockValuationReport.InventoryValuationToggleLine"
4 t-inherit="stock_account.StockValuationReport.InventoryValuationLine"
5 t-inherit-mode="primary">
6 <xpath expr="//div[hasclass('wrapper')]//button//i" position="attributes">
7 <attribute name="t-attf-class">fa fa-#{state.displaySublines ? 'check-' : ''}square-o</attribute>
8 </xpath>
9 <xpath expr="//t[@t-foreach='props.sublines']//StockValuationReportLine" position="replace">
10 <t t-if="line.lines">
11 <StockValuationReportToggleLine
12 label="line.display_name"
13 line="line"
14 sublines="line.lines"
15 level="props.level + 2"
16 onClickMethod="props.onClickMethod || line.method"
17 value="line.value"/>
18 </t>
19 <t t-else="">
20 <StockValuationReportLine
21 label="line.display_name"
22 line="line"
23 level="props.level + 2"
24 onClickMethod="props.onClickMethod || line.method"
25 value="line.value"/>
26 </t>
27 </xpath>
28 </t>
29 </templates>