NeoVe
NeoVe

Reputation: 3907

models.Model_memory Odoo v8 to Odoo v10 community

I want to know, since I've never seen this type of model before models.Model_memory

How can it be translated into new Odoo v10 API?

Should it be models.TransientModel?

EDIT

This is the method where models.Model_memory is is used:

class FiscalBookWizard(models.Model_memory):

"""
Sales book wizard implemented using the osv_memory wizard system
"""
    _name = "fiscal.book.wizard"

Upvotes: 0

Views: 607

Answers (1)

simahawk
simahawk

Reputation: 2431

Since v9 wizards must be implemented with models.TransientModel.

In v9 osv_memory works because of backward compat, but is deprecated.

See official docs.

Upvotes: 1

Related Questions