Skip to content

Commit

Permalink
Merge pull request #11 from novacode-nl/13.0
Browse files Browse the repository at this point in the history
up
  • Loading branch information
niulin lnc authored Nov 30, 2020
2 parents 13ad78e + 199d076 commit 2fa8f56
Show file tree
Hide file tree
Showing 26 changed files with 55 additions and 75 deletions.
30 changes: 5 additions & 25 deletions formio/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io',
'summary': 'Build, deploy and store web forms with the "Form.io" Form Builder',
'name': 'Forms',
'summary': 'Build, deploy and store Forms',
'version': '7.9',
'license': 'LGPL-3',
'author': 'Nova Code',
Expand Down Expand Up @@ -57,29 +57,9 @@
'static/description/banner.png',
],
'description': """
Form.io
=======
Build, deploy and store web forms in with the "Form.io" Form Builder.
http://form.io
The "Form.io" GUI/renderer and data are hosted on-premise (your hosting). So you're under control.
After installation of the module you can start right away.
No extra setup and requirements are needed.
Form Builder
------------
* Form Building starts in Odoo, by create a record and open the Form Builder right away.
* All Form data (schema) is stored on-premise, in your Odoo database
Form
----
* Users can create, edit and fill-in Forms.
* Forms are stored in the Odoo database.
Forms
=====
Build, deploy and Forms.
"""
}
2 changes: 1 addition & 1 deletion formio/data/ir_cron_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html) -->
<odoo>
<data noupdate="1">
<record id="ir_cron_formio_version_github_tag_check_and_register" forcecreate="True" model="ir.cron">
<field name="name">Form.io: Check and register new Versions (GitHub tags)</field>
<field name="name">Forms: Check and register new Versions (GitHub tags)</field>
<field name="model_id" ref="model_formio_version_github_tag"/>
<field name="state">code</field>
<field name="code">model.check_and_register_available_versions()</field>
Expand Down
4 changes: 2 additions & 2 deletions formio/data/mail_template_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ See LICENSE file for full copyright and licensing details.
<odoo>
<data>
<record id="mail_invitation_internal_user" model="mail.template">
<field name="name">Form.io: Invitation internal user</field>
<field name="name">Forms: Invitation internal user</field>
<field name="model_id" ref="formio.model_formio_form"/>
<field name="auto_delete" eval="False"/>
<field name="email_from">"${user.company_id.name|safe}" &lt;${(user.company_id.email or user.email)|safe}&gt;</field>
Expand All @@ -33,7 +33,7 @@ See LICENSE file for full copyright and licensing details.
</record>

<record id="mail_invitation_portal_user" model="mail.template">
<field name="name">Form.io: Invitation portal user</field>
<field name="name">Forms: Invitation portal user</field>
<field name="model_id" ref="formio.model_formio_form"/>
<field name="auto_delete" eval="False"/>
<field name="email_from">"${user.company_id.name|safe}" &lt;${(user.company_id.email or user.email)|safe}&gt;</field>
Expand Down
4 changes: 2 additions & 2 deletions formio/security/formio_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html) -->
<odoo>
<data>
<record id="module_category_formio" model="ir.module.category">
<field name="name">Form.io</field>
<field name="description">Form.io</field>
<field name="name">Forms</field>
<field name="description">Forms</field>
<field name="sequence">10</field>
</record>

Expand Down
4 changes: 2 additions & 2 deletions formio/static/src/js/builder/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ class App extends Component {
return;
}
else {
console.log('[Form.io] Saving Builder...');
console.log('[Forms] Saving Builder...');
$.jsonRpc.request(self.saveUrl, 'call', {
'builder_id': self.builderId,
'schema': res
}).then(function() {
console.log('[Form.io] Builder sucessfully saved.');
console.log('[Forms] Builder sucessfully saved.');
});
}
});
Expand Down
4 changes: 2 additions & 2 deletions formio/views/formio_builder_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ See LICENSE file for full licensing details. -->
<field name="name">formio.builder.formio</field>
<field name="model">formio.builder</field>
<field name="arch" type="xml">
<formio_builder string="Form.io">
<formio_builder string="Form.io Builder">
<field name="id"/>
<field name="name"/>
<field name="title"/>
Expand Down Expand Up @@ -91,7 +91,7 @@ See LICENSE file for full licensing details. -->
<notebook>
<page string="General" name="settings">
<group name="settings">
<group name="formio_settings" string="Form.io">
<group name="formio_settings" string="Form.io JavaScript (JS)">
<field name="formio_version_id" attrs="{'readonly': [('state', '!=', 'DRAFT')]}"/>
<field name="wizard" groups="formio.group_formio_admin" attrs="{'readonly': [('state', '!=', 'DRAFT')]}"/>
<field name="view_as_html" groups="formio.group_formio_admin"/>
Expand Down
2 changes: 1 addition & 1 deletion formio/views/formio_form_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ See LICENSE file for full licensing details. -->
<field name="name">formio.form.formio</field>
<field name="model">formio.form</field>
<field name="arch" type="xml">
<formio_form string="Form.io">
<formio_form string="Form.io Form">
<field name="id"/>
<field name="uuid"/>
<field name="name"/>
Expand Down
2 changes: 1 addition & 1 deletion formio/views/formio_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ See LICENSE file for full licensing details. -->
<odoo>
<menuitem
id="menu_formio_root"
name="Form.io"
name="Forms"
sequence="2"
web_icon="formio,static/description/icon.png"
groups="base.group_user"/>
Expand Down
2 changes: 1 addition & 1 deletion formio/views/formio_portal_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ See LICENSE file for full licensing details. -->
</t>
</template>

<template id="portal_my_formio_edit" name="Form.io Form" priority="40">
<template id="portal_my_formio_edit" name="Portal Form" priority="40">
<t t-call="portal.portal_layout">
<div t-attf-class="formio_form_container mt16 {{ form.state }}">
<div class="formio_form_iframe_container">
Expand Down
4 changes: 2 additions & 2 deletions formio/views/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html) -->
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]" position="inside">
<div class="app_settings_block" data-string="Form.io" data-key="formio">
<h2>Form.io client/library version importer</h2>
<h2>Form.io JS/library version importer</h2>
<div class="row mt16 o_settings_container formio_version">
<div class="col-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane"/>
Expand Down Expand Up @@ -84,7 +84,7 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html) -->
<div class="row mt16 o_settings_container formio_default_builder_js_options">
<div class="text-muted">
Select a default Form Builder JavaScript Options Template.<br/>
It's contents, the Form Builder JavaScript Options, shall be show below.
It's contents, the Form Builder JavaScript Options, shall be shown below.
</div>

<div class="col-12 col-md-12 o_setting_box">
Expand Down
6 changes: 3 additions & 3 deletions formio_component_recaptcha_button/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io reCAPTCHA Button Component',
'name': 'Forms reCAPTCHA Button Component',
'summary': 'Drag & drop a reCAPTCHA component with (server)verification on a Form.',
'version': '1.0',
'license': 'LGPL-3',
Expand All @@ -23,8 +23,8 @@
'static/description/banner.png',
],
'description': """
Form.io reCAPTCHA Button Component
==================================
Forms reCAPTCHA Button Component
================================
"""
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See LICENSE file for full licensing details. -->
<xpath expr="//page[@name='formio_components_api']/group[@name='partner']" position="inside">
<group string="reCAPTCHA Button" colspan="2">
<div colspan="2">
<i class="fa fa-info-circle" title="info"/> Put the Site Key in the API (tab) property, in the Form.io Builder Component: (odoo) reCAPTCHA
<i class="fa fa-info-circle" title="info"/> Put the Site Key in the API (tab) property, in the Form Builder Component: (odoo) reCAPTCHA
</div>
<div colspan="2">
<i class="fa fa-info-circle" title="info"/> Configure in (menu) Technical / System Paramaters: <code>formio_recaptcha_button.site_key</code>, <code>formio_recaptcha_button.secret_key</code>
Expand Down
10 changes: 5 additions & 5 deletions formio_crm/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io CRM',
'summary': 'Form.io webforms on CRM Leads',
'name': 'Forms CRM',
'summary': 'Formio webforms on CRM Leads',
'version': '0.2',
'license': 'LGPL-3',
'author': 'Nova Code',
Expand All @@ -20,9 +20,9 @@
'static/description/banner.png',
],
'description': """
Form.io - CRM
=============
Forms - CRM
===========
Build and publish (Form.io) forms for Leads.
Build and publish (Formio) forms for Leads.
"""
}
2 changes: 1 addition & 1 deletion formio_crm/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class CrmLead(models.Model):
_inherit = 'crm.lead'

formio_forms = fields.One2many('formio.form', 'crm_lead_id', string='Form.io Forms')
formio_forms = fields.One2many('formio.form', 'crm_lead_id', string='Forms')
formio_forms_count = fields.Integer(compute='_compute_formio_forms_count')
formio_this_model_id = fields.Many2one('ir.model', compute='_compute_formio_this_model_id')

Expand Down
8 changes: 4 additions & 4 deletions formio_data_api/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io Data API',
'summary': 'Python API for Form.io data (builder, form/submission).',
'name': 'Forms Data API',
'summary': 'Python API for Forms data (builder, form/submission).',
'version': '0.5',
'license': 'LGPL-3',
'author': 'Nova Code',
Expand All @@ -20,8 +20,8 @@
'static/description/banner.png',
],
'description': """
Form.io Data API
================
Forms Data API
==============
"""
}
10 changes: 5 additions & 5 deletions formio_partner/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io Partner',
'summary': 'Form.io webforms on Partners',
'name': 'Forms Partner',
'summary': 'Forms on Partners',
'version': '1.0',
'license': 'LGPL-3',
'author': 'Nova Code',
Expand All @@ -21,9 +21,9 @@
'static/description/banner.png',
],
'description': """
Form.io - Partners
==================
Forms - Partners
================
Build and publish (Form.io) forms for Partners.
Build and publish Forms for Partners.
"""
}
2 changes: 1 addition & 1 deletion formio_partner/models/partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class ResPartner(models.Model):
_inherit = 'res.partner'

formio_forms = fields.One2many('formio.form', 'partner_id', string='Form.io Forms')
formio_forms = fields.One2many('formio.form', 'partner_id', string='Forms')
formio_forms_count = fields.Integer(compute='_compute_formio_forms_count')
formio_this_model_id = fields.Many2one('ir.model', compute='_compute_formio_this_model_id')

Expand Down
2 changes: 1 addition & 1 deletion formio_report_qweb/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io QWeb Reports',
'name': 'Forms QWeb Reports',
'summary': 'Generate (PDF) reports for every Form',
'version': '0.11',
'author': 'Nova Code',
Expand Down
4 changes: 2 additions & 2 deletions formio_report_qweb/report/formio_form_report_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
report_type="qweb-pdf"
file="formio_report_qweb.report_formio_form"
name="formio_report_qweb.report_formio_form"
print_report_name="'Form.io Form - %s - %s' % (object.title, object.id)"
print_report_name="'Form - %s - %s' % (object.title, object.id)"
/>
<report
id="action_report_formio_form_assigned_user"
Expand All @@ -20,6 +20,6 @@
report_type="qweb-pdf"
file="formio_report_qweb.report_formio_form_assigned_user"
name="formio_report_qweb.report_formio_form_assigned_user"
print_report_name="'Form.io Form - %s - %s' % (object.title, object.id)"
print_report_name="'Form - %s - %s' % (object.title, object.id)"
/>
</odoo>
10 changes: 5 additions & 5 deletions formio_sale/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io Sales',
'summary': 'Form.io webforms on Sale Orders/Quotes',
'name': 'Forms Sales',
'summary': 'Formio webforms on Sale Orders/Quotes',
'version': '0.4',
'license': 'LGPL-3',
'author': 'Nova Code',
Expand All @@ -21,9 +21,9 @@
'static/description/banner.png',
],
'description': """
Form.io - Sales
===============
Forms - Sales
=============
Build and publish (Form.io) forms for Sale Orders/Quotes.
Build and publish (Formio) forms for Sale Orders/Quotes.
"""
}
2 changes: 1 addition & 1 deletion formio_sale/models/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class SaleOrder(models.Model):
_inherit = 'sale.order'

formio_forms = fields.One2many('formio.form', 'sale_order_id', string='Form.io Forms')
formio_forms = fields.One2many('formio.form', 'sale_order_id', string='Forms')
formio_forms_count = fields.Integer(compute='_compute_formio_forms_count')
formio_this_model_id = fields.Many2one('ir.model', compute='_compute_formio_this_model_id')

Expand Down
4 changes: 2 additions & 2 deletions website_formio/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# See LICENSE file for full licensing details.

{
'name': 'Form.io Website (Snippet etc)',
'summary': 'Form Snippet, Other website integration',
'name': 'Forms Website (Snippet etc)',
'summary': 'Forms Snippet, Other website integration',
'version': '1.4',
'license': 'LGPL-3',
'author': 'Nova Code',
Expand Down
4 changes: 2 additions & 2 deletions website_formio/data/website_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ See LICENSE file for full licensing details. -->
<odoo>
<data noupdate="1">
<record id="formio_thankyou" model="ir.ui.view">
<field name="name">Form.io: Thank you (form submission)</field>
<field name="name">Forms: Thank you (form submission)</field>
<field name="type">qweb</field>
<field name="key">website_formio.formio_thankyou</field>
<field name="arch" type="xml">
<t name="Form.io: Thank you (form submission)" t-name="website_formio.formio_thankyou">
<t name="Forms: Thank you (form submission)" t-name="website_formio.formio_thankyou">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<section class="s_text_block pt32 pb0">
Expand Down
2 changes: 1 addition & 1 deletion website_formio/data/website_formio_demo_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ See LICENSE file for full licensing details. -->
<data>
<record id="formio_builder_demo_website" model="formio.builder">
<field name="name">website_demo_1</field>
<field name="title">Demo - Form.io Website Snippet (public form)</field>
<field name="title">Demo - Forms Website Snippet (public form)</field>
<field name="formio_version_id" ref="formio.version_4_9_26"/>
<field name="public" eval="True"/>
<field name="state">CURRENT</field>
Expand Down
2 changes: 1 addition & 1 deletion website_formio/static/src/js/website_formio_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ odoo.define('website_formio_editor', function (require) {

options.registry.website_formio_editor = options.Class.extend({
popup_template_id: "editor_new_formio_form_popup",
popup_title: _t("Add a Form.io Form"),
popup_title: _t("Add a Form"),

select_formio_builder: function (previewMode, value) {
var self = this;
Expand Down
2 changes: 1 addition & 1 deletion website_formio/views/website_formio_snippets.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_website_formio" name="Form.io Form">
<template id="s_website_formio" name="Form">
<section class="s_website_formio bg-200 pt48 pb24">
<div class="container">
<div class="formio_form_iframe_container">
Expand Down

0 comments on commit 2fa8f56

Please sign in to comment.