Odoo Help

6
16
Lucio
On 2/18/13, 9:45 AM

On buttons, at least, you can add a special field called confirm to the definition and that, alone, will do what you want.

For example:

<button name="Name of the button"
    string="Showable label"
    type="object"
    confirm="Are you sure you want to do this?"
/>

This will pop up a confirmation window showing the text "Are you sure you want to do this?".

Easy! :D

Hope it helps you!

If I need to display message with respect to a field, how can i define the value to be asked?

Atchuthan - Technical Consultant, Sodexis Inc
on 12/3/13, 12:34 PM
1
Yug Faa
On 2/18/13, 8:01 AM

As what I do, is creatsng a small wizard with the two Button, one of type special cancel and the other execute a function that will also call the confirm function in the workflow

Example :

<record id="view_cancel_repair" model="ir.ui.view">
    <field name="name">Cancel Repair</field>
    <field name="model">mrp.repair.cancel</field>
    <field name="arch" type="xml">
        <form string="Cancel Repair Order" version="7.0">
            <group>
                <label string="This operation will cancel the Repair process, but will not cancel it's Invoice. Do you want to continue?"/>
            </group>
            <footer>
                <button name="cancel_repair" string="Yes" type="object" class="oe_highlight"/>
                or
                <button string="Cancel" class="oe_link" special="cancel" />
            </footer>
        </form>
    </field>
</record>

Yug Faa, can you give enougth informations about how you call you wizard and how you define the classe which manage it??

Samba Faye
on 12/17/13, 11:00 AM

Yug Faa, can you give enougth informations about how you call you wizard and how you define the classe which manage it??

Samba Faye
on 12/17/13, 11:01 AM

How to add confirmation box in odoo: https://goo.gl/6P7aR1

Sehrish
on 11/8/18, 11:40 PM

About This Community

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

Question tools

4 follower(s)

Stats

Asked: 2/18/13, 5:27 AM
Seen: 24166 times
Last updated: 9/5/18, 9:11 AM