Webdav, Caldav & Co. in Odoo

3,728 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,728
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
61
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Webdav, Caldav & Co. in Odoo

  1. 1. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 1 „Webdav, Caldav & Co. in Odoo“
  2. 2. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 2 Agenda What is Webdav? Comparing solution Mobile Apps vs. Native Integration Webdav in OpenERP / Odoo Example: Carddav implementation in OpenERP v7 Having Fun Next Steps to go
  3. 3. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 3 What is webdav? short for: Web Distributed Authoring and Versioning It extends HTTP (RFC 2518, RFC 4918) [2007] Carddav = Webdav + vCard [2011 Apple] Caldav = Webdav + iCalendar [2003 IETF] Groupdav = Webdav + Caldav + Carddav So you can sync files, addresses and calendar data to one standard protocol
  4. 4. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 4 Mobile apps vs webdav Advantage apps: More freedom Simple to implement Advantage Webdav in Odoo One implementation for all platforms Stick to Python Independent from 3rd vendors (like Google)
  5. 5. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 5 Webdav in OpenERP (before) Based on document.directory (flexible, but not easy) Webdav is slow (so not useable) Carddav a module from Vertel for OpenERP 6.1 Caldav was removed in OpenERP 7 Webdav was removed in Odoo 8 Note: clients evolve as well
  6. 6. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 6 Carddav implementation v7 Fixing webdav => MP has not reviewed Provide a module fork: document_webdav_fast base_vcard to map a openobject to vCard class
  7. 7. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 7 Carddav implementation v7 (2) Using AbstractModel for easy reuse Using vcard_property to easy configure matching _fill_get_vcard and _fill_set_vcard for complexer mapping Store additional unmapped carddav data in vcard_properties field document_carddav module to bring vCard together with webdav http://odoo.local/webdav/dbname/addressbooks/users/demo/a/m- res.partner/default/
  8. 8. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 8 Having Fun - First Use Carddav for other objects crm_vcard module https://odoo.local/webdav/dbname/addressbooks/users/ demo/a/m-crm.lead/default/
  9. 9. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 9 Having Fun - Second Using filters http://odoo.local/webdav/dbname/addressbooks/users/ demo/a/m-res.partner/filtered-71/
  10. 10. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 10 Having Fun - Third Odoo meets OwnCloud (PoC) Sync your ir.attachments locally like Dropbox Odoo webdav + OwnCloud external storage Alternative solution use OwnCloud client (webdav client) directly with Odoo (not tested yet)
  11. 11. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 11 Next Steps to go Become a community project Caldav for OpenERP v7 provided by Intero Technologies GmbH For Odoo v8 needs some changes on server handling Calender model changes in odoo v8, but hopefully easy to remap Add base_vcard_import for easy migration from old server base_vcard_import + connector = carddav client
  12. 12. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 12 Q&A https://github.com/initOS/openerp-dav Twitter: @OSguard IRC: OSguard initOS GmbH & Co. KG An der Eisenbahn 1 D-21224 Rosengarten Telefon: +49 4105 56156-0 Fax: +49 4105 56156-10 e-Mail: info@initos.com initOS GmbH & Co. KG Hegelstrasse 28 D-39104 Magdeburg Telefon: +49 391 5385640-0 Fax: +49 391 5385640-1 e-Mail: info@initos.com
  13. 13. initOS GmbH&Co. KG SoftwareEngineering-Communication -Consulting An der Eisenbahn 1 DE-21224 Rosengarten Managingdirectors: Dipl.-Wirt.-Inf. Frederik Kramer Dipl.-Ing. (FH) Torsten Francke Liablecompany: initOS VerwaltungsGmbH Amtsgericht: Tostedt, HRA 201840 USt-IdNr.:DE275698169 Steuer-Nr.: 15/205/21402 CommerzbankHamburg Konto: 7411 66 300 BLZ:200 400 00 IBAN: DE54 2004 0000 0741 1663 00 BIC: COBADEHHXXX Date:04.06.2014 MarkusSchneider Slide: 13

×