Monday, December 31, 2018
1 change · master
Resolved issues and error corrections
This fix ensures link tracking records cannot be duplicated when they have the same URL and campaign details. It helps keep marketing tracking data cleaner and more reliable by enforcing the intended uniqueness rule.
Original PR description
Description of the issue/feature this PR addresses: In module `link.tracker`, a `_sql_constraints` definition is wrongly written as `sql_constraints`. This typo is causing the constraint `'unique (url, campaign_id, medium_id, source_id)'` not being applied on model `link.tracker`. Current behavior before PR: The sql constraint `'unique (url, campaign_id, medium_id, source_id)'` has no effect. Desired behavior after PR is merged: The sql constraint `'unique (url, campaign_id, medium_id, source_id)'` is applied. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr