From 87540ef0e8c026dc271ecd5a918e3c70fb0658d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 20 Jun 2016 14:37:30 +0200 Subject: [PATCH] Add warning about Function.setter instances not saved issue5651 review28321002 --- doc/ref/models/fields.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/ref/models/fields.rst b/doc/ref/models/fields.rst index 8139c6272e..02232acf56 100644 --- a/doc/ref/models/fields.rst +++ b/doc/ref/models/fields.rst @@ -727,10 +727,13 @@ A function field can emulate any other given `field`. the value. The signature of the method id:: - setter(ids, name, value) + setter(instances, name, value) where `name` is the name of the field and `value` the value to set. +.. warning:: + The modifications made to instances will not be saved automatically. + .. attribute:: Function.searcher The name of the classmethod of the :class:`~trytond.model.Model` to search