Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Community Apps Dependencies | Show |
Lines of code | 7078 |
Technical Name |
formio_data_api |
License | OPL-1 |
Website | https://www.novaforms.app |
Versions | 13.0 14.0 15.0 16.0 17.0 18.0 |
Forms | Data API
Python API for Form Builder and Form/Submission data
Installation Requirements
-
PyPi package
formio-data
(version >= 0.4.10)
- Install:pip3 install -U formio-data
- GitHub project:https://github.com/novacode-nl/python-formio-data
Visit the online Demo
Click the Live Preview button in the top.
Releases
1.8
- Upon Copy of Form Builder, copy the Component Server APIs as well.
1.7
- Several fixes, especially in ETL of odoo data.
1.6
-
Fix
_etl_res_field_value
function: incorrect use of safe_eval causes exception.
1.5
-
Fix ETL (component value)
user_field
, which didn't traversed relational fields (eg Many2one object).
1.4
-
Fix
formio.form
language determination in__getattr__
which gets the (Python)formiodata
Form
object.
1.3
-
Renaming (v1.2) ETL API implementation and usage (prefixes):
- FROM:server_value_api
- TO:server_api
(!!) This is backwards incompatible and requires to change existing Form Builders which apply this feature since v1.2.
1.2
- New ETL API feature: Get and set Component Value by Server (Python) Code.
1.1
-
Add global
noupdate_form
rule in component ETL API. This replacesres_field_noupdate_form
, introduced in version 1.0.
1.0
-
MAJOR IMPROVEMENT of the component ETL API, to load and prefill data from Odoo field(s).
This is a major change that greatly improves ease of use, flexibility and new features to come.
The previous API/usage (in Property Name, aka the component key) is still supported, but deprecated and logs a DEPRECATION warning.
0.9
-
Pass determined (lang)
date_format
andtime_format
to theForm
object contructor.
0.8
-
New ETL API:
OdooUser
ETL a field from current user into the Form.
(could also be read as the logged-in user) -
Change ETL API:
Odoo
This now ETL a field from the Resource model object into the Form, also when Form has state = DRAFT. -
Change ETL API:
OdooModel
ETL a field from the linked Resource model object into the Form.
(!!) This is backwards incompatible and requires to change existing Form Builders to:OdooModel__model
0.7
-
Fix/change due to recent change in the Python formiodata library (version: 0.3.0)
Change (formiodata)Builder
object attr:form_components
becameinput_components
0.6
-
New API feature, support for Mail Template:
Form model object (formio.form
) can now be used in a Mail Template (Jinja template renderer), e.g. to show field value, select choices etc.
This extends the Mail Render Mixin, because the Jinja Sandbox object doesn't directly allow${object._formio}
, which it treats as unsafe and throws an exception.
USAGE EXAMPLE (whereobject
is aformio.form
model object):
${formio(object).input.firstName.value}
0.5
-
Remove silly model determination by
initial_res_model_id
. The current model is always stored and present inres_model_id
.
0.4
-
New API feature
OdooModel
ETL the Odoo model name into Forms (API Property Name:OdooModel
).
0.3
-
Change ETL Odoo field-data (API): field delimter from "." to "__" (2 underscores).
- A dot "." results in undesired submission data, due to the formio Javascript library/API. - A dash is allowed, however causing issues with the ETL module (formio_etl).
0.2
-
New API features
Odoo
andOdooRF
ETL Odoo field-data into Forms.
0.1
- Initial version
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: 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 included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module