SlideShare une entreprise Scribd logo
1  sur  21
www.cybrosys.com
Changes Made on Technical Side of
Odoo in Version 7 to Version 10
INTRODUCTION
• This presentation will be helpful for the developers of Odoo
• You all know that odoo version 7 was called openERP
• Now it has changed to odoo
• There are lot of difference between version 7 to version 10
• All developers might have faced many issues at the beginning of their development
career, that no proper documents are maintained for the changes created in the latest
versions according to the previous versions.
• Odoo Release In February 2005.
• At That Time It Is Called Tiny ERP.
• Tiny ERP Has 4 Releases. Version 1, 2, 3 And 4.
• In April 2009 Odoo Releases Their 5’Th Version.
• At That Time It Changed its name to OpenERP.
• OpenERP Has 4 Versions. Version 5, 6, 6.1, And 7.
• After That OpenERP Changes To Odoo.
• The Version 8 Is Released On September 18, 2014.
• Odoo Latest Series Have 4 Versions-Version 8, 9, 10, And 11.
• Version 11 Is Coming Soon.
• In short, Versions Of Odoo 7 And Odoo 10 have so many differences in the technical
side.
MAIN DIFFERENCES
1) API (Application Programming Interface)
In Version 7 We Use A Different API Than We Use In Versions 8, 9, 10.
Example For Decorators Of New API:
@Api.Returns, @Api.Multi, @Api.One, @Api.Model, @Api.Constrains, @Api.Depends,
@Api.Onchange, @Api.Noguess
New API Is Used In V8, V9 And V10. V7 Does Not Use New API.
In V7(Old Api) We Have To Pass Parameters With The Function Like Database Cursor(Cr),
User Id(Uid), Context Dictionary(Context), And Record Ids(Ids).
• V8 And V9 use both old API and new API.
• In V8, V9 And V10(New API) Odoo introduce more object oriented feel to the
functions.
• We don’t need to put the parameters along with the function.
• Those parameters are hidden in the model.
• V10 uses only new API.
2) Pool
• The pool is dictionary object that stores the instances of OpenERP model.
• OpenERP can manage multiple databases.
• Every database has a different pool.
• Self.Pool is referencing the current database instances.
• Pool.Get() method is removed in odoo’s newest version.
• Version 7, 8 And 9 contain the pool object partially.
Odoo 10 Completely Removes The Pool Object.
3) Manifest File Name
V7 - __openerep__.Py
V8 - __openerep__.Py
V9 - __openerep__.Py
V10 - __manifest__.Py
4) Xml Tags
V7 - <Openerp>
V8 - <Openerp>
V9 - <Openerp>
V10 - <Odoo>
5) Xpath
V7 - <Xpath Expr="//Field[@Name='Amount']" And [@String='Amount']
V8 - <Xpath Expr="//Field[@Name='Amount']" And [@String='Amount']
V9 - <Xpath Expr="//Field[@Name='Amount']"
V10 - <Xpath Expr="//Field[@Name='Amount']"
Referencing The Xpath Expression With The String Is Removed From V9.
6) Env
V7 Does Not Use The Env Notion.
It Is The Notion Of New API.
Self.Env['Model.Name'] Is Used In New Api’s Instead
Of Self.Pool.Get('Model.Name').
7) Field Declaration
V7 - _columns = {
'Product_id': Fields.Many2one('Product.Product', 'Product'),
}
V7 Only Uses The Old Api
V8 - _columns = {
'Product_id': Fields.Many2one('Product.Product', 'Product'),
}
And
Product_id = Fields.Many2one('Product.Product', 'Product')
V8 Uses Both Old Api And New Api. That Is Why It Can Use Both Field Declaration Methods.
V9 - _columns = {
'Product_id': Fields.Many2one('Product.Product', 'Product'),
}
And
Product_id = Fields.Many2one('Product.Product', 'Product')
V9 Also Uses Both Old Api And New Api. So It Also Uses Both Field Declaration Methods.
V10 - Product_id = Fields.Many2one('Product.Product', 'Product')
V10 Uses Only The New Api.
8) Set Default Values To Fields.
V7 - _defaults = {
'Date': Lambda * A: Datetime.Datetime.Now()
}
V8 - _defaults = {
'Date': Lambda * A: Datetime.Datetime.Now()
}
And
Date = Fields.Date(String='Date', Default=Datetime.Now())
V9 - _defaults = {
'Date': Lambda * A: Datetime.Datetime.Now()
}
And
Date = Fields.Date(String='Date', Default=Datetime.Now())
V10 - Date = Fields.Date(String='Date', Default=Datetime.Now())
9) Java Script Changes
V7 - Function Openerp_pos_models(Instance, Module){
Var _t = Instance.Web._t;
}
V8 - Function Openerp_pos_models(Instance, Module){
Var _t = Instance.Web._t;
}
V9 - Odoo.Define('Barcode_integration.Interface', Function(Require) {
‘Use Strict’;
Var Core = Require(‘Web.Core’);
Var _t = Core._t;
});
V10 - Odoo.Define('Barcode_integration.Interface', Function(Require) {
‘Use Strict’;
Var Core = Require(‘Web.Core’);
Var _t = Core._t;
});
• in the v7 and v8, we use raw js/jquery .
• But in V9 and V10 we use backbone js.
• These are some basic changes made in the versions between 7 and 10.
• There are lot of changes from version 7 to version 10.
Refer this link for more:
https://www.cybrosys.com/blog/odoo-technical-differences
Thank You !
Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park,
Kakkancherry,
Calicut University P.O.
Calicut
Kerala, India - 673635.
Cybrosys Ltd
15, ST Antonys Road,
Forest Gate, London
England,
E79QA.
Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, Kerala,
India-682030.

Contenu connexe

Similaire à Changes made on technical side of odoo in version 7 to version 10

OpenERP Technical Memento
OpenERP Technical MementoOpenERP Technical Memento
OpenERP Technical Memento
Odoo
 
WebObjects Developer Tools
WebObjects Developer ToolsWebObjects Developer Tools
WebObjects Developer Tools
WO Community
 

Similaire à Changes made on technical side of odoo in version 7 to version 10 (20)

OpenERP Technical Memento
OpenERP Technical MementoOpenERP Technical Memento
OpenERP Technical Memento
 
Kubernetes Overview - Deploy your app with confidence
Kubernetes Overview - Deploy your app with confidenceKubernetes Overview - Deploy your app with confidence
Kubernetes Overview - Deploy your app with confidence
 
ELUNA2014: Developing and Testing an open source web application
ELUNA2014: Developing and Testing an open source web applicationELUNA2014: Developing and Testing an open source web application
ELUNA2014: Developing and Testing an open source web application
 
SAP ABAP online training
SAP ABAP online trainingSAP ABAP online training
SAP ABAP online training
 
API Services: Building State-of-the-Art APIs
API Services: Building State-of-the-Art APIsAPI Services: Building State-of-the-Art APIs
API Services: Building State-of-the-Art APIs
 
Eclipse 40 - Eclipse Summit Europe 2010
Eclipse 40 - Eclipse Summit Europe 2010Eclipse 40 - Eclipse Summit Europe 2010
Eclipse 40 - Eclipse Summit Europe 2010
 
The Ring programming language version 1.10 book - Part 13 of 212
The Ring programming language version 1.10 book - Part 13 of 212The Ring programming language version 1.10 book - Part 13 of 212
The Ring programming language version 1.10 book - Part 13 of 212
 
WebObjects Developer Tools
WebObjects Developer ToolsWebObjects Developer Tools
WebObjects Developer Tools
 
Angular4 tutorial
Angular4 tutorialAngular4 tutorial
Angular4 tutorial
 
SAP ABAP Online Course Training | Imaginelife
SAP ABAP Online Course Training | ImaginelifeSAP ABAP Online Course Training | Imaginelife
SAP ABAP Online Course Training | Imaginelife
 
Evolving Streaming Applications
Evolving Streaming ApplicationsEvolving Streaming Applications
Evolving Streaming Applications
 
Myths of Angular 2: What Angular Really Is
Myths of Angular 2: What Angular Really IsMyths of Angular 2: What Angular Really Is
Myths of Angular 2: What Angular Really Is
 
AEM and Sling
AEM and SlingAEM and Sling
AEM and Sling
 
AEM and Sling
AEM and SlingAEM and Sling
AEM and Sling
 
Xcode 6 release_notes
Xcode 6 release_notesXcode 6 release_notes
Xcode 6 release_notes
 
Api development with rails
Api development with railsApi development with rails
Api development with rails
 
What Makes a Great Open API?
What Makes a Great Open API?What Makes a Great Open API?
What Makes a Great Open API?
 
Continuous Automated Deployment with Apache ACE
Continuous Automated Deployment with Apache ACEContinuous Automated Deployment with Apache ACE
Continuous Automated Deployment with Apache ACE
 
The essence of the VivaCore code analysis library
The essence of the VivaCore code analysis libraryThe essence of the VivaCore code analysis library
The essence of the VivaCore code analysis library
 
Plone api
Plone apiPlone api
Plone api
 

Plus de Celine George

Plus de Celine George (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Make Down Payments in Odoo 17 Sales App
How to Make Down Payments in Odoo 17 Sales AppHow to Make Down Payments in Odoo 17 Sales App
How to Make Down Payments in Odoo 17 Sales App
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
How to Manage Engineering to Order in Odoo 17
How to Manage Engineering to Order in Odoo 17How to Manage Engineering to Order in Odoo 17
How to Manage Engineering to Order in Odoo 17
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 

Dernier

0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
Renandantas16
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
lizamodels9
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Abortion pills in Kuwait Cytotec pills in Kuwait
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 

Dernier (20)

0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 

Changes made on technical side of odoo in version 7 to version 10

  • 1. www.cybrosys.com Changes Made on Technical Side of Odoo in Version 7 to Version 10
  • 2. INTRODUCTION • This presentation will be helpful for the developers of Odoo • You all know that odoo version 7 was called openERP • Now it has changed to odoo • There are lot of difference between version 7 to version 10 • All developers might have faced many issues at the beginning of their development career, that no proper documents are maintained for the changes created in the latest versions according to the previous versions.
  • 3. • Odoo Release In February 2005. • At That Time It Is Called Tiny ERP. • Tiny ERP Has 4 Releases. Version 1, 2, 3 And 4. • In April 2009 Odoo Releases Their 5’Th Version. • At That Time It Changed its name to OpenERP.
  • 4. • OpenERP Has 4 Versions. Version 5, 6, 6.1, And 7. • After That OpenERP Changes To Odoo. • The Version 8 Is Released On September 18, 2014. • Odoo Latest Series Have 4 Versions-Version 8, 9, 10, And 11. • Version 11 Is Coming Soon. • In short, Versions Of Odoo 7 And Odoo 10 have so many differences in the technical side.
  • 6. 1) API (Application Programming Interface) In Version 7 We Use A Different API Than We Use In Versions 8, 9, 10. Example For Decorators Of New API: @Api.Returns, @Api.Multi, @Api.One, @Api.Model, @Api.Constrains, @Api.Depends, @Api.Onchange, @Api.Noguess New API Is Used In V8, V9 And V10. V7 Does Not Use New API. In V7(Old Api) We Have To Pass Parameters With The Function Like Database Cursor(Cr), User Id(Uid), Context Dictionary(Context), And Record Ids(Ids).
  • 7. • V8 And V9 use both old API and new API. • In V8, V9 And V10(New API) Odoo introduce more object oriented feel to the functions. • We don’t need to put the parameters along with the function. • Those parameters are hidden in the model. • V10 uses only new API.
  • 8. 2) Pool • The pool is dictionary object that stores the instances of OpenERP model. • OpenERP can manage multiple databases. • Every database has a different pool. • Self.Pool is referencing the current database instances. • Pool.Get() method is removed in odoo’s newest version. • Version 7, 8 And 9 contain the pool object partially. Odoo 10 Completely Removes The Pool Object.
  • 9. 3) Manifest File Name V7 - __openerep__.Py V8 - __openerep__.Py V9 - __openerep__.Py V10 - __manifest__.Py
  • 10. 4) Xml Tags V7 - <Openerp> V8 - <Openerp> V9 - <Openerp> V10 - <Odoo>
  • 11. 5) Xpath V7 - <Xpath Expr="//Field[@Name='Amount']" And [@String='Amount'] V8 - <Xpath Expr="//Field[@Name='Amount']" And [@String='Amount'] V9 - <Xpath Expr="//Field[@Name='Amount']" V10 - <Xpath Expr="//Field[@Name='Amount']" Referencing The Xpath Expression With The String Is Removed From V9.
  • 12. 6) Env V7 Does Not Use The Env Notion. It Is The Notion Of New API. Self.Env['Model.Name'] Is Used In New Api’s Instead Of Self.Pool.Get('Model.Name').
  • 13. 7) Field Declaration V7 - _columns = { 'Product_id': Fields.Many2one('Product.Product', 'Product'), } V7 Only Uses The Old Api V8 - _columns = { 'Product_id': Fields.Many2one('Product.Product', 'Product'), } And Product_id = Fields.Many2one('Product.Product', 'Product') V8 Uses Both Old Api And New Api. That Is Why It Can Use Both Field Declaration Methods.
  • 14. V9 - _columns = { 'Product_id': Fields.Many2one('Product.Product', 'Product'), } And Product_id = Fields.Many2one('Product.Product', 'Product') V9 Also Uses Both Old Api And New Api. So It Also Uses Both Field Declaration Methods. V10 - Product_id = Fields.Many2one('Product.Product', 'Product') V10 Uses Only The New Api.
  • 15. 8) Set Default Values To Fields. V7 - _defaults = { 'Date': Lambda * A: Datetime.Datetime.Now() } V8 - _defaults = { 'Date': Lambda * A: Datetime.Datetime.Now() } And
  • 16. Date = Fields.Date(String='Date', Default=Datetime.Now()) V9 - _defaults = { 'Date': Lambda * A: Datetime.Datetime.Now() } And Date = Fields.Date(String='Date', Default=Datetime.Now()) V10 - Date = Fields.Date(String='Date', Default=Datetime.Now())
  • 17. 9) Java Script Changes V7 - Function Openerp_pos_models(Instance, Module){ Var _t = Instance.Web._t; } V8 - Function Openerp_pos_models(Instance, Module){ Var _t = Instance.Web._t; }
  • 18. V9 - Odoo.Define('Barcode_integration.Interface', Function(Require) { ‘Use Strict’; Var Core = Require(‘Web.Core’); Var _t = Core._t; }); V10 - Odoo.Define('Barcode_integration.Interface', Function(Require) { ‘Use Strict’; Var Core = Require(‘Web.Core’); Var _t = Core._t; });
  • 19. • in the v7 and v8, we use raw js/jquery . • But in V9 and V10 we use backbone js. • These are some basic changes made in the versions between 7 and 10. • There are lot of changes from version 7 to version 10.
  • 20. Refer this link for more: https://www.cybrosys.com/blog/odoo-technical-differences
  • 21. Thank You ! Cybrosys Technologies Pvt. Ltd. Neospace, Kinfra Techno Park, Kakkancherry, Calicut University P.O. Calicut Kerala, India - 673635. Cybrosys Ltd 15, ST Antonys Road, Forest Gate, London England, E79QA. Cybrosys Technologies Pvt. Ltd. 1st Floor, Thapasya Building, Infopark, Kakkanad, Kochi, Kerala, India-682030.