Skip to Content
Menu
This question has been flagged
2 Replies
4785 Views

 Hi all, I'm new to Odoo and working with v11. I got a issue when I tried to play around with "wizard". The thing is that I'm unable to see my display name of the fields. I'm not sure what I missed

Here is the view part:

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

    <field name="name">my.details.wizard.form</field>

    <field name="model">my.details.wizard</field>

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

        <form string="Add Details">

            <field name="details"/>

            <field name="details_notes"/>

        </form>

    </field>

</record>

<act_window id="launch_expense_line_wizard"

                        name="Add your Details"

                         src_model="my"

                         res_model="my.details.wizard"

                         view_mode="form"

                         target="new"

                         key2="client_action_multi"/>

And this is my py file:

class MyDetailsWizard(models.TransientModel):

    _name = "my.details.wizard"

    details = fields.Many2one('my', ondelete='set null', string="Details A")

    details_notes = fields.Char(string="Notes")

Can anyone help? Thanks!

Avatar
Discard
Author

BTW, It not showing any error message

Best Answer

Hi,

Put the fields inside the group.

<form string="Add Details">    
    <group>
        <field name="details"/>
        <field name="details_notes"/>
</group>
</form>


Thanks

Avatar
Discard
Author

Thx a lot! It fix my problem. I didn't thought about "group" element, it doing more than I think.

Related Posts Replies Views Activity
1
Dec 22
1807
0
Dec 21
1234
3
Nov 23
28068
4
Dec 18
3581
2
Dec 23
16306