![]() I removed the dot notation in the "_name" variable for the example model. AKA, "test.model" is now named "test_model". Dot notation implies a data structure relationship between a <model> and it's parent (or class etc) <test> (like test.model() or Test.model). There is no relationship like this between a <test> and <model> - it's just one thing: a <test model>. The seeming "benefit" of the ORM translating dots to underscores doesn't justify this naming convention. Yes, I know it's a string, but still, this seems confusing for newbies and adds unnecessary complexity (why name the same thing differently in different places?) closes odoo/documentation#5131 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> |
||
---|---|---|
.. | ||
administration | ||
applications | ||
contributing | ||
developer | ||
legal | ||
services/support | ||
administration.rst | ||
applications.rst | ||
contributing.rst | ||
developer.rst | ||
index.rst | ||
last_build.rst | ||
legal.rst |