Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typos on wiki 5.0/step10 #9

Open
pierre-malis-coopengo opened this issue Oct 28, 2019 · 0 comments
Open

typos on wiki 5.0/step10 #9

pierre-malis-coopengo opened this issue Oct 28, 2019 · 0 comments

Comments

@pierre-malis-coopengo
Copy link

There is quite a few typos on page 10,
especially regarding the classes definitions:

library.user:

checkouts = fields.One2Many('library.user.checkout', 'user', 'Checkouts')

library.user.checkout:

user = fields.Many2One('library.user', 'User', required=True,
    ondelete='CASCADE', select=True)
exemplary = fields.Many2One('library.book.exemplary', 'Exemplary',
    required=True, ondelete='CASCADE', select=True)

should be remplaced by this:

class User(ModelSQL, ModelView):
    'Library User'
    __name__ = 'library.user'

    checkouts = fields.One2Many('library.user.checkout', 'user', 'Checkouts')


class Checkout(ModelSQL, ModelView):
    'Checkout'
    __name__ = 'library.user.checkout'

    user = fields.Many2One('library.user', 'User', required=True,
        ondelete='CASCADE', select=True)
    exemplary = fields.Many2One('library.book.exemplary', 'Exemplary',
        required=True, ondelete='CASCADE', select=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant