Files
odoo_source/addons/mail/static
Alexandre Kühn 78fcad9176 [FIX] mail: properly type static methods of discuss models
Before this commit, static methods on discuss models like `.get()`
or `.new()` where not properly documented.

The superclass `Record` documents `@returns`, but jsdoc failed to
deduce these static methods return subclass instances. We tried to
find a way to define things once in `Record` and let typedoc deduce
things automatically without overriding in each models just for the
sake of type. However typedoc still sucks in 2023 despite requests
for improvements to support this specific case since 2016, 7 years
ago.

This commit fixes the issue by overriding static method in all discuss
models so that the `@returns` is properly documented.

closes odoo/odoo#134316

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-09-06 05:53:46 +00:00
..
…