Product seasonality

product_seasonality
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/14.0/product_seasonality
VERSION
VERSION 1.3.0
CATEGORY
CATEGORYOthers
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSIvàn Todorovich, OCA Transbot, jcoux, oca-travis, Weblate, OCA-git-bot, Simone Orsi
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
seasonal_config_line_view_form seasonal.config.line.form seasonal.config.line form New
seasonal_config_line_view_search seasonal.config.line.search seasonal.config.line search New
seasonal_config_line_view_tree seasonal.config.line.tree seasonal.config.line tree New
seasonal_config_view_tree seasonal.config.tree seasonal.config tree New
view_company_form res.company xpath Inherits base.view_company_form
view_partner_form res.partner group Inherits base.view_partner_form
view_seasonal_config_view_form seasonal.config.form seasonal.config form New
Models touched (4)

New fields (1)
  • default_seasonal_config_id Many2one → seasonal.config
    comodel_name='seasonal.config' string='Default product seasonal configuration'
Public methods (2)
  • create(self, vals)
    @api.model
  • write(self, vals)

New fields (1)
  • seasonal_config_id Many2one → seasonal.config
    comodel_name='seasonal.config' string='Product seasonal configuration'
Public methods (0)

No public methods.

New fields (2)
  • line_ids One2many → seasonal.config.line
    comodel_name='seasonal.config.line' copy=True inverse_name='seasonal_config_id' string='Lines'
  • name Char
    required=True
Public methods (1)
  • config_for_product(self, prod)
    Retrieve current configuration for given product.

New fields (13)
  • date_end Datetime
  • date_start Datetime
    required=True
  • display_name Char
    compute='_compute_display_name'
  • friday Boolean
    default=True
  • monday Boolean
    default=True
  • product_id Many2one → product.product
    comodel_name='product.product' domain="[('product_tmpl_id', '=', product_template_id)]" index=True
  • product_template_id Many2one → product.template
    comodel_name='product.template' domain=[('sale_ok', '=', True)] index=True required=True
  • saturday Boolean
    default=True
  • seasonal_config_id Many2one → seasonal.config
    comodel_name='seasonal.config' index=True required=True string='Product seasonal configuration'
  • sunday Boolean
    default=True
  • thursday Boolean
    default=True
  • tuesday Boolean
    default=True
  • wednesday Boolean
    default=True
Public methods (2)
  • find_for_product(self, prod, config=None)
  • is_sale_ok(self, date)