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

launch wizard in python [Closed]

By
voathnak lim
on 5/16/13, 6:09 AM 779 views

The Question has been closed for reason: duplicate question

by
Cyril Gaspard (GEM)
on 05/19/2013 11:44:19

I have a requirement, to launch a wizard in my python. could anyone help me please!

here is my view:

<record id="my_config_view_form" model="ir.ui.view">
            <field name="name">my.item.config.view</field>
            <field name="model">my.model.config</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="base.res_config_view_base"/>
                <field name="arch" type="xml">

                <group string="res_config_contents" position="replace">
                    <label colspan="4" align="0.0" string="
                        Configure this item by defining its field"/>
                    <field name="my_field"/>
                </group>
                <xpath expr="//button[@name='action_skip']"  position="attributes">
                    <attribute name="string">Proceed</attribute>
                    <attribute name="class">oe_highlight</attribute>
                </xpath>
                <xpath expr="//button[@name='action_next']" position="attributes">
                    <attribute name="string">Ok</attribute>
                    <attribute name="class">none</attribute>
                </xpath>
            </field>
    </record>

    <record id="my_config_window" model="ir.actions.act_window">
        <field name="name">My config window</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">my.model.config</field>
        <field name="view_type">form</field>
        <field name="view_id" ref="my_config_view_form"/>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>

    <record id="my_config_step" model="ir.actions.todo">
        <field name="action_id" ref="my_config_window"/>
    </record>

About This Community

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

Question tools

0 follower(s)

Stats

Asked: 5/16/13, 6:09 AM
Seen: 779 times
Last updated: 3/16/15, 8:10 AM