You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
2.4 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form View -->
<record id="insta_profile_view_form" model="ir.ui.view">
<field name="name">insta.profile.view.form</field>
<field name="model">insta.profile</field>
<field name="arch" type="xml">
<form>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_fetch" string="Fetch Account" type="object" class="oe_stat_button"
icon="fa-instagram"/>
<button name="action_get_post" string="Fetch Posts" type="object" class="oe_stat_button"
attrs="{'invisible': [('username', '=', False)]}"
icon="fa-save"/>
</div>
<field name="profile_image_url" widget="image" class="oe_avatar"/>
<div class="oe_title">
<h1>
<field name="name" widget="text"/>
</h1>
</div>
<div>
<group>
<field name="access_token" password="True" style="width:600px;word-break: break-all;"/>
<field name="username"/>
<field name="account_id"/>
</group>
</div>
</sheet>
</form>
</field>
</record>
<!-- Insta Profile list view -->
<record id="insta_profile_view_tree" model="ir.ui.view">
<field name="name">insta.profile.view.tree</field>
<field name="model">insta.profile</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="username"/>
</tree>
</field>
</record>
<!-- Insta Profile Action -->
<record id="insta_profile_action" model="ir.actions.act_window">
<field name="name">Insta profile</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">kanban,tree,form</field>
<field name="res_model">insta.profile</field>
</record>
<!-- Insta Profile Menu Item -->
<menuitem id="insta_profile_menu"
name="Instagram"
sequence="30"
action="insta_profile_action"
parent="website.menu_website_global_configuration"/>
</odoo>