SlideShare uma empresa Scribd logo
1 de 49
Baixar para ler offline
OpenChatter and
                                                            mail integration
                                                                   Thibault Delavallée




OpenERP Community, Customers and Partners summit   10 April 2012                         1
Introduction

   ●   Being Social … what is it ?




OpenERP Community, Customers and Partners summit   10 April 2012
Introduction

   ●   Being Social … what is it ?
         –   more Facebook posts than
             emails sent
         –   companies using Twitter average
             2 times more leads
         –   networking through social medias
             more and more crucial

             → not only Buzz !




OpenERP Community, Customers and Partners summit   10 April 2012
Introduction

   ●   Being Social … what is it ?
         –   more Facebook posts than
             emails sent
         –   companies using Twitter average
             2 times more leads
         –   networking through social medias
             more and more crucial

             → not only Buzz !

   ●   People have incorporated social media in their lifes
   ●   What about companies ?

OpenERP Community, Customers and Partners summit   10 April 2012
Introduction

   ●   Daily life in a company ...
         –   invoices to send, receive, (re)encode, phonecalls, emails, …
             → inefficient !
         –   still struggling with stone age !




   ●   This process should be improved …
   ●   … and OpenERP will do it !




OpenERP Community, Customers and Partners summit   10 April 2012
Introduction

   ●   Daily life in a company ...
         –   invoices to send, receive, (re)encode, phonecalls, emails, …
             → inefficient !
         –   still struggling with stone age !




   ●   This process should be improved …
   ●   … and OpenERP will do it !


                         OpenChatter, a new social feature !




OpenERP Community, Customers and Partners summit   10 April 2012
What is OpenChatter ?

   ●   Because a demo is worth a thousand words …




OpenERP Community, Customers and Partners summit   10 April 2012
What is OpenChatter ?

   ●   Because a demo is worth a thousand words …
   ●   Summary
         –   collection of mail.message
         –   managed by mail.thread
         –   possibly overridden by the addon
         –   displayed through Thread and Wall widgets
   ●   Let's dive into some technical aspects !




OpenERP Community, Customers and Partners summit   10 April 2012
What is OpenChatter ?

   ●   Transparent messaging system
   ●   Discussions about documents
   ●   Integration of emails
   ●   System notifications and res logs cleaning
   ●   Threaded design
   ●   Discussion groups
   ●   Easy internal and external user inclusion in a discussion
   ●   Follow mechanism
   ●   Central feeds page: Wall
   ●   “Need action” mechanism
   ●   Easy addon update to OpenChatter
OpenERP Community, Customers and Partners summit   10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   Thread widget and Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   Thread widget and Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
mail.message

   ●   Models every kind of message, not just emails
   ●   type: notification, comment, email
         –   notification: state update, stage change, logs
             → no more res.log
             → screen cleaning
         –   comment: user comments
         –   email: emails going from and to the mail gateway




OpenERP Community, Customers and Partners summit   10 April 2012
mail.message

   ●   Models every kind of message, not just emails
   ●   type: notification, comment, email
   ●   subtype: plain, html → body_text, body_html
         –   body: calculated body matching subtype
         –   comments and notifications in html




OpenERP Community, Customers and Partners summit   10 April 2012
mail.message

   ●   Models every kind of message, not just emails
   ●   type: notification, comment, email
   ●   subtype: plain, html
   ●   threaded design: parent_id




OpenERP Community, Customers and Partners summit   10 April 2012
mail.message

   ●   Models every kind of message, not just emails
   ●   type: notification, comment, email
   ●   subtype: plain, html
   ●   threaded design: parent_id
   ●   email API




OpenERP Community, Customers and Partners summit   10 April 2012
mail.thread

   ●   mixin class
         –   holds API methods !
         –   message_ids field disappeared
         –   temporary field for web-client widget display and GTK-client
             compatibility




OpenERP Community, Customers and Partners summit   10 April 2012
mail.thread

   ●   Thread management




OpenERP Community, Customers and Partners summit   10 April 2012
mail.thread

   ●   Thread management
   ●   Subscription management




OpenERP Community, Customers and Partners summit   10 April 2012
mail.thread

   ●   Thread management
   ●   Subscription management
   ●   Notification and Wall management




OpenERP Community, Customers and Partners summit   10 April 2012
mail.subscription

   ●   Models user subscriptions to records
         –   many2many-like: user_id, res_model, res_id




OpenERP Community, Customers and Partners summit   10 April 2012
mail.subscription

   ●   Automatic subscription
         –   when creating/updating a record
         –   when posting a comment
   ●   Manual subscription
         –   Follow / unfollow buttons
         –   Invite button




OpenERP Community, Customers and Partners summit   10 April 2012
mail.subscription

   ●   Subscription API in mail.thread




OpenERP Community, Customers and Partners summit   10 April 2012
mail.notification

   ●   Models notifications pushed to users to display the Wall
         –   many2many: user_id, message_id




   ●   Push
         –   user follows a record
         –   user is requested in message body (@login)
         –   user is requested to perform an action (ir.needaction)




OpenERP Community, Customers and Partners summit   10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   Thread widget and Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
Thread widget

   ●   Everything contained in mail addon
       → nice example of the new web client possibilities !
   ●   Thread widget: handles the display of a thread of
       messages




OpenERP Community, Customers and Partners summit   10 April 2012
Thread widget

   ●   Everything contained in mail addon
       → nice example of the new web client possibilities !
   ●   Thread widget: handles the display of a thread of
       messages
   ●   ThreadView widget: handles the display of OpenChatter
       on a document
         –   messages thread
         –   actions
         –   followers




OpenERP Community, Customers and Partners summit   10 April 2012
Feeds page: Wall

   ●   Client action, calling the Wall widget




   ●   Shows recent threads
   ●   Manage threads
         –   hide: delete notification
         –   delete: delete message if owner
         –   start a discussion
         –   reply: add a reply to the thread

OpenERP Community, Customers and Partners summit   10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   Thread widget and Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
Share and invite

   ●   Share extends mail.thread
       → add an Invite button and a new feature to OpenChatter

   ●   Invite mechanism based on share
         –   simplified process, only give emails
         –   creates shared users if email not in database
         –   subscribes users to document
         –   pushes notifications




OpenERP Community, Customers and Partners summit   10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   Thread widget and Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
Need action mechanism

   ●   Ex: hr_holidays waiting validation
         –   notify manager
         –   counters in menu




OpenERP Community, Customers and Partners summit   10 April 2012
Need action mechanism

   ●   Ex: hr_holidays waiting validation
         –   notify manager
         –   counters in menu
   ●   ir.needaction_mixin


                       user_id     res_model       res_id
                                                                    ●   update record




OpenERP Community, Customers and Partners summit    10 April 2012
Need action mechanism

   ●   Ex: hr_holidays waiting validation
         –   notify manager
         –   counters in menu
   ●   ir.needaction


                       user_id     res_model       res_id
                                                                    ●   update record

                                                                    ●   get_needaction_user_ids




OpenERP Community, Customers and Partners summit    10 April 2012
Need action mechanism

   ●   Ex: hr_holidays waiting validation
           –   notify manager
           –   counters in menu
   ●   ir.needaction
    User                                                            Document


                       user_id     res_model       res_id
                                                                               ●   update record

                                                                               ●   get_needaction_user_ids

                                                                               ●   update table




OpenERP Community, Customers and Partners summit    10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   Thread widget and Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
Howto: use OpenChatter in my addon

   ●   Easy as adding 2 lines of code !




OpenERP Community, Customers and Partners summit   10 April 2012
Howto: use OpenChatter in my addon

   ●   System notification: self.message_append_note




         –   calls message_append that handles message data
         –   calls message_create that
                            ●   creates the message
                            ●   parses the body to find @login
                            ●   pushes to users following the document




OpenERP Community, Customers and Partners summit   10 April 2012
Howto: subscription management

   ●   Ex: project manager should follow all its tasks
   ●   Avoid doing it manually: override message_get_subscribers !




OpenERP Community, Customers and Partners summit   10 April 2012
Howto: subscription management

   ●   Ex: project manager should follow all its tasks
   ●   Avoid doing it manually: override message_get_subscribers !
   ●   Pro:
         –   small code addition to project.task
         –   changing the project manager automatically update the followers
   ●   Con:
         –   project manager cannot unfollow its tasks …
         –   but he can hide notifications if necessary




OpenERP Community, Customers and Partners summit   10 April 2012
Howto: control displayed messages

   ●   ex: res.users OpenChatter should show
         –   messages related to this user (res.users, user_id)
         –   messages pushed to this user (contains @login)
   ●   Override message_load !




OpenERP Community, Customers and Partners summit   10 April 2012
Howto: notifications guidelines

   ●   Avoid unnecessary content
         –   short sentences
         –   do not include record name
   ●   User simple and clean style
         –   html tags supported → b, em
         –   Main word(s) in bold
   ●   Easily include of someone in discussion: @login




OpenERP Community, Customers and Partners summit   10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   Thread widget and Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
New features

   ●   Attachments
         –   keep attachments linked to records
         –   add a link from a comment to an
             attachment




OpenERP Community, Customers and Partners summit   10 April 2012
New features

   ●   Attachments
   ●   Checklists
         –   embed checklists in comments
         –   on-the-fly creation and edition
         –   checks directly in comments
         –   see progression




OpenERP Community, Customers and Partners summit   10 April 2012
New features

   ●   Attachments
   ●   Checklists
   ●   Voting system
   ●   Custom name_get for integrating in kanban views
   ●   Polling new messages on the Wall




OpenERP Community, Customers and Partners summit   10 April 2012
New features

   ●   Open to remarks and suggestions !
   ●   Open topics
         –   what do you need to see on the Wall ?
         –   sort notifications ?
         –   how to follow all sale orders ?
         –   action center ?
         –   ...




OpenERP Community, Customers and Partners summit   10 April 2012
Outline

   ●   Introduction
   ●   What is OpenChatter ?
   ●   Internals and API
   ●   The Wall
   ●   Share and invite
   ●   Need action mechanism
   ●   How to use OpenChatter in my addon ?
   ●   Work in progess
   ●   Conclusion



OpenERP Community, Customers and Partners summit   10 April 2012
Conclusion

   ●   Social not only a Buzzword !
   ●   Still a long way to a good use of social features in companies
   ●   OpenChatter
         –   centralizes notifications, comments and emails
         –   Feeds main page
         –   invite mechanism based on share
         –   integration with the mail gateway
         –   easy integration in addons !




OpenERP Community, Customers and Partners summit   10 April 2012
Conclusion




                      Thank you for your attention !




OpenERP Community, Customers and Partners summit   10 April 2012

Mais conteúdo relacionado

Semelhante a OpenERP - OpenChatter & mail integration

OpenERP - Sharing OpenERP content & New social features
OpenERP - Sharing OpenERP content & New social featuresOpenERP - Sharing OpenERP content & New social features
OpenERP - Sharing OpenERP content & New social features
Odoo
 
Экосистема Evernote и каналы продвижения партнерских проектов
Экосистема Evernote и каналы продвижения партнерских проектовЭкосистема Evernote и каналы продвижения партнерских проектов
Экосистема Evernote и каналы продвижения партнерских проектов
Evernote
 
OpenERP - 2012 OpenERP Strategy
OpenERP - 2012 OpenERP StrategyOpenERP - 2012 OpenERP Strategy
OpenERP - 2012 OpenERP Strategy
Odoo
 
OpenERP - Building a better, global product with the community
OpenERP - Building a better, global product with the communityOpenERP - Building a better, global product with the community
OpenERP - Building a better, global product with the community
Odoo
 
Best Practices with Zend Framework - Matthew Weier O'Phinney
Best Practices with Zend Framework - Matthew Weier O'PhinneyBest Practices with Zend Framework - Matthew Weier O'Phinney
Best Practices with Zend Framework - Matthew Weier O'Phinney
dpc
 
The Business of Open Models
The Business of Open ModelsThe Business of Open Models
The Business of Open Models
Dirk Riehle
 

Semelhante a OpenERP - OpenChatter & mail integration (20)

OpenERP - Sharing OpenERP content & New social features
OpenERP - Sharing OpenERP content & New social featuresOpenERP - Sharing OpenERP content & New social features
OpenERP - Sharing OpenERP content & New social features
 
Экосистема Evernote и каналы продвижения партнерских проектов
Экосистема Evernote и каналы продвижения партнерских проектовЭкосистема Evernote и каналы продвижения партнерских проектов
Экосистема Evernote и каналы продвижения партнерских проектов
 
Openerp Rise Web
Openerp Rise WebOpenerp Rise Web
Openerp Rise Web
 
UN World Food Programme Standards & Best Practises (European Drupal Days 2015)
UN World Food Programme Standards & Best Practises (European Drupal Days 2015)UN World Food Programme Standards & Best Practises (European Drupal Days 2015)
UN World Food Programme Standards & Best Practises (European Drupal Days 2015)
 
Timo Sirainen - Dovecot Story - Mindtrek 2016
Timo Sirainen - Dovecot Story - Mindtrek 2016Timo Sirainen - Dovecot Story - Mindtrek 2016
Timo Sirainen - Dovecot Story - Mindtrek 2016
 
OpenERP - 2012 OpenERP Strategy
OpenERP - 2012 OpenERP StrategyOpenERP - 2012 OpenERP Strategy
OpenERP - 2012 OpenERP Strategy
 
Minimum viable product @headstart pune Feb 2020
Minimum viable product @headstart pune Feb 2020Minimum viable product @headstart pune Feb 2020
Minimum viable product @headstart pune Feb 2020
 
OWF13 - Is there an Open (Source) Europe?
OWF13 - Is there an Open (Source) Europe?OWF13 - Is there an Open (Source) Europe?
OWF13 - Is there an Open (Source) Europe?
 
OpenERP - Building a better, global product with the community
OpenERP - Building a better, global product with the communityOpenERP - Building a better, global product with the community
OpenERP - Building a better, global product with the community
 
PulsoConf: Platform & Community - Dev Outreach @ Evernote
PulsoConf: Platform & Community - Dev Outreach @ EvernotePulsoConf: Platform & Community - Dev Outreach @ Evernote
PulsoConf: Platform & Community - Dev Outreach @ Evernote
 
Citizen Outreach and Engagement
Citizen Outreach and EngagementCitizen Outreach and Engagement
Citizen Outreach and Engagement
 
Android Study Jam
Android Study Jam Android Study Jam
Android Study Jam
 
Jornadas Odoo 2015 - Charla con Odoo S. A.
Jornadas Odoo 2015 - Charla con Odoo S. A.Jornadas Odoo 2015 - Charla con Odoo S. A.
Jornadas Odoo 2015 - Charla con Odoo S. A.
 
We Need to Talk: How Communication Helps Code
We Need to Talk: How Communication Helps CodeWe Need to Talk: How Communication Helps Code
We Need to Talk: How Communication Helps Code
 
LF_APIStrat17_Developer Portals - When Docs Become DX
LF_APIStrat17_Developer Portals - When Docs Become DXLF_APIStrat17_Developer Portals - When Docs Become DX
LF_APIStrat17_Developer Portals - When Docs Become DX
 
Best Practices with Zend Framework - Matthew Weier O'Phinney
Best Practices with Zend Framework - Matthew Weier O'PhinneyBest Practices with Zend Framework - Matthew Weier O'Phinney
Best Practices with Zend Framework - Matthew Weier O'Phinney
 
Becoming an IBM Connections Developer
Becoming an IBM Connections DeveloperBecoming an IBM Connections Developer
Becoming an IBM Connections Developer
 
Single-Sourcing with RoboHelp 9: Presentation by WritePoint
Single-Sourcing with RoboHelp 9: Presentation by WritePointSingle-Sourcing with RoboHelp 9: Presentation by WritePoint
Single-Sourcing with RoboHelp 9: Presentation by WritePoint
 
Introduction to drupal
Introduction to drupalIntroduction to drupal
Introduction to drupal
 
The Business of Open Models
The Business of Open ModelsThe Business of Open Models
The Business of Open Models
 

Mais de Odoo

Mais de Odoo (20)

Timesheet Workshop: The Timesheet App People Love!
Timesheet Workshop: The Timesheet App People Love!Timesheet Workshop: The Timesheet App People Love!
Timesheet Workshop: The Timesheet App People Love!
 
Odoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-ViewerOdoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-Viewer
 
Keynote - Vision & Strategy
Keynote - Vision & StrategyKeynote - Vision & Strategy
Keynote - Vision & Strategy
 
Opening Keynote - Unveilling Odoo 14
Opening Keynote - Unveilling Odoo 14Opening Keynote - Unveilling Odoo 14
Opening Keynote - Unveilling Odoo 14
 
Extending Odoo with a Comprehensive Budgeting and Forecasting Capability
Extending Odoo with a Comprehensive Budgeting and Forecasting CapabilityExtending Odoo with a Comprehensive Budgeting and Forecasting Capability
Extending Odoo with a Comprehensive Budgeting and Forecasting Capability
 
Managing Multi-channel Selling with Odoo
Managing Multi-channel Selling with OdooManaging Multi-channel Selling with Odoo
Managing Multi-channel Selling with Odoo
 
Product Configurator: Advanced Use Case
Product Configurator: Advanced Use CaseProduct Configurator: Advanced Use Case
Product Configurator: Advanced Use Case
 
Accounting Automation: How Much Money We Saved and How?
Accounting Automation: How Much Money We Saved and How?Accounting Automation: How Much Money We Saved and How?
Accounting Automation: How Much Money We Saved and How?
 
Rock Your Logistics with Advanced Operations
Rock Your Logistics with Advanced OperationsRock Your Logistics with Advanced Operations
Rock Your Logistics with Advanced Operations
 
Transition from a cost to a flow-centric organization
Transition from a cost to a flow-centric organizationTransition from a cost to a flow-centric organization
Transition from a cost to a flow-centric organization
 
Synchronization: The Supply Chain Response to Overcome the Crisis
Synchronization: The Supply Chain Response to Overcome the CrisisSynchronization: The Supply Chain Response to Overcome the Crisis
Synchronization: The Supply Chain Response to Overcome the Crisis
 
Running a University with Odoo
Running a University with OdooRunning a University with Odoo
Running a University with Odoo
 
Down Payments on Purchase Orders in Odoo
Down Payments on Purchase Orders in OdooDown Payments on Purchase Orders in Odoo
Down Payments on Purchase Orders in Odoo
 
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach foodOdoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
 
Migration from Salesforce to Odoo
Migration from Salesforce to OdooMigration from Salesforce to Odoo
Migration from Salesforce to Odoo
 
Preventing User Mistakes by Using Machine Learning
Preventing User Mistakes by Using Machine LearningPreventing User Mistakes by Using Machine Learning
Preventing User Mistakes by Using Machine Learning
 
Becoming an Odoo Expert: How to Prepare for the Certification
Becoming an Odoo Expert: How to Prepare for the Certification Becoming an Odoo Expert: How to Prepare for the Certification
Becoming an Odoo Expert: How to Prepare for the Certification
 
Instant Printing of any Odoo Report or Shipping Label
Instant Printing of any Odoo Report or Shipping LabelInstant Printing of any Odoo Report or Shipping Label
Instant Printing of any Odoo Report or Shipping Label
 
How Odoo helped an Organization Grow 3 Fold
How Odoo helped an Organization Grow 3 FoldHow Odoo helped an Organization Grow 3 Fold
How Odoo helped an Organization Grow 3 Fold
 
From Shopify to Odoo
From Shopify to OdooFrom Shopify to Odoo
From Shopify to Odoo
 

Último

Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
amitlee9823
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
dlhescort
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
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
 
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
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Dipal Arora
 
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
 

Último (20)

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
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
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 Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
 
Falcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in indiaFalcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in india
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
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...
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
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
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
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
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdf
 

OpenERP - OpenChatter & mail integration

  • 1. OpenChatter and mail integration Thibault Delavallée OpenERP Community, Customers and Partners summit 10 April 2012 1
  • 2. Introduction ● Being Social … what is it ? OpenERP Community, Customers and Partners summit 10 April 2012
  • 3. Introduction ● Being Social … what is it ? – more Facebook posts than emails sent – companies using Twitter average 2 times more leads – networking through social medias more and more crucial → not only Buzz ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 4. Introduction ● Being Social … what is it ? – more Facebook posts than emails sent – companies using Twitter average 2 times more leads – networking through social medias more and more crucial → not only Buzz ! ● People have incorporated social media in their lifes ● What about companies ? OpenERP Community, Customers and Partners summit 10 April 2012
  • 5. Introduction ● Daily life in a company ... – invoices to send, receive, (re)encode, phonecalls, emails, … → inefficient ! – still struggling with stone age ! ● This process should be improved … ● … and OpenERP will do it ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 6. Introduction ● Daily life in a company ... – invoices to send, receive, (re)encode, phonecalls, emails, … → inefficient ! – still struggling with stone age ! ● This process should be improved … ● … and OpenERP will do it ! OpenChatter, a new social feature ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 7. What is OpenChatter ? ● Because a demo is worth a thousand words … OpenERP Community, Customers and Partners summit 10 April 2012
  • 8. What is OpenChatter ? ● Because a demo is worth a thousand words … ● Summary – collection of mail.message – managed by mail.thread – possibly overridden by the addon – displayed through Thread and Wall widgets ● Let's dive into some technical aspects ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 9. What is OpenChatter ? ● Transparent messaging system ● Discussions about documents ● Integration of emails ● System notifications and res logs cleaning ● Threaded design ● Discussion groups ● Easy internal and external user inclusion in a discussion ● Follow mechanism ● Central feeds page: Wall ● “Need action” mechanism ● Easy addon update to OpenChatter OpenERP Community, Customers and Partners summit 10 April 2012
  • 10. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● Thread widget and Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 11. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● Thread widget and Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 12. mail.message ● Models every kind of message, not just emails ● type: notification, comment, email – notification: state update, stage change, logs → no more res.log → screen cleaning – comment: user comments – email: emails going from and to the mail gateway OpenERP Community, Customers and Partners summit 10 April 2012
  • 13. mail.message ● Models every kind of message, not just emails ● type: notification, comment, email ● subtype: plain, html → body_text, body_html – body: calculated body matching subtype – comments and notifications in html OpenERP Community, Customers and Partners summit 10 April 2012
  • 14. mail.message ● Models every kind of message, not just emails ● type: notification, comment, email ● subtype: plain, html ● threaded design: parent_id OpenERP Community, Customers and Partners summit 10 April 2012
  • 15. mail.message ● Models every kind of message, not just emails ● type: notification, comment, email ● subtype: plain, html ● threaded design: parent_id ● email API OpenERP Community, Customers and Partners summit 10 April 2012
  • 16. mail.thread ● mixin class – holds API methods ! – message_ids field disappeared – temporary field for web-client widget display and GTK-client compatibility OpenERP Community, Customers and Partners summit 10 April 2012
  • 17. mail.thread ● Thread management OpenERP Community, Customers and Partners summit 10 April 2012
  • 18. mail.thread ● Thread management ● Subscription management OpenERP Community, Customers and Partners summit 10 April 2012
  • 19. mail.thread ● Thread management ● Subscription management ● Notification and Wall management OpenERP Community, Customers and Partners summit 10 April 2012
  • 20. mail.subscription ● Models user subscriptions to records – many2many-like: user_id, res_model, res_id OpenERP Community, Customers and Partners summit 10 April 2012
  • 21. mail.subscription ● Automatic subscription – when creating/updating a record – when posting a comment ● Manual subscription – Follow / unfollow buttons – Invite button OpenERP Community, Customers and Partners summit 10 April 2012
  • 22. mail.subscription ● Subscription API in mail.thread OpenERP Community, Customers and Partners summit 10 April 2012
  • 23. mail.notification ● Models notifications pushed to users to display the Wall – many2many: user_id, message_id ● Push – user follows a record – user is requested in message body (@login) – user is requested to perform an action (ir.needaction) OpenERP Community, Customers and Partners summit 10 April 2012
  • 24. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● Thread widget and Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 25. Thread widget ● Everything contained in mail addon → nice example of the new web client possibilities ! ● Thread widget: handles the display of a thread of messages OpenERP Community, Customers and Partners summit 10 April 2012
  • 26. Thread widget ● Everything contained in mail addon → nice example of the new web client possibilities ! ● Thread widget: handles the display of a thread of messages ● ThreadView widget: handles the display of OpenChatter on a document – messages thread – actions – followers OpenERP Community, Customers and Partners summit 10 April 2012
  • 27. Feeds page: Wall ● Client action, calling the Wall widget ● Shows recent threads ● Manage threads – hide: delete notification – delete: delete message if owner – start a discussion – reply: add a reply to the thread OpenERP Community, Customers and Partners summit 10 April 2012
  • 28. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● Thread widget and Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 29. Share and invite ● Share extends mail.thread → add an Invite button and a new feature to OpenChatter ● Invite mechanism based on share – simplified process, only give emails – creates shared users if email not in database – subscribes users to document – pushes notifications OpenERP Community, Customers and Partners summit 10 April 2012
  • 30. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● Thread widget and Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 31. Need action mechanism ● Ex: hr_holidays waiting validation – notify manager – counters in menu OpenERP Community, Customers and Partners summit 10 April 2012
  • 32. Need action mechanism ● Ex: hr_holidays waiting validation – notify manager – counters in menu ● ir.needaction_mixin user_id res_model res_id ● update record OpenERP Community, Customers and Partners summit 10 April 2012
  • 33. Need action mechanism ● Ex: hr_holidays waiting validation – notify manager – counters in menu ● ir.needaction user_id res_model res_id ● update record ● get_needaction_user_ids OpenERP Community, Customers and Partners summit 10 April 2012
  • 34. Need action mechanism ● Ex: hr_holidays waiting validation – notify manager – counters in menu ● ir.needaction User Document user_id res_model res_id ● update record ● get_needaction_user_ids ● update table OpenERP Community, Customers and Partners summit 10 April 2012
  • 35. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● Thread widget and Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 36. Howto: use OpenChatter in my addon ● Easy as adding 2 lines of code ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 37. Howto: use OpenChatter in my addon ● System notification: self.message_append_note – calls message_append that handles message data – calls message_create that ● creates the message ● parses the body to find @login ● pushes to users following the document OpenERP Community, Customers and Partners summit 10 April 2012
  • 38. Howto: subscription management ● Ex: project manager should follow all its tasks ● Avoid doing it manually: override message_get_subscribers ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 39. Howto: subscription management ● Ex: project manager should follow all its tasks ● Avoid doing it manually: override message_get_subscribers ! ● Pro: – small code addition to project.task – changing the project manager automatically update the followers ● Con: – project manager cannot unfollow its tasks … – but he can hide notifications if necessary OpenERP Community, Customers and Partners summit 10 April 2012
  • 40. Howto: control displayed messages ● ex: res.users OpenChatter should show – messages related to this user (res.users, user_id) – messages pushed to this user (contains @login) ● Override message_load ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 41. Howto: notifications guidelines ● Avoid unnecessary content – short sentences – do not include record name ● User simple and clean style – html tags supported → b, em – Main word(s) in bold ● Easily include of someone in discussion: @login OpenERP Community, Customers and Partners summit 10 April 2012
  • 42. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● Thread widget and Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 43. New features ● Attachments – keep attachments linked to records – add a link from a comment to an attachment OpenERP Community, Customers and Partners summit 10 April 2012
  • 44. New features ● Attachments ● Checklists – embed checklists in comments – on-the-fly creation and edition – checks directly in comments – see progression OpenERP Community, Customers and Partners summit 10 April 2012
  • 45. New features ● Attachments ● Checklists ● Voting system ● Custom name_get for integrating in kanban views ● Polling new messages on the Wall OpenERP Community, Customers and Partners summit 10 April 2012
  • 46. New features ● Open to remarks and suggestions ! ● Open topics – what do you need to see on the Wall ? – sort notifications ? – how to follow all sale orders ? – action center ? – ... OpenERP Community, Customers and Partners summit 10 April 2012
  • 47. Outline ● Introduction ● What is OpenChatter ? ● Internals and API ● The Wall ● Share and invite ● Need action mechanism ● How to use OpenChatter in my addon ? ● Work in progess ● Conclusion OpenERP Community, Customers and Partners summit 10 April 2012
  • 48. Conclusion ● Social not only a Buzzword ! ● Still a long way to a good use of social features in companies ● OpenChatter – centralizes notifications, comments and emails – Feeds main page – invite mechanism based on share – integration with the mail gateway – easy integration in addons ! OpenERP Community, Customers and Partners summit 10 April 2012
  • 49. Conclusion Thank you for your attention ! OpenERP Community, Customers and Partners summit 10 April 2012