From c38f44dc10fe0d5ae2c220fb97d82473656501ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 4 Jul 2023 18:39:28 +0200 Subject: [PATCH] Document on_change methods under ModelView instead of Model (grafted from a379ef0e1567383579001994c4c11f9cd711ad62) --HG-- branch : 6.0 --- trytond/doc/ref/models/models.rst | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/trytond/doc/ref/models/models.rst b/trytond/doc/ref/models/models.rst index 25fe8958a4..6c3320fbee 100644 --- a/trytond/doc/ref/models/models.rst +++ b/trytond/doc/ref/models/models.rst @@ -92,15 +92,6 @@ Class methods: Instance methods: -.. method:: Model.on_change(fieldnames) - - Returns the list of changes by calling ``on_change`` method of each field. - -.. method:: Model.on_change_with(fieldnames) - - Returns the new values of all fields by calling ``on_change_with`` method of - each field. - .. method:: Model.pre_validate() This method is called by the client to validate the instance. @@ -193,6 +184,17 @@ Class methods: This method is public mainly to allow modification the existing XML of the view by code. +Instance methods + +.. method:: Model.on_change(fieldnames) + + Returns the list of changes by calling ``on_change`` method of each field. + +.. method:: Model.on_change_with(fieldnames) + + Returns the new values of all fields by calling ``on_change_with`` method of + each field. + ============ ModelStorage ============