Skip to content
Health
42/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 48 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 10.0

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

Security findings
Grave / minor (static analysis)
Required by
0
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.19 MB
Module directory on disk
Code analysis 4 migration notes 7 models 9 views 0 HTTP endpoints

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

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

Views touched 9

XML IDNameModelTypeStatus
assets assets ir.ui.view qweb Inherits point_of_sale.assets
assets_demo assets_demo ir.ui.view qweb Inherits point_of_sale.assets
loyalty_program_form_view loyalty.program.form loyalty.program form New
loyalty_program_tree_view loyalty.program.tree loyalty.program tree New
loyalty_reward_form_view loyalty.reward.form loyalty.reward form New
loyalty_rule_form_view loyalty.rule.form loyalty.rule form New
partner_property_form_view partner.property.form res.partner form Inherits point_of_sale.view_partner_property_form
pos_config_view_form pos.config.form pos.config form Inherits point_of_sale.pos_config_view_form
pos_order_form_view pos.order.form pos.order form Inherits point_of_sale.view_pos_pos_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (7)
  • name Char
    index=True required=True size=32 string='Loyalty Program Name'
  • pp_currency Float
    help='Amount of loyalty points given to the customer per sold currency' string='Points per currency'
  • pp_order Float
    help='Amount of loyalty points given to the customer for each point of sale order' string='Points per order'
  • pp_product Float
    help='Amount of loyalty points given to the customer per product sold' string='Points per product'
  • reward_ids One2many → loyalty.reward
    comodel_name='loyalty.reward' inverse_name='loyalty_program_id' string='Rewards'
  • rounding Float
    default=1 help='Loyalty point amounts will be rounded to multiples of this value' string='Points Rounding'
  • rule_ids One2many → loyalty.rule
    comodel_name='loyalty.rule' inverse_name='loyalty_program_id' string='Rules'
Public methods (0)

No public methods.

New fields (10)
  • discount Float
    help='The discount percentage'
  • discount_max Float
    help='Maximum discounted amount allowed forthis discount reward' string='Discount limit'
  • discount_product_id Many2one → product.product
    comodel_name='product.product' domain=[('available_in_pos', '=', True)] help='The product used to apply discounts' string='Discount Product'
  • gift_product_id Many2one → product.product
    comodel_name='product.product' domain=[('available_in_pos', '=', True)] help='The product given as a reward' string='Gift Product'
  • loyalty_program_id Many2one → loyalty.program
    comodel_name='loyalty.program' help='The Loyalty Program this reward belongs to' string='Loyalty Program'
  • minimum_points Float
    help='Minimum amount of points the customer must have to qualify for this reward' string='Minimum Points'
  • name Char
    index=True required=True size=32 string='Reward Name'
  • point_cost Float
    help='Cost of the reward per monetary unit discounted' string='Point Cost'
  • point_product_id Many2one → product.product
    comodel_name='product.product' domain=[('available_in_pos', '=', True)] help='Product that represents a point that is sold by the customer' string='Point Product'
  • type Selection
    help='Type of the reward' required=True selection=[('gift', 'Gift'), ('discount', 'Discount'), ('resale', 'Resale')] string='Type'
Public methods (0)

No public methods.

New fields (8)
  • category_id Many2one → pos.category
    comodel_name='pos.category' help='The category affected by this rule' string='Target Category'
  • cumulative Boolean
    help='The points from this rule will be added to points won from other rules with the same concept'
  • loyalty_program_id Many2one → loyalty.program
    comodel_name='loyalty.program' help='The Loyalty Program this rule belongs to' string='Loyalty Program'
  • name Char
    index=True required=True size=32 string='Rule Name'
  • pp_currency Float
    help='Amount of points earned per currency' string='Points per currency'
  • pp_product Float
    help='Amount of points earned per product' string='Points per product'
  • product_id Many2one → product.product
    comodel_name='product.product' domain=[('available_in_pos', '=', True)] help='The product affected by this rule' string='Target Product'
  • type Selection
    default='product' help='The concept this rule applies to' required=True selection=[('product', 'Product'), ('category', 'Category')] string='Type'
Public methods (0)

No public methods.

New fields (1)
  • loyalty_id Many2one → loyalty.program
    comodel_name='loyalty.program' help='The loyalty program used by this Point of Sale' string='Loyalty Program'
Public methods (0)

No public methods.

New fields (1)
  • loyalty_points Float
    help='The amount of Loyalty points awarded to the customer with this order' string='Loyalty Points'
Public methods (1)
  • create_from_ui(self, orders)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • loyalty_points Float
    help='The loyalty points the user won as part of a Loyalty Program' string='Loyalty Points'
Public methods (0)

No public methods.

Loading…