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

I am trying to inherit the Website, settings menu. That is a transient model - models.TransientModel

When I am inheriting that and viewing with a new menuitem it overwrites the previous view. Like - There are two views now, the new record I defined named Website Event Settings . When I click on that it loads the new modified view but when I click on existing Settings menu, it shows nothing. The record view I used is following -

<record id="action_website_event_configuration" model="ir.actions.act_window">		
<field name="name">Website Event Settings</field>
<field name="res_model">website.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="view_id" ref="view_website_event_config_settings"/>
</record>


How can I have two views of website config settings page?


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

Hi ,

if you need two views for website.config.setting you need to specify view_id for both the menu actions . Like as you specified the view_id for the your new menu action. check if the existing menu action have view_id specified ,if not you need to inherit the existing menu action and add view_id to it so that existing menu action will pick the view specified in view_id.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks it perfectly worked. I inherited the main record action and put view_id there.

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ส.ค. 17
7430
1
ม.ค. 20
2641
1
มิ.ย. 24
3009
5
ก.พ. 24
24080
View inheritance แก้ไขแล้ว
1
มี.ค. 20
3409