Read Only ByPass
by ACSONE SA/NV http://www.acsone.eu , Odoo Community Association (OCA) http://www.acsone.euAvailability |
Odoo Online
Odoo.sh
On Premise
|
Technical Name |
web_readonly_bypass |
License | LGPL-3 |
Website | http://www.acsone.eu |
Versions | 10.0 8.0 9.0 |
Read Only ByPass
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.
Usage
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 ir.actions.act_window:
<record id="sale.action_quotations" model="ir.actions.act_window"> <field name="context">{'readonly_by_pass': True}</field> </record>
or by telling fields allowed to change:
<record id="sale.action_quotations" model="ir.actions.act_window"> <field name="context"> {'readonly_by_pass': ['readonly_field_1', 'readonly_field_2',]} </field> </record>
On one2many fields, you can also pass the context in the field definition:
<field name="one2many_field" context="{'readonly_by_pass': True}"/>
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Credits
Contributors
- Jonathan Nemry <jonathan.nemry@acsone.eu>
- Laetitia Gangloff <laetitia.gangloff@acsone.eu>
- Pierre Verkest <pverkest@anybox.fr>
- Kalpana Hemnani <hemnani.kalpana@gmail.com>
- Agathe Mollé <agathe.molle@savoirfairelinux.com>
- Simone Orsi <simone.orsi@camptocamp.com>
Maintainer
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Error in Module.
When Edit the stage in crm Kanban view . It gives js error . " self.context.get_eval_context() is not found "
This module is not working
I had installed this module and updated in the action window context also but its not storing readonly fields