From d650d93a69c11cb6e3c4566ce2a9c3e85a343b49 Mon Sep 17 00:00:00 2001 From: Pierre Verkest Date: Tue, 14 Jul 2015 14:05:31 +0200 Subject: [PATCH] document readonly_by_pass --- web_readonly_bypass/README.rst | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/web_readonly_bypass/README.rst b/web_readonly_bypass/README.rst index bf9c034f..79815358 100644 --- a/web_readonly_bypass/README.rst +++ b/web_readonly_bypass/README.rst @@ -9,8 +9,8 @@ This module provides a solution to the problem of the interaction between saving onchange modifications to readonly fields. Behavior: add readonly fields changed by `on_change` methods to the values -passed to write or create. If `filter_out_readonly` is in the context and -True then apply native behavior. +passed to write or create. If `readonly_by_pass` is in the context and +True then by pass readonly fields and save its change. Installation ============ @@ -25,11 +25,23 @@ There is nothing to configure. Usage ===== -This module changes the default behaviour of Odoo by propagating +This module changes the behaviour of Odoo by propagating on_change modifications to readonly fields to the backend create and write methods. -To restore the standard behaviour, set `filter_out_readonly` in the context. +To change that behavior you have to set context on ``ur.actions.act_window``:: + + + {'readonly_by_pass': True} + + +or by telling fields allow to change:: + + + + {'readonly_by_pass': ['readonly_field_1', 'readonly_field_2',]} + + For further information, please visit: @@ -38,7 +50,9 @@ For further information, please visit: Known issues / Roadmap ====================== -None + * At this point, bypass on a field on o2m field (like field on sale order line) + are not working, because context from action is not take on consideration + when loosing focus on the line in the ``BufferedDataSet`` js Class. Bug Tracker ===========