- Is
library-app
a valid module name?
It is a technically valid name, so it could be used, but it does not comply with the code conventions for Odoo, so it shouldn't be used.
- Should a module define access control (ACL) for all Models defined in it?
Yes, as a general rule it should. Leaving a Model with no ACLs makes it inaccessible for the end users.
- Can we permit some users to only access a subset of the records in a Model?
Yes, Record Rules allow us to define a Domain filter, and assign it to security Groups. Users in those Groups will only be able to access the records matching the Domain filter.
- What is the difference between a relational field and other field types?
Relational fields store links to other records, not actual values like the other field types.
- What are the main view components used in an Odoo app?
The backend view layer includes menu items, window actions, and views. All these are defined using XML data files. Menu items are usually defined with <menuitem>
data elements, <action>
defines Window Actions, and <record model="ir.ui.view">
defines views.
- How are backend views defined?
A backend view is defined with an XML architecture declaring the structure of the elements it is composed of.
- Where should business logic be implemented in an Odoo app?
A module business logic should be implemented in the Model methods, using Python code.
- What is the web page templating engine used by Odoo?
For the website/frontend views, Odoo uses the QWeb, an XML-based template engine. It allows templates to be extended by other modules, just like what can be done with the backend views.