Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How do I create additional forms with website builder?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
v8webformwebsite
7 Réponses
32788 Vues
Avatar
Harold Poku

Odoo v8 website builder comes with a simple contact us form. What is the procedure to add additonal forms such as an online registration form with fields for uploading attachments?
 

4
Avatar
Ignorer
Avatar
Fabien Pinckaers (fp)
Meilleure réponse

There is no form builder in version 8 yet. But you can create forms by copy/pasting the HTML code of the contact us page. Change the HTML code of the contact form and it will work.

You can even add any field in the HTML contact form and it will be integrated in your leads. (even binary fields, that will create attached documents to the lead).

3
Avatar
Ignorer
mihir shah

ok i have copy/pasted all the required field and create desired form i want to integrated it with HR employee as employee registration form .. does odoo give us that provision and save data of employee or create employee profile ????

Avatar
Brandon Bazemore
Meilleure réponse

Obviously this is quite an old post, but in case anyone finds themselves here with the error above, the fix is to comment out the following line in your HTML code (pasting it with the comment tag added).  Assuming that you have this problem, you will likely not be able to access your page any longer, so the way to get to where you need to modify is to go in to settings / views and then search for your page.  It will be a qWeb view that you can simply edit and modify.  Then go back to your website view and all should be well. ;)

<!--<t t-foreach="kwargs" t-as="kwarg">

<input type="hidden" t-att-name="kwarg[0]" t-att-value="kwarg[1]"/>

</t>-->

1
Avatar
Ignorer
Laura

Thank you!! I comment this loop and it works ;D

Avatar
Tobi
Meilleure réponse

Odoo website works in mvc pattern. So creating view is simply just 1/3 of your needs. You will have to also create controller and edit module for some extra behaviour. To create a well working page do this by creating a new module wit mvc content. If you wan't to just inherit some other page use xpath. Don't forget that you can also use JavaScript w/ JQuery if you wnat to add som fancy things. Everything can be found in original Odoo website, website_sale, website_crm modules.

0
Avatar
Ignorer
Avatar
Frank Adler
Meilleure réponse

Hi Harold, 

I had the exact same experience as you did. Please have a look here for a step-by-step guide:

https://www.odoo.com/forum/help-1/question/custom-forms-this-is-how-to-62623

Hope this helps.

Frank

0
Avatar
Ignorer
Avatar
Harold Poku
Auteur Meilleure réponse

Thanks. I have been able to copy/paste the HTML code of the contact us page into my new "Registration" page. But in changing the HTML code of the contact form doesnt it modify the existing simple contact us page as well? That page is still needed for simple contacts.

I see the contact form is linked to the contact us page via an xpath expression:  <xpath expr="//div[@name='mail_button']" position="replace">. Doest the xpath need to be modified in anyway and should i be using the existing contact form or create and new form altogether for new registration form page?

just fyi, I tried creating a new qweb view from  Settings/Technical/Views:

View Name: Registration Form

View Type: QWeb

Inherited View: Registration

 

And getting this error:

Traceback (most recent call last):
  File "/opt/openerp/server/openerp/http.py", line 1183, in get_response
    result.flatten()
  File "/opt/openerp/server/openerp/http.py", line 1059, in flatten
    self.response.append(self.render())
  File "/opt/openerp/server/openerp/http.py", line 1056, in render
    return view_obj.render(request.cr, uid, self.template, self.qcontext, context=request.context)
  File "/opt/openerp/server/openerp/addons/website/models/ir_ui_view.py", line 160, in render
    return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 870, in render
    return self.pool[engine].render(cr, uid, tname, qcontext, loader=loader, context=context)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 229, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 273, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 290, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 271, in render_node
    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 382, in render_tag_call
    d[0] = self.render_element(element, template_attributes, generated_attributes, d)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 290, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 273, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 290, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 273, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 290, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 273, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 290, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 273, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 290, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 273, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 290, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 271, in render_node
    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_qweb.py", line 373, in render_tag_foreach
    raise QWebException("foreach enumerator %r is not defined while rendering template %r" % (expr, template), template=template)
QWebException: foreach enumerator 'kwargs' is not defined while rendering template u'website.Registration'

0
Avatar
Ignorer
Avatar
Nancy Nguyen
Meilleure réponse

test

-1
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to define a tests to simulate form submission (front-end to back-end) ? [SOLVED]]
v8 web form tests website
Avatar
0
mai 15
5317
How to edit sign up form for new customers on your website Résolu
python xml web form website
Avatar
Avatar
2
mai 24
9720
website form
form website
Avatar
Avatar
Avatar
2
mai 25
10551
Portal Users Requesting Time Off via Website
form website
Avatar
Avatar
Avatar
Avatar
3
mars 24
6272
How Can I get current URL (means browser URL)?
web website
Avatar
Avatar
Avatar
Avatar
Avatar
5
janv. 22
12576
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now