Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: eLearning
Entity: slide.channel.partner
Compute Method: _compute_completion_date
| Inputs | Method | Outputs |
|---|---|---|
|
+ """ Set the completion date to the current date when it gets completed and resets the completion date when it's + set again to incomplete (member_status != 'completed') so that completion date represents the date of completion + and is coherent with the "member_status" field. """ + for record in self: + completed = record.member_status == 'completed' + if not record.completion_date: + if completed: + record.completion_date = fields.Datetime.now() + elif not completed: + record.completion_date = None |
|
