Skip to content

Instantly share code, notes, and snippets.

@Guidoom
Created December 1, 2017 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Guidoom/90f2f79066fb20c93ac519ab33dafbb0 to your computer and use it in GitHub Desktop.
Save Guidoom/90f2f79066fb20c93ac519ab33dafbb0 to your computer and use it in GitHub Desktop.
views/comm_help_view.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!--TREE VIEW-->
<record id="view_commhelp_tree" model="ir.ui.view">
<field name="name">pyth.community.help.tree</field>
<field name="model">pyth.community.help</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
</tree>
</field>
</record>
<!-- FORM VIEW -->
<record id="view_commhelp_form" model="ir.ui.view">
<field name="name">pyth.community.help.form</field>
<field name="model">pyth.community.help</field>
<field name="arch" type="xml">
<form string="Disciple">
<sheet>
<label for="name"/>
<h1>
<field name="name"/>
</h1>
<h3>Description</h3>
<field name="description"/>
<notebook>
<page string="Disciples">
<field name="disciple_ids"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- ACTION -->
<record model="ir.actions.act_window" id="pyth_commhelp_action">
<field name="name">Community Helps</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">pyth.community.help</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create"><strong> Community helps</strong> list.
</p>
</field>
</record>
<!-- MENUES -->
<!-- Action disciple menu-->
<menuitem id="pyth_commhelp_submenu" name="Comm. help"
action="pyth_commhelp_action"
parent="pyth_pythag_secondary_menu"/>
</data>
</odoo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment