🎉 Initialize module repository
This commit is contained in:
48
report/mvd_tcg_mtg_deck_report_templates.xml
Normal file
48
report/mvd_tcg_mtg_deck_report_templates.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template
|
||||
id="report_mvd_tcg_deck_document_openai_inherit"
|
||||
inherit_id="mvd_tcg_deck.report_mvd_tcg_deck_document"
|
||||
>
|
||||
<xpath expr="//div[hasclass('o_mvd_tcg_report_board_header')]" position="after">
|
||||
<div
|
||||
t-if="section['board'].code == 'command_zone' and doc.mtg_openai_commander_summary"
|
||||
class="o_mvd_tcg_report_section o_mvd_tcg_report_section_emphasis"
|
||||
style="margin-bottom: 10px;"
|
||||
>
|
||||
<h3 class="o_mvd_tcg_report_section_title">Deck Analysis</h3>
|
||||
<div t-field="doc.mtg_openai_commander_summary"/>
|
||||
<table
|
||||
t-if="doc.mtg_openai_gameplan or doc.mtg_openai_pilot_tips or doc.mtg_openai_risk_notes"
|
||||
class="o_mvd_tcg_report_snapshot"
|
||||
style="margin-top: 8px;"
|
||||
>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td t-if="doc.mtg_openai_gameplan">
|
||||
<div class="o_mvd_tcg_report_snapshot_block">
|
||||
<h4>Game Plan</h4>
|
||||
<div t-field="doc.mtg_openai_gameplan"/>
|
||||
</div>
|
||||
</td>
|
||||
<td t-if="doc.mtg_openai_pilot_tips">
|
||||
<div class="o_mvd_tcg_report_snapshot_block">
|
||||
<h4>Pilot Tips</h4>
|
||||
<div t-field="doc.mtg_openai_pilot_tips"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div
|
||||
t-if="doc.mtg_openai_risk_notes"
|
||||
class="o_mvd_tcg_report_snapshot_block"
|
||||
style="margin-top: 8px;"
|
||||
>
|
||||
<h4>Risk Notes</h4>
|
||||
<div t-field="doc.mtg_openai_risk_notes"/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user