flectra/addons/website_links/views/link_tracker.xml
2018-01-17 12:10:36 +05:30

36 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<!-- Website links views -->
<record id="view_link_tracker_form_inherit" model="ir.ui.view">
<field name="name">link.tracker.form.inherit</field>
<field name="model">link.tracker</field>
<field name="inherit_id" ref="link_tracker.view_link_tracker_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='source_id']" position="after">
<field name="website_id"/>
</xpath>
</field>
</record>
<record id="view_link_tracker_filter" model="ir.ui.view">
<field name="name">view.link.tracker.filter</field>
<field name="model">link.tracker</field>
<field name="arch" type="xml">
<search string="Search Link Tracker">
<separator/>
<filter name="website_id" string="Website"
context="{'group_by':'website_id'}"/>
</search>
</field>
</record>
<!-- Action for website links-->
<record model="ir.actions.act_window" id="link_tracker.action_link_tracker">
<field name="name">Link Tracker</field>
<field name="res_model">link.tracker</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,graph</field>
<field name="search_view_id" ref="view_link_tracker_filter"/>
</record>
</flectra>