Odoo: Annotations in methods doesn't supported

Created on 4 Mar 2019  路  1Comment  路  Source: odoo/odoo

Impacted versions: 12.0

Steps to reproduce: add annotations for method decorated with any @api....

Current behavior:

ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

Expected behavior: Will work, because of Python 3.5 support annotations

Framework Wishlist

Most helpful comment

This is not Python 3.5, but ORM framework, and in ORM framework, that feature is not supported yet.

@rco-odoo do you plan to add support?

>All comments

This is not Python 3.5, but ORM framework, and in ORM framework, that feature is not supported yet.

@rco-odoo do you plan to add support?

Was this page helpful?
0 / 5 - 0 ratings