[FIX] website[_theme_install]: fix website form view
Before this commit, you had 'choose a theme' into the form view. It should be only visible in modal task-1878245
This commit is contained in:
@@ -23,22 +23,24 @@
|
||||
<field name="model">website</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Website Settings">
|
||||
<div name="domain">
|
||||
<group name="domain">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="domain"/>
|
||||
<sheet>
|
||||
<div name="domain">
|
||||
<group name="domain">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="domain"/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
</div>
|
||||
<div name="other">
|
||||
<group name="other">
|
||||
<group>
|
||||
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
||||
<field name="default_lang_id" widget="selection" groups="base.group_no_one"/>
|
||||
</div>
|
||||
<div name="other">
|
||||
<group name="other">
|
||||
<group>
|
||||
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
||||
<field name="default_lang_id" widget="selection" groups="base.group_no_one"/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
</div>
|
||||
</div>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -9,3 +9,8 @@ class ResConfigSettings(models.TransientModel):
|
||||
self.website_id._force()
|
||||
action = self.env.ref('website_theme_install.theme_install_kanban_action')
|
||||
return action.read()[0]
|
||||
|
||||
def action_website_create_new(self):
|
||||
res = super(ResConfigSettings, self).action_website_create_new()
|
||||
res['view_id'] = self.env.ref('website_theme_install.view_website_form_view_themes_modal').id
|
||||
return res
|
||||
|
||||
@@ -111,10 +111,11 @@ action = {
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<record id="view_website_form_inherit_view_themes" model="ir.ui.view">
|
||||
<record id="view_website_form_view_themes_modal" model="ir.ui.view">
|
||||
<field name="name">website.form</field>
|
||||
<field name="model">website</field>
|
||||
<field name="inherit_id" ref="website.view_website_form"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//form" position='inside'>
|
||||
<footer>
|
||||
|
||||
Reference in New Issue
Block a user