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

How to make a wizard to add fields onto the current user?

By
Trevor Nemanic
on 12/28/15, 9:32 PM 265 views

In version 9, I want to create a wizard to pop up after a user logs in for the first time and ask them to enter their information: mobile phone number, hourly rate (float), and tax rate (float). 

1. How do I make the wizard pop up on first login?
2. What model do I use or changes do I have to make in order to reference the current user? (fix_tribe.???)
3. How would I save information using the function "profile_config_save" and where would I put the function?


My code is below:

<record id="fix_tribe_wizard_profile_config" model="ir.ui.view">

<field name="name">Profile Configuration</field>

<field name="model">fix_tribe.???</field>

<field name="arch" type="xml">

<form string="Configure Information">

<group col="4" colspan="4">

<group string="Profile Information" col="2" colspan="2">

<field name="phone_number" required="1"/>

<field name="hourly_rate" required="1"/>

<field name="tax_rate" required="1"/>

</group>

</group>

<footer>

<button string="Save &amp; Next" name=profile_config_save" type="object" class="oe_highlight"/>

or

<button string="Cancel" class="oe_link" special="cancel"/>

</footer>

</form>

</field>

</record>

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: 12/28/15, 9:32 PM
Seen: 265 times
Last updated: 12/28/15, 9:57 PM