![]() 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#5135
X-original-commit:
|
||
---|---|---|
.. | ||
dashboards | ||
getting_started | ||
pdf_reports | ||
restrict_data_access | ||
web | ||
website | ||
backend.rst | ||
dashboards.rst | ||
define_module_data.rst | ||
getting_started.rst | ||
mixins.rst | ||
pdf_reports.rst | ||
restrict_data_access.rst | ||
unit_tests.rst | ||
web.rst | ||
website.rst |