Conventions used
There are a number of text conventions used throughout this book.
Code in text
: 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: “Given that book
is a browse record, we can simply recycle the first example’s function by passing book.id
as a book_id
parameter to give out the same content.”
A block of code is set as follows:
@http.route('/my_library/books/json', type='json', auth='none') def books_json(self): records = request.env['library.book'].sudo().search([]) return records.read(['name'])
Any command-line input or output is written as follows:
$ ./odoo-bin -d mydb --i18n-export=mail.po --modules=mail $ mv mail.po ./addons/mail/i18n/mail.pot
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Another important usage is providing demonstration data, which is loaded when the database is created with the Load demonstration data checkbox checked.”
Tips or import ant notes
Appear like this.