Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: In-App Purchase
Entity: iap.service.pack
Compute Method: _compute_display_name
| Inputs | Method | Outputs |
|---|---|---|
|
+ for pack in self: + credit = round(pack.credit, None if pack.service_id.integer_balance else 4) + pack.display_name = f"{pack.name} - {credit} {pack.service_id.unit_name} ({pack.price} EUR)" |
|
