There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system."
A block of code is set as follows:
{ 'name': "My library", 'summary': "Manage books easily", 'description': """Long description""", 'author': "Your name", 'website': "http://www.example.com", 'category': 'Uncategorized', 'version': '12.0.1', 'depends': ['base'], 'data': ['views.xml'], 'demo': ['demo.xml'], }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
from odoo import models, fields class LibraryBook(models.Model): _name = 'library.book' name = fields.Char('Title', required=True) date_release = fields.Date('Release Date')
author_ids = fields.Many2many(
'res.partner',
string='Authors'
)
Any command-line input or output is written as follows:
$ sudo apt-get update
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Odoo has special support for monetary values related to a currency."