47 lines
1.9 KiB
XML
47 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="mvd_tcg_mtg_scryfall_lookup_view_form" model="ir.ui.view">
|
|
<field name="name">mvd.tcg.mtg.scryfall.lookup.view.form</field>
|
|
<field name="model">mvd.tcg.mtg.lookup</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Lookup Card">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field
|
|
name="query"
|
|
placeholder="e.g. Black Lotus or https://scryfall.com/card/lea/233/black-lotus"
|
|
/>
|
|
</group>
|
|
<group>
|
|
<field name="lookup_mode" widget="radio"/>
|
|
</group>
|
|
</group>
|
|
<div class="text-muted">
|
|
The Scryfall connector imports or refreshes one MTG
|
|
reference card together with its set metadata and
|
|
translations.
|
|
</div>
|
|
</sheet>
|
|
<footer>
|
|
<button
|
|
name="action_lookup_card"
|
|
string="Lookup Card"
|
|
type="object"
|
|
class="btn-primary"
|
|
/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mvd_tcg_mtg_scryfall_lookup_action" model="ir.actions.act_window">
|
|
<field name="name">Lookup Card</field>
|
|
<field name="res_model">mvd.tcg.mtg.lookup</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="mvd_tcg_mtg_scryfall.mvd_tcg_mtg_scryfall_lookup_view_form"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
</odoo>
|