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 ur.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>
For further information, please visit:
Known issues / Roadmap
Migrate to v9 JS API both normal code and QUnit tests.
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>
Jairo Llopis <jairo.llopis@tecnativa.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 https://odoo-community.org.
Metadata
Release files for odoo9-addon-web-readonly-bypass 9.0.1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo9_addon_web_readonly_bypass-9.0.1.0.1-py2-none-any.whl | Python 2 | none | any | Details for odoo9_addon_web_readonly_bypass-9.0.1.0.1-py2-none-any.whl |
Release files / odoo9_addon_web_readonly_bypass-9.0.1.0.1-py2-none-any.whl
| Download URL | odoo9_addon_web_readonly_bypass-9.0.1.0.1-py2-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
9c8441f26e7c8ae936795a684fb7db3e0c06d582af30e0383dcabeb8e07e99f8
|
|
BLAKE2b-256 checksum How to use checksums |
d68b6f4a15e6fc29b708512f846f63f240d074e0e4a98fcae48a90cec47dae48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for odoo9-addon-web-readonly-bypass 9.0.1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.