Odoo 11 Development Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

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')