Debian Codegraph @

addons/stock_account/static/src/stock_valuation/stock_valuation_report.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <templates>
3 <t t-name="stock_account.StockValuationReport">
4 <div class="o_action account_report">
5 <ControlPanel>
6 <!-- Buttons bar -->
7 <t t-set-slot="control-panel-create-button">
8 <StockValuationReportButtonsBar/>
9 </t>
10 <!-- <t t-set-slot="control-panel-additional-actions">
11 <AccountReportCogMenu/>
12 </t> -->
13
14 <!-- Filters -->
15 <t t-set-slot="layout-actions">
16 <div class="d-flex gap-1 flex-wrap">
17 <StockValuationReportFilters/>
18 </div>
19 </t>
20 </ControlPanel>
21 <div class="o_content">
22 <div id="warnings" class="warnings d-print-none"/>
23 <div class="fit-content w-print-100">
24 <table class="table table-borderless table-hover w-print-100 mx-auto">
25 <tbody>
26 <t t-call="stock_account.StockValuationReport.InitialBalance"/>
27 <t t-if="data.inventory_loss" t-call="stock_account.StockValuationReport.InventoryLoss"/>
28 <t t-call="stock_account.StockValuationReport.StockVariation"/>
29 <t t-call="stock_account.StockValuationReport.EndingStock"/>
30 <!-- <t t-call="stock_account.StockValuationReport.Accrual"/> -->
31 </tbody>
32 </table>
33 </div>
34 </div>
35 </div>
36 </t>
37
38 <t t-name="stock_account.StockValuationReport.EmptyLine">
39 <tr class="empty"><td colspan="3"/></tr>
40 </t>
41
42 <t t-name="stock_account.StockValuationReport.InitialBalance">
43 <StockValuationReportLine
44 label.translate="Initial Balance"
45 level="0"
46 onClickMethod.bind="openAccountMoves"
47 sublines="data.initial_balance.lines"
48 value="data.initial_balance.value"/>
49 <t t-call="stock_account.StockValuationReport.EmptyLine"/>
50 </t>
51
52 <t t-name="stock_account.StockValuationReport.StockVariation">
53 <StockValuationReportLine
54 label.translate="Stock Variation"
55 level="0"
56 sublines="data.stock_variation.lines"
57 displayDebitCredit="true"
58 value="data.stock_variation.value"/>
59 <t t-call="stock_account.StockValuationReport.EmptyLine"/>
60 </t>
61
62 <t t-name="stock_account.StockValuationReport.EndingStock">
63 <StockValuationReportLine
64 label.translate="Ending Stock"
65 level="0"
66 onClickMethod.bind="openStockReport"
67 sublines="data.ending_stock.lines"
68 value="data.ending_stock.value"/>
69 <t t-call="stock_account.StockValuationReport.EmptyLine"/>
70 </t>
71
72 <t t-name="stock_account.StockValuationReport.InventoryLoss">
73 <StockValuationReportLine
74 label.translate="Inventory Loss"
75 level="0"
76 displayDebitCredit="true"
77 onClickMethod.bind="openInventoryLoss"
78 sublines="data.inventory_loss.lines"
79 value="data.inventory_loss.value"/>
80 <t t-call="stock_account.StockValuationReport.EmptyLine"/>
81 </t>
82
83 <t t-name="stock_account.StockValuationReport.Accrual">
84 <t t-if="accrual.lines.length">
85 <StockValuationReportToggleLine
86 label.translate="Accrual"
87 sublines="accrual.lines"
88 level="0"/>
89 </t>
90 </t>
91 </templates>