Connect Servala Portal User to Odoo Contact (Partner) #60
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: servala/servala-portal#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stories
As a user, I want to see my contact details stored in the CRM
As the system, I want to have a connection from the portal user to a contact in the CRM
Implementation Notes
This is similar to #54 - we need to connect to the Odoo API and work with data in the
res.partner
model.When a user logs in for the first time, we search for the email address in the
res.partner
model.Then display some information in the users' profile:
function
parent_id.display_name
Only read access, no editing yet. Also, no caching, directly get this information from Odoo. Make sure to handle the situation when Odoo API should be inaccessible.
As discussed in our call today, I'll implement a method
User.get_odoo_contact(organization)
, as the Odoo contact may depend on the organization context, and retrieving it on the fly should be good enough for now. Will implement this as part of #54.