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.
104 lines
4.6 KiB
104 lines
4.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<template id="assets_backend" name="assets" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<link rel="stylesheet" href="/mail_wall_widgets/static/src/css/main.css"/>
|
|
<script type="text/javascript" src="/mail_wall_widgets/static/src/js/main.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<!-- Widget -->
|
|
<record id="mail_wall_widgets_widget_action" model="ir.actions.act_window">
|
|
<field name="name">Widgets</field>
|
|
<field name="res_model">mail.wall.widgets.widget</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to create a Widget.
|
|
</p>
|
|
<p>
|
|
Widget allows to show some information at the inbox
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mail_wall_widgets_list_view" model="ir.ui.view">
|
|
<field name="name">Widget list view</field>
|
|
<field name="model">mail.wall.widgets.widget</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Widgets">
|
|
<field name="name"/>
|
|
<field name="sequence"/>
|
|
<field name="domain"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="mail_wall_widgets_form_view" model="ir.ui.view">
|
|
<field name="name">Widget form view</field>
|
|
<field name="model">mail.wall.widgets.widget</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Widget">
|
|
<sheet>
|
|
<label for="name" class="oe_edit_only"/>
|
|
<h1>
|
|
<field name="name" class="oe_inline"/>
|
|
</h1>
|
|
|
|
<field name="type" class="oe_inline"/>
|
|
<label for="description" class="oe_edit_only"/>
|
|
<div>
|
|
<field name="description" class="oe_inline"/>
|
|
</div>
|
|
|
|
<group string="How to select records?">
|
|
|
|
<field name="model_id" class="oe_inline"/>
|
|
<field name="domain" />
|
|
<field name="won_domain" attrs="{'invisible':[('type', 'not in', ['funnel','slice'])]}" />
|
|
<field name="field_date_id"/>
|
|
<field name="start_date"/>
|
|
<field name="end_date"/>
|
|
</group>
|
|
<group string="How to select users?">
|
|
<field name="group_ids" class="oe_inline" widget="many2many_tags"/>
|
|
</group>
|
|
<group string="How show data?">
|
|
<field name="stage_field_id" attrs="{'invisible':[('type', 'not in', ['funnel'])]}"/>
|
|
<field name="value_field_id" class="oe_inline"/>
|
|
<field name="value_field_monetary" class="oe_inline"/>
|
|
<field name="precision" class="oe_inline"/>
|
|
<field name="content" attrs="{'invisible':[('type', 'not in', ['list'])]}"/>
|
|
<field name="limit" attrs="{'invisible':[('type', 'not in', ['list'])]}" class="oe_inline"/>
|
|
<field name="order" attrs="{'invisible':[('type', 'not in', ['list'])]}" class="oe_inline"/>
|
|
</group>
|
|
<group string="Other">
|
|
<field name="sequence" class="oe_inline"/>
|
|
<field name="active"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mail_wall_widgets_search_view" model="ir.ui.view">
|
|
<field name="name">Widget Search</field>
|
|
<field name="model">mail.wall.widgets.widget</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Widget">
|
|
<field name="name"/>
|
|
<field name="model_id"/>
|
|
<group expand="0" string="Group By">
|
|
<filter string="Model" domain="[]" context="{'group_by':'model_id'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- menus in settings - technical feature required -->
|
|
<menuitem id="mail_wall_widgets_widget_menu" parent="gamification.gamification_menu" action="mail_wall_widgets_widget_action" sequence="50"/>
|
|
|
|
</data>
|
|
</openerp>
|