summaryrefslogtreecommitdiff
path: root/addons/link_tracker/models/utm.py
AgeCommit message (Collapse)Author
2020-03-24[MOV] link_tracker, various: more link shortening tools to mail.render.mixinThibault Delavallée
PURPOSE Move links shortening tools on mail.render.mixin to have rendering and post procesing tools available on that mixin. SPECIFICATIONS Move html and text links shortening methods on mail.render.mixin class. That way rendering and post processing is done in that mixin instead of being specific to link.tracker model. Indeed those methods are tools and not really business related methods. Future commits will improve the way mail and sms composer use the render mixin. This commit is therefore both a cleaning and preparing commit. LINKS Task ID 1963529 Community PR odoo/odoo#32397
2019-09-20[IMP] utm, mass_mailing: clean utm.campaign model, form view and stat buttonsqmo-odoo
This commit cleans up the utm.campaign form view: * Don't display mailing related things if no mailings on the campaign or if the campaigns were not activated in mass_mailing settings; * Stat button for the mass mailings was wrong, it was displaying the number of mails instead of the number of mailings; * Remove unused global click ratio field all other fields/methods related to its computation; * Remove ab testing cta on campaign form; * Add groups on mailing related fields to avoid access errors; LINKS Task ID 2074813 (FP request UTM refactor) PR: #37185
2019-09-20[IMP] link_tracker: add global click count on campaignqmo-odoo
Having a global click ratio on the campaign was pointless considering the nature of the social.app and its posts. Therefore, we decided to have a global click count which gives a better idea of the popularity of the campaign itself. Task ID 2074813 (FP request UTM refactor) PR: #37185
2019-08-20[IMP] models: ORM speedupRaphael Collet
This branch is the combination of several optimizations in the ORM: * store field values once in the cache: the cache reflects more faithfully the database, only fields that explicitly depend on the context have an extra indirection in the cache; * delay recomputations by default: use method `recompute` to explicitly flush out pending recomputations; * delay updates in method `write`: updates are stored in a data structure that can be flushed efficiently to the database with method `flush` (which also flush out recomputations); * make method `modified` take advantage of inverse fields to inverse dependencies; * filter records by evaluating a domain on records in Python; * a computed field with `readonly=False` behaves like a normal field with an onchange method; * computed fields are computed in superuser mode by default. Work done by Toufik Ben Jaa, Raphael Collet, Denis Ledoux and Fabien Pinckaers. closes odoo/odoo#35659 Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
2019-08-02[REF] utm,mass_mailing: replace mass mailing campaign by utm campaignqmo-odoo
PURPOSE This commit removes the mass_mailing.campaign model. Instead of having a fully fledged model, we will simply inherit utm.campaign. We will also add relevant statistics on utm campaign model in order to use it in various applications. SPECIFICATIONS This commit removes the mass_mailing.campaign model. Instead of having a fully fledged model, we will simply inherit utm.campaign. This change implies that mass_mailing.tag and mass_mailing.stage have to move to the utm model along their associated views/data. These changes were made so that campaigns could be used in the future by social, mass_mailing and mass_sms and available in the same view This commit also removes the source_id and the medium_id fields on the campaign. This commit also moves the unique_ab_testing field from the mass_mailing_campaign to the mass_mailing model Task ID: 2002029 PR: #34015