Skip to content
Snippets Groups Projects
Commit 22a37f207879 authored by Anael Lorimier's avatar Anael Lorimier
Browse files

Correct xml, Add variable in campaign_real_url

parent b4cf95af99a4
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@
),
'real_url': fields.char('Real URL', size=255),
'clicks': fields.integer('Clicks'),
'clicker': fields.integer('Clicker'),
'timedate': fields.integer('Timedate'),
}
class analytic(osv.Model):
......@@ -46,7 +48,7 @@
campaign_real_url_osv.unlink(cr, uid, campaign_real_url_ids, context=context)
def count_real_url(self, cr, uid, campaign_id, context=None):
trackitem_osv = self.pool.get('marketing_campaign_tracker.trackitem')
trackvisit_osv = self.pool.get('marketing_campaign_tracker.trackitem')
trackitem_ids = trackitem_osv.search(cr, uid,
[('campaign_id', '=', campaign_id)],
context=context)
......
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- URL Most Click Graph -->
<record id="view_marketing_campaign_tracker_analytic_graph" model="ir.ui.view">
<field name="name">URL Most Clicked - Graph</field>
<field name="model">marketing_campaign_tracker.campaign_real_url</field>
......@@ -20,6 +23,7 @@
<field name="view_id" ref="view_marketing_campaign_tracker_analytic_graph"/>
</record>
<!-- Top Clickers Graph-->
<record id="view_marketing_campaign_tracker_top_clickers_graph" model="ir.ui.view">
<field name="name"> Top Clickers - Graph</field>
......@@ -40,6 +44,7 @@
<field name="view_id" ref="view_marketing_campaign_tracker_top_clickers_graph"/>
</record>
<!-- All Click By Timer Graphs -->
<record id="view_marketing_campaign_tracker_all_click_by_time_graph" model="ir.ui.view">
<field name="name"> All Click By-Time - Graph</field>
......@@ -60,6 +65,7 @@
<field name="view_id" ref="view_marketing_campaign_tracker_all_click_by_time_graph"/>
</record>
<!-- Top URL By Time Graph -->
<record id="view_marketing_campaign_tracker_top_url_by_time_graph" model="ir.ui.view">
<field name="name"> Top URL By-Time - Graph</field>
......@@ -92,6 +98,9 @@
<board style= "1-1">
<column>
<action string="URL Most Clicked" name="%(action_marketing_campaign_tracker_analytic)d"/>
<action string="Top Clickers" name="%(action_marketing_campaign_top_clickers)d"/>
<action string="Clicks By Time" name="%(action_marketing_campaign_tracker_all_click_by_time)d"/>
<action string="Top Url By Time" name="%(action_marketing_campaign_tracker_top_url_by_time)d"/>
</column>
</board>
</form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment