Skip to content
Health
82/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 6 months ago
  • Required by20/25
    3 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 4 models 2 views 0 HTTP endpoints

Description

This module extends the functionality of the sale_loyalty wizard by giving hints of available promotions and products needed to apply them to the seller placing the sales order. A product added to the lines of a sales order will be marked with a gift icon if there is a promotion containing that product as part of its rules.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
sale_loyalty_reward_wizard_view_form_suggestion sale.loyalty.reward.wizard form Inherits sale_loyalty.sale_loyalty_reward_wizard_view_form
view_order_form sale.order form Inherits sale.view_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (4)
  • applicable_program Boolean
    compute='_compute_applicable_promotion' default='True'
  • loyalty_rule_line_description Html
    compute='_compute_loyalty_rule_line_description'
  • loyalty_rule_line_ids One2many → sale.loyalty.rule.product_line.wizard
    comodel_name='sale.loyalty.rule.product_line.wizard' compute='_compute_loyalty_rule_line_ids' inverse_name='wizard_id' readonly=False store=True string='Loyalty Rule Lines'
  • product_id Many2one → product.product
    args: 'product.product'
Public methods (1)
  • action_apply(self)

New fields (10)
  • company_id Many2one
    related='order_id.company_id'
  • currency_id Many2one
    related='order_id.currency_id'
  • order_id Many2one
    related='wizard_id.order_id' store=True
  • price_unit Float
    compute='_compute_price_unit' string='Unit Price'
  • pricelist_id Many2one
    related='wizard_id.order_id.pricelist_id'
  • product_id Many2one → product.product
    comodel_name='product.product'
  • units_included Float
    string='Included units'
  • units_required Float
    string='Required units'
  • units_to_include Float
    string='Units to include'
  • wizard_id Many2one → sale.loyalty.reward.wizard
    comodel_name='sale.loyalty.reward.wizard'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • suggested_promotion_ids Many2many → loyalty.program
    comodel_name='loyalty.program' compute='_compute_suggested_promotion_ids'
  • suggested_promotions Boolean
    compute='_compute_suggested_promotion_ids' default=False
  • suggested_reward_ids Many2many → loyalty.reward
    comodel_name='loyalty.reward' compute='_compute_suggested_promotion_ids'
Public methods (0)

No public methods.

Loading…

Loading…