Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6406 มุมมอง

Hi;

I have a model with a tree view and a form view. In the tree view i have quit the button create, but when i click on the form view the user can creates a register, and i do not want. The data for this it is created in other view.

My question is, there is any way to disable the form view or quit when the table/model in db is empty

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Remove view mode form, it will work as only tree view. give you action like this. ex.

<record id="action_set_name" model="ir.actions.act_window">
            <field name="name">Student</field>
            <field name="res_model">student.studdent</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
            <field name="context">{'search_default_permenant_staff':1}</field>
        </record>
อวตาร
ละทิ้ง
ผู้เขียน

The problem of that is later when db has data, i can't see the form view of one register. Thanks for the answer

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 23
1374
2
ก.ย. 15
4984
1
มี.ค. 15
3196
3
พ.ค. 24
2211
1
พ.ย. 22
2669