Odoo支持类似pur_line,sale_line这样短的数据表名吗?
-
大家好,我一直觉得Odoo的数据表名table name比传统习惯的长,如:purchase_order_line,sale_order_line,原以为这是Odoo的硬性规定,但现发现
“Odoo 10 Development Essentials”关于Model attributes有如下说明:
_table is the name of the database table supporting the model. Usually, it is left to be calculated automatically, and is the model name with the dots replaced by underscores. But it's possible to set to indicate a specific table name.
是不是可以理解为:其实Odoo也支持类似pur_line,sale_line这样短的数据表名呢?如果是的话,使用短的表名后,相关的.py及.xml文件需要作哪些方面的变更呢?请不惜赐教,感激! -
@digitalsatori 是的,明白了,感谢校长digitalsatori,总监mrshelly,谢谢!