How abstract-open-solutions/openvoip_click2dial works
This Odoo add-on lets a user initiate an OpenVoip call from a partner or contact’s phone or mobile field. The partner actions pass the selected number to shared call logic, which normalizes it, obtains the user and company settings, builds a verification value and provider URL, then either requests the provider or logs debug details. The README documents these configuration and debug capabilities; the sampled sources show the call path and settings models, but not the view XML internals.
Main entry points: click2dial.py Call preparation · res_users.py User VoIP settings · res_company.py Company VoIP settings · res_partner.xml Partner dial buttons
Components 10
Odoo interface
- Partner dial buttons
view/res_partner.xml - User settings form
view/res_users.xml - Company settings form
view/res_company.xml
VoIP settings
- User VoIP settings
model/res_users.py - Company VoIP settings
model/res_company.py
Call execution
- Partner dial actions
model/res_partner.py - Call preparation
click2dial.py
Other components
- Odoo user
- Odoo database
- OpenVoip service
Connections 10
- Odoo user → Partner dial buttons: clicks dial
- Partner dial buttons → Partner dial actions: invokes action
- Partner dial actions → Call preparation: passes number
- Call preparation → User VoIP settings: reads credentials
- Call preparation → Company VoIP settings: reads URL and debug
- User settings form → User VoIP settings: edits settings
- Company settings form → Company VoIP settings: edits settings
- User VoIP settings → Odoo database: persists settings
- Company VoIP settings → Odoo database: persists settings
- Call preparation → OpenVoip service: requests call