Add sql_id method to Reference field and use it for index

issue11788
review447351003
This commit is contained in:
Cédric Krier committed 2022-10-12 08:25:20 +02:00
1 parent 7892f8ae56
commit 72fd407fdb
6 files changed
+18 -13

No files matched your search

+4
View File
@@ -684,6 +684,10 @@ Instance methods:
Same as :meth:`~Selection.translated` but for the translated name of the
target model.
.. method:: Reference.sql_id(column, Model)
Return the SQL expression that extract the record ID of the column.
Many2One
--------