novacode-nl / odoo-formio Goto Github PK
View Code? Open in Web Editor NEWOdoo Forms app & modules
Home Page: https://apps.odoo.com/apps/modules/17.0/formio/
License: Other
Odoo Forms app & modules
Home Page: https://apps.odoo.com/apps/modules/17.0/formio/
License: Other
I am trying to create a simple form containing a select field that is populated with odoo data.
Shouldn't I get somethin to select under "Resource" (in the same Data tab)?
I do not have the buttons "Settings in Odoo" and "Odoo" at the top of the builder's view as shown in: https://apps.odoo.com/apps/modules/12.0/formio/intro-screenshot-1.png
Am I missing something?
Thanks in advance.
A warning about unsafe setting for certain models e.g. website comment.
Change URLs/route for new public Form:
/formio/public/form/create/<int:id>
/formio/public/form/create/<string:builder_uuid>
This slightly protects from abuse of public Forms (some obfuscation of the real id).
Requirements:
uuid
in formio.builder
modeluuid
.Public form is ignoring the "Expire After" field. Form is always fillable, also after official expiration date.
Expected behaviour: After expire date reached, form shouldn't accessible anymore.
Requires some Compenents API config (mapping) in [formio.builder]
A few things I've noticed that are barriers for implementation IRL.
Portal form submission area is buried inside of >My Account>Forms>Submit A Form and each submission (aka Form) is created as a unique url but only after going through the user portal. Currently there is no way to post a form on a single URL and have anyone go to that url and submit a form with recaptcha control similar to the way 99.999 percent of all forms work online today. Embedding the form in non-portal area is a must to me because how do people know where to go who are just coming to the website as public user without an account at all?
Form submissions are called "forms" in the backend. This should be changed to "Submissions" or "Form Entries" so they are not confused with the Builder.
Is there plans in works to allow for forms to be added to the product on the ecommerce front-end to allow for form data entry before "add to cart"? This would make Odoo incredibly powerful.
best regards,
Walker
Annotate the Form (container) if the Form Builder state != Current
.
(An improvement for the website_formio
module)
Problem description:
A specific formio.builder
version (eg version 1) has been published on the website, snippet has been dropped.
When there's a need to change/edit the version 1, one could put it in state = Draft
or first design a new one (button: Copy New Version), which becomes version 2.
The problem arises when the formio.builder
is updated back to state = Draft
.
In this case, currently the Form ain't shown in the website snippet anymore - which is really not ideal !
Improve this case/situation by annotating the Form by eg a red (colored) border or message.
Requirements
But, we don't want this annotation on every type of Form - it should be configurable.
Add a new setting field in the formio.builder
whether to enable (show) the annotation.
Implement a way to let Cron to delete Forms in state=PENDING.
Would be nice if the age can be computed by specified time-interval in the Form Builder.
I experienced this issue with:
Need to analyse:
As shown in screenshot, there's an issue with the form canvas its height - auto scaling.
Have to find out whether its a CSS issue or due to a misconfiguration in the included iFrame Resizer library:
https://davidjbradshaw.github.io/iframe-resizer/
Suggestions:
iframe-resizer
libraryseamless
https://github.com/travist/seamless.js ?At least images of component type:
Hello
I have some issues with creating form in Russian. For example, I cant change some buttons display name ("Previous", "Next", "Cancel" in Wizard mode).
Steps:
Expected:
"Next" button translated to Russian
What i got:
Nothing
Looks like English language is a default for now. Is it possible to change default Form language? May be this feature could help
Thank you for your work!
P.S. I hope that you are not tired of my issues. If this problem related to formio library I wll open issue on their github page
Some code in controller controllers/public.py
still left commented.
Regarding translations which also trigger the language-switch buttons.
Check and implement this.
Currently all Forms available in the Portal (URL: /my/formio
) are shown in a list.
Would be nice to have some filters in the Forms list.
Related issue: #141
For example filter shortcuts / profiles:
res_model_id
)Recommendation:
Checkout and study some other (core) Odoo modules which already provide this feature (sale ?)
For some type of forms it's undesirable a user could update the state to Draft (or cancel) after a Form has been completed.
Type of Forms, e.g: Signing, Contracts.
Implement a Permissions (by group) configuration in the Builder, which determines whether to hide and block this state update (also buttons).
using a iframe the height of the frame is too small to display correct.
Qweb
formio.portal_my_formio_edit
If I set a height it is OK.
Hello
Odoo 13
I was able to create a form and publish it on the website.
The form builder is based on Contacts (res.partner)
I seem to miss something to make the links between the form fields /submission with the res.partner fields in order to add a new contact.
Thank you for your help
Unable to install module "formio_data_api" because an external dependency is not met: No module named formiodata
Currently the inclusion/loading of "formio.js" assets is done by HTTP-requests to URLs (CDNs) configured.
Include "formio.js" assets by "ir.attachment" records and uploaded asset files.
The loading of "bootstrap.min.css" from "ir.attachment" fails. Icon/glyphs don't get rendered properly.
Currently several meta-data (fields) of the formio.form
record are shown to the user filling the Form.
Fields e.g: state, submission user, submission date.
This isn't always desired, for be example:
To implement:
Add setting (bool field) in the Form Builder, when enabled the meta-data field are hidden in the Form.
The ability to export pdf's from a formio.form, would be great feature.
@bobslee What do you think?
Setting up a redirect page in form builder settings isn't working. After submit public page isn't redirecting to specified page.
The formio.js builder shows in components (editor) lots of options and settings which ain't in use with Odoo module integration.
Provide a way to hide those?
Eg. by using similar implementation as formio.js.options
.
Also block any request to external URL, eg CDNs.
Currently the reCAPTCHA Site Key
and Secret
need to be manual created ir.config_parameter
records.
This needs to be improved with the res.config.settings
(model, view), storing to 2 corresponding ir.config_parameter
records.
Affected fields:
component_recaptcha_button_site_key
component_recaptcha_button_secret_key
Maybe just skip/close this one.
Followers etc can be implemented by automated and server actions.
Features:
Configuration:
(1) Followers res.partner (many2many) on the form.builder
(2) My preferences: Add formio.builder
(many2many) allowed to autosubscribe by group (res.group).
The web.base.url param should match the domain where Odoo is served from.
formio.js JavaScript generates some URLs by the window.location property. Maybe this breaks when serving Odoo with different subdomains/A-records?
Implement a simple way to register custom components.
Upon adding a Form on a Webpage, store the link between.
So it's easy to find on which webpages specific Forms have been published.
Load formio.js translations by language of logged-in (Odoo) user. formio.js supports i18n language and translations.
Goals:
Design:
Reports generator doesn't work with Odoo v11.
In the QWeb template the o._formio.components
results in nothing (empty).
I debugged heavily in Odoo internals, regarding the issue.
The problem seems to be in the QWeb rendering (module).
Eventually I put some logging in the QWeb render
method. The values (and Component objects) are still present here.
However during further processing of this render and compile methods, the problem occurs somewhere.
I also tried to replace the QWeb class (file) with the Odoo v12 one. But that didn't solve and runs into different problems, like other methods/parts not found.
I also checked the differences between the Python packages in my Odoo v11 and v12 containers. No differences or whatsoever.
So I expect the issue lies somewhere in the render and compile implementation of:
odoo/addons/base/ir/ir_qweb/qweb.py
https://github.com/odoo/odoo/blob/11.0/odoo/addons/base/ir/ir_qweb/qweb.py
This implementation was slightly changed in Odoo v12.. also the location of the files.
If the downloaded formio.js version equals or is bigger than 5.0, the form builder is showing only a white page.
When installing V13 you get an error
@api.multi
https://github.com/novacode-nl/odoo-formio/blob/13.0/website_formio/models/formio_builder.py#L20
Hi! Is it possible to make form visible to public i.e w/o login on website? I tried to change 'auth' property in controller and add public odoo user to Formio User group but it didnt help much.
Based on the python exception
Error to render compiling AST
AccessError: ('You cant get access to this document.', None)
Template: formio.formio_html_head
Path: /templates/t/head/t[1]/link
Node: <link rel="stylesheet" type="text/css" t-att-href="css.url"/>
I guess that happened because of using "ir.attachment" in formio versioning assets.
Avoid page break inside several objects:
tr, td, li etc....
Hello!
Its not possible to save form component when the name of component have cyrillic letters.
Steps to reproduce:
This happend even if label name consist of mix with latin and cyrillic letters
I can save form component with latin label and change label name after that - this is allowed
Browser: Firefox 68.0.2
Tested on your env https://odoo12-b4a887d572e9.victhorious.com
These font dirs take too much diskspace (approx 1M per fonts dir) to copy into every formio.js version.
Probably better to symlink the path, or come with a better solution.
When a user with the "User: All forms" rights wants to to save the formio.form view or move from formio.form view to the formbuilder, odoo raises:
2020-03-10 19:21:24,385 6903 INFO odoo_formio odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: write, uid: 5, model: formio.builder
Is it wanted that non admin users, can't write a new form from an already present formbuilder template?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.