Skip to content
Snippets Groups Projects
Commit 5aee7fe3 authored by Munaf Khan's avatar Munaf Khan Committed by Dharmraj Jhala
Browse files

[FIX] link_tracker: allow link tracker creation

Since v14 (with commit[1]), we prevented users from creating 'link.tracker'
and 'link.tracker.click' records.

This is not ideal because creation of the link trackers should be allowed
whenever needed (for example to add it in a button somewhere, ...) unlike
'link.tracker.click', which is a technical model and so the records should
always be created by system.

This commit partially reverts commit[1] and allows users to create the
'link.tracker' records if user is having enough access rights.

commit[1] - https://github.com/odoo/odoo/commit/d43082233dda770a298e9ed321a792740d4deaa4



TaskId- 2712107

closes odoo/odoo#81279

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 22973021
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@
<field name="name">link.tracker.view.form</field>
<field name="model">link.tracker</field>
<field name="arch" type="xml">
<form string="Website Link" duplicate="0" create="0">
<form string="Website Link" duplicate="0">
<sheet>
<div class="oe_button_box" name="button_box">
<button type="object" icon="fa-sign-out" name="action_visit_page"
......@@ -58,7 +58,7 @@
<field name="name">link.tracker.view.tree</field>
<field name="model">link.tracker</field>
<field name="arch" type="xml">
<tree string="Links" sample="1" create="0">
<tree string="Links" sample="1">
<field name="create_date"/>
<field name="title"/>
<field name="label"/>
......
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