From 773b98cfd7d609055505810ddeb45ca56f89dae9 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Wed, 2 Sep 2020 11:55:37 +0000 Subject: [PATCH] [FIX] core: documentation of flush() X-original-commit: 60c01cac4f272392cce534302f2ecba4918008d2 --- odoo/models.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/odoo/models.py b/odoo/models.py index 45e853486e3..c520a4f329c 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -5330,9 +5330,13 @@ Fields: @api.model def flush(self, fnames=None, records=None): - """ Process all the pending recomputations (or at least the given field - names `fnames` if present) and flush the pending updates to the - database. + """ Process all the pending computations (on all models), and flush all + the pending updates to the database. + + :param fnames (list): list of field names to flush. If given, + limit the processing to the given fields of the current model. + :param records (Model): if given (together with ``fnames``), limit the + processing to the given records. """ def process(model, id_vals): # group record ids by vals, to update in batch when possible