コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1017 ビュー

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"/]


アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 24
1112
2
7月 25
1510
2
7月 25
439
3
7月 25
1847
1
6月 25
1959