Skip to content

Invalid example in Chapter 12 #15029

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions