blob: 82790bdd59e85f84692f80836e748bdc23f5bc0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _
class LinkTracker(models.Model):
_inherit = ['link.tracker']
def action_visit_page_statistics(self):
return {
'name': _("Visit Webpage Statistics"),
'type': 'ir.actions.act_url',
'url': '%s+' % (self.short_url),
'target': 'new',
}
|