summaryrefslogtreecommitdiff
path: root/addons/mrp/report/report_stock_rule.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/mrp/report/report_stock_rule.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/mrp/report/report_stock_rule.xml')
-rw-r--r--addons/mrp/report/report_stock_rule.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/addons/mrp/report/report_stock_rule.xml b/addons/mrp/report/report_stock_rule.xml
new file mode 100644
index 00000000..e87c60e9
--- /dev/null
+++ b/addons/mrp/report/report_stock_rule.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <template id="mrp_report_stock_rule" inherit_id="stock.report_stock_rule">
+ <xpath expr="//div[hasclass('o_report_stock_rule_rule')]/t" position="before">
+ <t t-if="rule[0].action == 'manufacture'">
+ <t t-if="rule[1] == 'origin'">
+ <t t-call="stock.report_stock_rule_left_arrow"/>
+ </t>
+ </t>
+ </xpath>
+ <xpath expr="//div[hasclass('o_report_stock_rule_rule')]/t[last()]" position="after">
+ <t t-if="rule[0].action == 'manufacture'">
+ <t t-if="rule[1] == 'destination'">
+ <t t-call="stock.report_stock_rule_right_arrow"/>
+ </t>
+ </t>
+ </xpath>
+ <xpath expr="//div[hasclass('o_report_stock_rule_rule_name')]/span" position="before">
+ <t t-if="rule[0].action == 'manufacture'">
+ <i class="fa fa-wrench fa-fw" t-attf-style="color: #{color};"/>
+ </t>
+ </xpath>
+ <xpath expr="//div[hasclass('o_report_stock_rule_legend')]" position="inside">
+ <div class="o_report_stock_rule_legend_line">
+ <div class="o_report_stock_rule_legend_label">Manufacture</div>
+ <div class="o_report_stock_rule_legend_symbol">
+ <div class="fa fa-wrench fa-fw" t-attf-style="color: #{color};"/>
+ </div>
+ </div>
+ </xpath>
+ </template>
+</odoo>