Website Product Document Download Counter

website_product_document_download_counter
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/18.0/website_product_document_download_counter
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWebsite
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix OÜ
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix OÜ
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Omar Diaz
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_sale
    - website
    - digest
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - social_media
    - google_recaptcha
    - utm
    - sale
    - sales_team
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - payment
    - website_payment
    - website_mail
    - portal_rating
    - rating
    - delivery
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES geoip2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows you to track how many times product-related documents
are downloaded from the Odoo website.

Main features:

- Automatic logging of the number of downloads for documents attached to products.
- View download statistics per product.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_document_form_inherit product.document.form.inherit.download_counter product.document xpath Inherits website_sale.product_document_form
product_document_kanban_inherit product.document.kanban.inherit.download_counter product.document xpath Inherits website_sale.product_document_kanban
product_documents_custom product_documents_custom ir.ui.view qweb Inherits website_sale.product
Models touched (1)

New fields (2)
  • download_count Integer
    copy=False default=0 help='Number of times this document has been downloaded' readonly=True
  • download_count_enabled Boolean
    copy=False help='Enable download counting for this document when published on website'
Public methods (1)
  • increment_download_count(self)
    Increment the download count for a specific product document. Caller must ensure appropriate permissions (e.g. via sudo()).