Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1012 Представления

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


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
нояб. 24
1109
2
июл. 25
1510
2
июл. 25
435
3
июл. 25
1842
1
июн. 25
1938