🎉 Initialize module repository
This commit is contained in:
48
views/mvd_tcg_mtg_set_views.xml
Normal file
48
views/mvd_tcg_mtg_set_views.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="mvd_tcg_mtg_set_view_form_scryfall" model="ir.ui.view">
|
||||
<field name="name">mvd.tcg.mtg.set.view.form.scryfall</field>
|
||||
<field name="model">mvd.tcg.mtg.set</field>
|
||||
<field name="inherit_id" ref="mvd_tcg_mtg.mvd_tcg_mtg_set_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//sheet" position="before">
|
||||
<header>
|
||||
<button
|
||||
name="action_mtg_scryfall_refresh_set"
|
||||
string="Refresh from Scryfall"
|
||||
type="object"
|
||||
class="btn-primary"
|
||||
groups="mvd_tcg_base.mvd_tcg_base_group_manager,base.group_system"
|
||||
/>
|
||||
</header>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button
|
||||
name="action_open_mtg_scryfall_last_import_run"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-refresh"
|
||||
invisible="not mtg_scryfall_last_import_run_id"
|
||||
groups="mvd_tcg_base.mvd_tcg_base_group_manager,base.group_system"
|
||||
>
|
||||
<div class="o_stat_info">
|
||||
<span class="o_stat_text">Last Import</span>
|
||||
<span class="o_stat_value">Open</span>
|
||||
</div>
|
||||
</button>
|
||||
</xpath>
|
||||
<xpath expr="//notebook/page[@name='general_information']" position="after">
|
||||
<page string="Scryfall" name="scryfall_connector" groups="mvd_tcg_base.mvd_tcg_base_group_administrator,base.group_system">
|
||||
<group>
|
||||
<group>
|
||||
<field name="mtg_scryfall_last_synced_at"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="mtg_scryfall_last_import_run_id"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user