Skip to Content
Menu
This question has been flagged
629 Views

I want to make a custom form view in my addons, but i don't know the method to do that. Can someone help me? I already try to remove the form from the view_mode but it do nothing i am still go the default form and I already try asking chatGPT and It doesn't work


This is the example module previews


This the Qweb i make i want to make when the user click the table it will open my form instead of the default form from odoo. I will share the code for the views below:


[record id="visa_application_tree" model="ir.ui.view"]
    [field name="name"]Visa Application List[/field]
    [field name="model"]visa.application[/field]
    [field name="arch" type="xml"]
        [tree]
            [field name="name" /]
            [field name="age" /]
            [field name="gender" /]
        [/tree]
    [/field]
[/record]

[record id="visa_application_form" model="ir.ui.view"]
    [field name="name"]Visa Application Form[/field]
    [field name="model"]visa.application[/field]
    [field name="arch" type="xml"]
        [form]
            [group]
                [field name="name" /]
                [field name="age" /]
                [field name="gender" /]
            [/group]
        [/form]
    [/field]
[/record]

[menuitem id="visa_application_menu" name="Visa Application" parent="parent_menu_root" action="visa_application_action" sequence="2" /]


ChatGPT Answers (not working)

# [div t-name="custom_qweb_form_template"/]


Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
684
1
Apr 25
199
1
Mar 25
447
0
Feb 25
422
1
Feb 25
37