From 17fb714e38eb521c971d7f86b9bde71c8a865915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 17 Aug 2024 17:48:12 +0200 Subject: [PATCH] Document that getter function is called with the record context --- trytond/doc/ref/fields.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trytond/doc/ref/fields.rst b/trytond/doc/ref/fields.rst index 3e95a2b0b3..b651806e02 100644 --- a/trytond/doc/ref/fields.rst +++ b/trytond/doc/ref/fields.rst @@ -1099,6 +1099,11 @@ Function where ``name`` is the name of the field, and it must return the value. +.. note:: + + The getter function is called with the + :attr:`~trytond.model.ModelStorage._context` of the instances. + .. attribute:: Function.setter The name of the classmethod of the :class:`~trytond.model.Model` to set the