Odoo Database Table Naming Quirk
Jeevachaithanyan Sivanandan

Jeevachaithanyan Sivanandan @jeevanizm

About: Software Engineer / Frontend Developer / Full Stack Developer - writes about JavaScript, Php, Python and more

Location:
United Kingdom
Joined:
Oct 8, 2023

Odoo Database Table Naming Quirk

Publish Date: May 30
1 0

In Odoo, database table names typically follow a straightforward convention: they are the underscored (_) version of the model name as seen in the user interface. For example, the sale.order model corresponds to the sale_order table. However, this pattern isn't always consistent. For instance, you might expect the ir.action.server model to map to the ir_action_server table, but the actual table name is ir_act_server.

This subtle naming quirk can be easy to overlook and may cause confusion when working with Odoo's database. I hope sharing this saves you time if you encounter a similar situation!

Comments 0 total

    Add comment