| 1 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 2 |
<odoo> |
| 3 |
<template id="purchase_report_stock_rule" inherit_id="stock.report_stock_rule"> |
| 4 |
<xpath expr="//div[hasclass('o_report_stock_rule_rule')]/t" position="before"> |
| 5 |
<t t-if="rule[0].action == 'buy'"> |
| 6 |
<t t-if="rule[1] == 'origin'"> |
| 7 |
<t t-call="stock.report_stock_rule_left_arrow"/> |
| 8 |
</t> |
| 9 |
</t> |
| 10 |
</xpath> |
| 11 |
<xpath expr="//div[hasclass('o_report_stock_rule_rule')]/t[last()]" position="after"> |
| 12 |
<t t-if="rule[0].action == 'buy'"> |
| 13 |
<t t-if="rule[1] == 'destination'"> |
| 14 |
<t t-call="stock.report_stock_rule_right_arrow"/> |
| 15 |
</t> |
| 16 |
</t> |
| 17 |
</xpath> |
| 18 |
<xpath expr="//div[hasclass('o_report_stock_rule_rule_name')]/span" position="before"> |
| 19 |
<t t-if="rule[0].action == 'buy'"> |
| 20 |
<i class="fa fa-credit-card fa-fw" t-attf-style="color: #{color};"/> |
| 21 |
</t> |
| 22 |
</xpath> |
| 23 |
<xpath expr="//div[hasclass('o_report_stock_rule_legend')]" position="inside"> |
| 24 |
<div class="o_report_stock_rule_legend_line"> |
| 25 |
<div class="o_report_stock_rule_legend_label">Buy</div> |
| 26 |
<div class="o_report_stock_rule_legend_symbol"> |
| 27 |
<div class="fa fa-credit-card fa-fw" t-attf-style="color: #{color};"/> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
</xpath> |
| 31 |
</template> |
| 32 |
</odoo> |