Skip to content

Invalid example in Chapter 12 #15029

@eximius313

Description

@eximius313

Chapter 12 gives example:

Image

which links to this code:

Image

but it throws exception:

prop = self.env['estate_property'].browse(vals_list['property_id'])
~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions