diff options
| author | Jerther <jerther@gmail.com> | 2018-03-16 07:57:16 -0400 |
|---|---|---|
| committer | Martin Trigaux <564822+mart-e@users.noreply.github.com> | 2018-03-16 12:57:16 +0100 |
| commit | 0ee76b664c7413a5302aeeeb9118df171a61a09f (patch) | |
| tree | bc6102254474b0d7d742ddf7d2ca3108cfb97015 /doc | |
| parent | c4a11cb42a4a3f3f49c2024fb2b081d638e383b0 (diff) | |
[IMP] doc: add a tip to create a model without any table
As explained in #17386, _auto=False on a model is used for report where the
table is explicitely created in init method.
To create a model without any table, AbstractModel should be used.
Closes #19448
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/reference/orm.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst index 00b284f9cb2..bec009411b7 100644 --- a/doc/reference/orm.rst +++ b/doc/reference/orm.rst @@ -630,6 +630,9 @@ Model Reference If set to ``False``, override :meth:`.init` to create the database table + + .. tip:: To create a model without any table, inherit + from ``odoo.models.AbstractModel`` .. attribute:: _table |
