Skip to content
Snippets Groups Projects
Commit 7fa2a3de authored by Luis González's avatar Luis González Committed by Andrea Grazioso (agr-odoo)
Browse files

[FIX] link_tracker: Filter by tracked URL code is not working


When trying to filter links by a tracked URL code, the following warning
is shown:

    WARNING dbname odoo.models: Cannot execute name_search, no _rec_name
	defined on link.tracker.code

and the applied filter gives all records.

closes odoo/odoo#71376

X-original-commit: 3687dabbc373e57e24ca4596c18ef1dacfde8273
Signed-off-by: default avataragr-odoo <agr-odoo@users.noreply.github.com>
parent d9b79448
Branches
Tags
No related merge requests found
......@@ -196,6 +196,7 @@ class LinkTracker(models.Model):
class LinkTrackerCode(models.Model):
_name = "link.tracker.code"
_description = "Link Tracker Code"
_rec_name = 'code'
code = fields.Char(string='Short URL Code', required=True, store=True)
link_id = fields.Many2one('link.tracker', 'Link', required=True, ondelete='cascade')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment