Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Discuss
Entity: discuss.call.history
Compute Method: _compute_duration_hour
| Inputs | Method | Outputs |
|---|---|---|
|
+ for record in self: + end_dt = record.end_dt or fields.Datetime.now() + record.duration_hour = (end_dt - record.start_dt).total_seconds() / 3600 |
|
