- Odoo 11 Development Cookbook(Second Edition)
- Holger Brunn Alexandre Fayolle
- 43字
- 2021-06-25 22:48:50
Getting ready
We will reuse the my_module addon module from Chapter 4, Creating Odoo Addon Modules.
We expect it to contain at least the following:
from odoo import models, fields
class LibraryBook(models.Model):
_name = 'library.book'
name = fields.Char('Title', required=True)
date_release = fields.Date('Release Date')