Odoo Building a website _ For the browser

C
Celine GeorgeCybrosys Technologies
Odoo Building a website :
For the browser
● Odoo 16 building a website to the browser.which can be done
by controllers of a module , controllers which help as to
configure front end module and also helps to interpret
browser request and send database .
● Here let us check how can we configure a particular controller
and how can we navigate a particular url and then return our
data.
Add Controller for the website.
Just define a controllers directory and just create a python file , then define a class first .
Just define a class ;
And import http from odoo at the top.
• Define the particular HTTP root , which is a method decorator using for routing purpose which
allows to navigate for that particular url.
• Define http.route and /my/order is the url .
• type is http
• auth = user .(auth can be used for give the access for this url )
• website = True(Which means the controller is linked with the website.)
auth
• auth are in different types , mainly public user and none.
• public means anyone can access to this url .
• user means only the login users can access.
• none means it is always active.
Just define a function .
• Then we can return the data that we are needed and if we need to fetch any datas we needed
from the backend and that can be fetch and then return here.
• The “Helloo” is return on the website.
• Here just put our url “/my/order” on the website we can see the output is shown the website
page.
Check our company website
for related blogs and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.
1 sur 9

Recommandé

Tutorial: extending the zend server ui and web api par
Tutorial: extending the zend server ui and web apiTutorial: extending the zend server ui and web api
Tutorial: extending the zend server ui and web apiYonni Mendes
874 vues77 diapositives
Integration of plagiarism checker in odoo par
Integration of plagiarism checker in odooIntegration of plagiarism checker in odoo
Integration of plagiarism checker in odooCeline George
259 vues11 diapositives
Cqrs api par
Cqrs apiCqrs api
Cqrs apiBrandon Mueller
3.8K vues40 diapositives
Drupal8 for Symfony developers - Dutch PHP par
Drupal8 for Symfony developers - Dutch PHPDrupal8 for Symfony developers - Dutch PHP
Drupal8 for Symfony developers - Dutch PHPAntonio Peric-Mazar
340 vues152 diapositives
OAuth - Open API Authentication par
OAuth - Open API AuthenticationOAuth - Open API Authentication
OAuth - Open API Authenticationleahculver
22.3K vues23 diapositives
Proper Connections Development for Proper Domino Developers par
Proper Connections Development for Proper Domino DevelopersProper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino DevelopersMark Myers
3.9K vues152 diapositives

Contenu connexe

Similaire à Odoo Building a website _ For the browser

PHP, OAuth, Web Services and YQL par
PHP, OAuth, Web Services and YQLPHP, OAuth, Web Services and YQL
PHP, OAuth, Web Services and YQLkulor
2.1K vues27 diapositives
Ember Authentication and Authorization with Torii par
Ember Authentication and Authorization with ToriiEmber Authentication and Authorization with Torii
Ember Authentication and Authorization with ToriiCory Forsyth
1.7K vues48 diapositives
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017 par
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017Rafael Antonio Gutiérrez Turullols
488 vues75 diapositives
OAuth and OEmbed par
OAuth and OEmbedOAuth and OEmbed
OAuth and OEmbedleahculver
25.4K vues50 diapositives
Torii: Ember.js Authentication Library par
Torii: Ember.js Authentication LibraryTorii: Ember.js Authentication Library
Torii: Ember.js Authentication LibraryCory Forsyth
5.6K vues38 diapositives
Introduction to shodan par
Introduction to shodanIntroduction to shodan
Introduction to shodann|u - The Open Security Community
572 vues25 diapositives

Similaire à Odoo Building a website _ For the browser(20)

PHP, OAuth, Web Services and YQL par kulor
PHP, OAuth, Web Services and YQLPHP, OAuth, Web Services and YQL
PHP, OAuth, Web Services and YQL
kulor2.1K vues
Ember Authentication and Authorization with Torii par Cory Forsyth
Ember Authentication and Authorization with ToriiEmber Authentication and Authorization with Torii
Ember Authentication and Authorization with Torii
Cory Forsyth1.7K vues
OAuth and OEmbed par leahculver
OAuth and OEmbedOAuth and OEmbed
OAuth and OEmbed
leahculver25.4K vues
Torii: Ember.js Authentication Library par Cory Forsyth
Torii: Ember.js Authentication LibraryTorii: Ember.js Authentication Library
Torii: Ember.js Authentication Library
Cory Forsyth5.6K vues
Web Services PHP Tutorial par Lorna Mitchell
Web Services PHP TutorialWeb Services PHP Tutorial
Web Services PHP Tutorial
Lorna Mitchell192.2K vues
Robots and-sitemap - Version 1.0.1 par Naji El Kotob
Robots and-sitemap - Version 1.0.1Robots and-sitemap - Version 1.0.1
Robots and-sitemap - Version 1.0.1
Naji El Kotob1.3K vues
The Many Flavors of OAuth - Understand Everything About OAuth2 par Khor SoonHin
The Many Flavors of OAuth - Understand Everything About OAuth2The Many Flavors of OAuth - Understand Everything About OAuth2
The Many Flavors of OAuth - Understand Everything About OAuth2
Khor SoonHin1.1K vues
Detailed Developer Report.pdf par nalla14
Detailed Developer Report.pdfDetailed Developer Report.pdf
Detailed Developer Report.pdf
nalla144 vues
SEO Tools For Marketers - Seo tools for you par Uy Hoàng
SEO Tools For Marketers - Seo tools for youSEO Tools For Marketers - Seo tools for you
SEO Tools For Marketers - Seo tools for you
Uy Hoàng383 vues
HTTP - The Protocol of Our Lives par Brent Shaffer
HTTP - The Protocol of Our LivesHTTP - The Protocol of Our Lives
HTTP - The Protocol of Our Lives
Brent Shaffer1.1K vues
GitHub Enterprise and Automation with Codedeploy - AWS Summit SG 2017 par Amazon Web Services
GitHub Enterprise and Automation with Codedeploy - AWS Summit SG 2017GitHub Enterprise and Automation with Codedeploy - AWS Summit SG 2017
GitHub Enterprise and Automation with Codedeploy - AWS Summit SG 2017
Hanselman lipton asp_connections_ams304_mvc par denemedeniz
Hanselman lipton asp_connections_ams304_mvcHanselman lipton asp_connections_ams304_mvc
Hanselman lipton asp_connections_ams304_mvc
denemedeniz302 vues
Avninfosoft Seo strategy for 2014 par Kaite Willson
Avninfosoft Seo strategy  for 2014Avninfosoft Seo strategy  for 2014
Avninfosoft Seo strategy for 2014
Kaite Willson5.6K vues

Plus de Celine George

How to empty an One2many field in Odoo par
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in OdooCeline George
65 vues8 diapositives
Configure Project in Odoo 16 par
Configure Project in Odoo 16Configure Project in Odoo 16
Configure Project in Odoo 16Celine George
504 vues10 diapositives
Model Constraints In Odoo 16 par
Model Constraints In Odoo 16Model Constraints In Odoo 16
Model Constraints In Odoo 16Celine George
714 vues11 diapositives
Quick Tips in Odoo 16 par
Quick Tips in Odoo 16Quick Tips in Odoo 16
Quick Tips in Odoo 16Celine George
818 vues15 diapositives
Model Fields in Odoo 16 par
Model Fields in Odoo 16Model Fields in Odoo 16
Model Fields in Odoo 16Celine George
904 vues7 diapositives
Building a Module in Odoo 16 par
Building a Module in Odoo 16Building a Module in Odoo 16
Building a Module in Odoo 16Celine George
986 vues16 diapositives

Plus de Celine George(20)

How to empty an One2many field in Odoo par Celine George
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in Odoo
Celine George65 vues
Composition of a Module in Odoo 16 par Celine George
Composition of a Module in Odoo 16Composition of a Module in Odoo 16
Composition of a Module in Odoo 16
Celine George694 vues
How to Add a Store Attribute to a Field in Odoo 16 par Celine George
How to Add a Store Attribute to a Field in Odoo 16How to Add a Store Attribute to a Field in Odoo 16
How to Add a Store Attribute to a Field in Odoo 16
Celine George745 vues
How to Make Sequence Number in Odoo 16 par Celine George
How to Make Sequence Number in Odoo 16How to Make Sequence Number in Odoo 16
How to Make Sequence Number in Odoo 16
Celine George750 vues
Name Search() Function in Odoo 16 par Celine George
Name Search() Function in Odoo 16Name Search() Function in Odoo 16
Name Search() Function in Odoo 16
Celine George808 vues
Model Constraints - SQL Constraints Odoo 16 par Celine George
Model Constraints - SQL Constraints Odoo 16Model Constraints - SQL Constraints Odoo 16
Model Constraints - SQL Constraints Odoo 16
Celine George344 vues
How to show warning _ error messages in Odoo 16 par Celine George
How to show warning _ error messages in Odoo 16 How to show warning _ error messages in Odoo 16
How to show warning _ error messages in Odoo 16
Celine George720 vues
Inheritance | Traditional Prototype Inheritance in Odoo 16 par Celine George
Inheritance  | Traditional Prototype Inheritance in Odoo 16Inheritance  | Traditional Prototype Inheritance in Odoo 16
Inheritance | Traditional Prototype Inheritance in Odoo 16
Celine George481 vues
Relations Between Models - many2one par Celine George
Relations Between Models - many2oneRelations Between Models - many2one
Relations Between Models - many2one
Celine George439 vues
Relations Between Models-many2many par Celine George
Relations Between Models-many2manyRelations Between Models-many2many
Relations Between Models-many2many
Celine George412 vues

Dernier

Sociology KS5 par
Sociology KS5Sociology KS5
Sociology KS5WestHatch
70 vues23 diapositives
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1} par
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}DR .PALLAVI PATHANIA
249 vues195 diapositives
PLASMA PROTEIN (2).pptx par
PLASMA PROTEIN (2).pptxPLASMA PROTEIN (2).pptx
PLASMA PROTEIN (2).pptxMEGHANA C
68 vues34 diapositives
MIXING OF PHARMACEUTICALS.pptx par
MIXING OF PHARMACEUTICALS.pptxMIXING OF PHARMACEUTICALS.pptx
MIXING OF PHARMACEUTICALS.pptxAnupkumar Sharma
77 vues35 diapositives
Women from Hackney’s History: Stoke Newington by Sue Doe par
Women from Hackney’s History: Stoke Newington by Sue DoeWomen from Hackney’s History: Stoke Newington by Sue Doe
Women from Hackney’s History: Stoke Newington by Sue DoeHistory of Stoke Newington
150 vues21 diapositives
REPRESENTATION - GAUNTLET.pptx par
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptxiammrhaywood
100 vues26 diapositives

Dernier(20)

PLASMA PROTEIN (2).pptx par MEGHANA C
PLASMA PROTEIN (2).pptxPLASMA PROTEIN (2).pptx
PLASMA PROTEIN (2).pptx
MEGHANA C68 vues
REPRESENTATION - GAUNTLET.pptx par iammrhaywood
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptx
iammrhaywood100 vues
Class 10 English lesson plans par TARIQ KHAN
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
TARIQ KHAN288 vues
Structure and Functions of Cell.pdf par Nithya Murugan
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan545 vues
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx par ISSIP
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptxEIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
ISSIP369 vues
11.30.23 Poverty and Inequality in America.pptx par mary850239
11.30.23 Poverty and Inequality in America.pptx11.30.23 Poverty and Inequality in America.pptx
11.30.23 Poverty and Inequality in America.pptx
mary850239160 vues
The Accursed House by Émile Gaboriau par DivyaSheta
The Accursed House  by Émile GaboriauThe Accursed House  by Émile Gaboriau
The Accursed House by Émile Gaboriau
DivyaSheta201 vues

Odoo Building a website _ For the browser

  • 1. Odoo Building a website : For the browser
  • 2. ● Odoo 16 building a website to the browser.which can be done by controllers of a module , controllers which help as to configure front end module and also helps to interpret browser request and send database . ● Here let us check how can we configure a particular controller and how can we navigate a particular url and then return our data.
  • 3. Add Controller for the website.
  • 4. Just define a controllers directory and just create a python file , then define a class first . Just define a class ; And import http from odoo at the top.
  • 5. • Define the particular HTTP root , which is a method decorator using for routing purpose which allows to navigate for that particular url. • Define http.route and /my/order is the url . • type is http • auth = user .(auth can be used for give the access for this url ) • website = True(Which means the controller is linked with the website.)
  • 6. auth • auth are in different types , mainly public user and none. • public means anyone can access to this url . • user means only the login users can access. • none means it is always active.
  • 7. Just define a function . • Then we can return the data that we are needed and if we need to fetch any datas we needed from the backend and that can be fetch and then return here. • The “Helloo” is return on the website.
  • 8. • Here just put our url “/my/order” on the website we can see the output is shown the website page.
  • 9. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo.