Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Run code and launch act_window upon login?

By
Gavin Yap
on 8/13/15, 11:25 PM 426 views

Hi All,


If my customers sign up a login account as a portal user.

How do I force this new portal user to update his/her profile (Name, address , contact via the res.partner object tied to the portal user)?

I am thinking of running code to check if his/her profile is completed. And if not, it will launch a act_window and directs him/her to a res.partner's form to fill the details.

How can I achieve that?   

I faced a similar need and tried the 'Automation'. Really, it didn't work with me due to some other problems I encountered. I suggest checking it and see. You can find this in V8 , settings->Technical->Automation->Automated Actions

Tarek Mohamed Ibrahim
on 8/13/15, 11:58 PM

I take a quick look it didn't work for me either. because the options are limited to a few events. Anyway I thought and had a workaround for my problem and I will post it.

Gavin Yap
on 8/14/15, 1:08 AM

I take a quick look it didn't work for me either. because the options are limited to a few events. Anyway I thought and had a workaround for my problem and I will post it.

Gavin Yap
on 8/14/15, 1:08 AM
0
Gavin Yap
On 8/14/15, 1:11 AM

The workaround that I did was to create a first menu item which will display everytime a user first login.

Usually it is the first item menu, and I may the "My Profile" menu_item to trigger a server_action.

With that, not only I can able to run code to check the relevant things that I need, I can also trigger a act_window to display the profile of the login user.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/13/15, 11:25 PM
Seen: 426 times
Last updated: 8/14/15, 1:12 AM