Loyalty Program
pos_loyalty · OCA/pos
Replaces
pos_coupon, pos_gift_card (16.0)OCA/pos 10.0–11.0 → odoo/odoo 16.0–20.0
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 48 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
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
Migration considerations
LoyaltyReward— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceloyalty_program_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceloyalty_reward_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceloyalty_rule_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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)
-
nameCharindex=Truerequired=Truesize=32string='Loyalty Program Name' -
pp_currencyFloathelp='Amount of loyalty points given to the customer per sold currency'string='Points per currency' -
pp_orderFloathelp='Amount of loyalty points given to the customer for each point of sale order'string='Points per order' -
pp_productFloathelp='Amount of loyalty points given to the customer per product sold'string='Points per product' -
reward_idsOne2many → loyalty.rewardcomodel_name='loyalty.reward'inverse_name='loyalty_program_id'string='Rewards' -
roundingFloatdefault=1help='Loyalty point amounts will be rounded to multiples of this value'string='Points Rounding' -
rule_idsOne2many → loyalty.rulecomodel_name='loyalty.rule'inverse_name='loyalty_program_id'string='Rules'
No public methods.
New fields (10)
-
discountFloathelp='The discount percentage' -
discount_maxFloathelp='Maximum discounted amount allowed forthis discount reward'string='Discount limit' -
discount_product_idMany2one → product.productcomodel_name='product.product'domain=[('available_in_pos', '=', True)]help='The product used to apply discounts'string='Discount Product' -
gift_product_idMany2one → product.productcomodel_name='product.product'domain=[('available_in_pos', '=', True)]help='The product given as a reward'string='Gift Product' -
loyalty_program_idMany2one → loyalty.programcomodel_name='loyalty.program'help='The Loyalty Program this reward belongs to'string='Loyalty Program' -
minimum_pointsFloathelp='Minimum amount of points the customer must have to qualify for this reward'string='Minimum Points' -
nameCharindex=Truerequired=Truesize=32string='Reward Name' -
point_costFloathelp='Cost of the reward per monetary unit discounted'string='Point Cost' -
point_product_idMany2one → product.productcomodel_name='product.product'domain=[('available_in_pos', '=', True)]help='Product that represents a point that is sold by the customer'string='Point Product' -
typeSelectionhelp='Type of the reward'required=Trueselection=[('gift', 'Gift'), ('discount', 'Discount'), ('resale', 'Resale')]string='Type'
No public methods.
New fields (8)
-
category_idMany2one → pos.categorycomodel_name='pos.category'help='The category affected by this rule'string='Target Category' -
cumulativeBooleanhelp='The points from this rule will be added to points won from other rules with the same concept' -
loyalty_program_idMany2one → loyalty.programcomodel_name='loyalty.program'help='The Loyalty Program this rule belongs to'string='Loyalty Program' -
nameCharindex=Truerequired=Truesize=32string='Rule Name' -
pp_currencyFloathelp='Amount of points earned per currency'string='Points per currency' -
pp_productFloathelp='Amount of points earned per product'string='Points per product' -
product_idMany2one → product.productcomodel_name='product.product'domain=[('available_in_pos', '=', True)]help='The product affected by this rule'string='Target Product' -
typeSelectiondefault='product'help='The concept this rule applies to'required=Trueselection=[('product', 'Product'), ('category', 'Category')]string='Type'
No public methods.
New fields (1)
-
loyalty_idMany2one → loyalty.programcomodel_name='loyalty.program'help='The loyalty program used by this Point of Sale'string='Loyalty Program'
No public methods.
New fields (1)
-
loyalty_pointsFloathelp='The amount of Loyalty points awarded to the customer with this order'string='Loyalty Points'
-
create_from_ui(self, orders)@api.model
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
loyalty_pointsFloathelp='The loyalty points the user won as part of a Loyalty Program'string='Loyalty Points'
No public methods.
Loading…