Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: PMS - Sale

Entity: pms.property.reservation

Compute Method: _compute_price

Inputs Method Outputs
for rec in self:
            if rec.product_id and rec.product_id.lst_price:
                rec.price = rec.product_id.lst_price or 0
            elif not rec.price:
                rec.price = 0

Back to entity