Skip to content

What is the alternative of in Odoo 13?

Right now when I started coding on Odoo v13 I found that Odoo has been removed

What is the alternative of the in Odoo v13 ?



In odoo13 by default instance method will accept self as multi instance (multi-recordset).

So for instance method, you should remove the and @api.multi decorator from your methods.

For a single instance(single recordset), you still can check with self.ensure_one() or you can apply your own logic.