Odoo new API guideline
latest
Record/Recordset and Model
Environment
Common Actions
Using Cursor
Using Thread
New ids
Fields
Method and decorator
Introspection
Conventions
Compatibility
Unittest
YAML
Odoo new API guideline
Docs
»
Welcome to Odoo new API guideline’s
Edit on GitHub
Welcome to Odoo new API guideline’s
¶
Overview
Record/Recordset and Model
Model
Inheritance
Recordset
Supported Operations
Useful helpers
The ids Attribute
Record
Displayed Name of Record
Active Record Pattern
Active Record Pattern Be Careful
Chain of Browse_null
Environment
Modifing Environment
Changing User
Accessing Current User
Fetching record using XML id
Cleaning Environment Caches
Common Actions
Searching
search
search_read
search_count
Browsing
Writing
Using Active Record pattern
From Record
From RecordSet
Many2many One2many Behavior
Copy
From Record
From RecordSet
Create
Dry run
Using Cursor
Using Thread
New ids
Fields
Field inheritance
Field types
Boolean
Char
Text
HTML
Integer
Float
Date
DateTime
Binary
Selection
Reference
Many2one
One2many
Many2many
Name Conflicts
Fields Defaults
Computed Fields
Inverse
Multi Fields
Related Field
Property Field
WIP copyable option
Method and decorator
@api.returns
@api.one
@api.multi
@api.model
@api.constrains
@api.depends
View management
@api.onchange
View management
Warning and Domain
@api.noguess
Introspection
Conventions and code update
Conventions
Snake_casing or CamelCasing
Imports
Model
Fields
Translation
API
Exceptions
Classes
New Exceptions classes
RedirectWarning
AccessDenied
AccessError
class MissingError:
DeferredException:
Compatibility
Fields
Default or compute
Modifing self in method
Doing thing in dry run
Using Cursor
Displayed Name
Constraints
Qweb view or not Qweb view
Javascript and Website related code
Compatibility
Access old API
How to be polite with old code base
Unittest
YAML
Indices and tables
¶
Index
Module Index
Search Page
Read the Docs
v: latest
Versions
latest
master
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.