This module provides a solution to the problem of the interaction between 'readonly' attribute and 'on_change' attribute when used together. It allows saving onchange modifications to readonly fields.
Behavior: add readonly fields changed by on_change methods to the values passed to write or create. If readonly_by_pass is in the context and True then it will by pass readonly fields and save its data provide by onchange method.
This module changes the behaviour of Odoo by propagating on_change modifications to readonly fields to the backend create and write methods.
To change that behavior you have to set context on ur.actions.act_window:
This software and associated files (the "Software") may only be
(executed, modified, executed after modifications) if you have
valid license from the authors, typically via Odoo Apps,
or if you
received a written agreement from the authors of the
Software (see the
You may develop Odoo modules that use the Software as a library
by depending on it, importing it and using its
copying any source code or material from the
Software. You may distribute
those modules under the license of your
choice, provided that this
is compatible with the terms of
the Odoo Proprietary License (For
LGPL, MIT, or proprietary
licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell
copies of the
Software or modified copies of the Software.
The above copyright notice and this permission notice must be
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT
AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE,
FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE