Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ def open_template_mapping(self):
"type": "ir.actions.act_window",
"name": "Template Content Mappings",
"res_model": "template.content.mapping",
"view_mode": "list",
"view_mode": "list,form",
"context": {"multi_lang": multi_lang},
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<field name="name">template.content.mapping.list</field>
<field name="model">template.content.mapping</field>
<field name="arch" type="xml">
<list editable="top">
<list>
<field name="name" />
<field name="report_id" />
<field name="template_id" readonly="report_id != False" />
Expand All @@ -21,6 +21,36 @@
</list>
</field>
</record>
<record id="view_template_content_mapping_form" model="ir.ui.view">
<field name="name">template.content.mapping.form</field>
<field name="model">template.content.mapping</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="report_id" />
<field name="template_id" readonly="report_id != False" />
</group>
<group>
<field
name="lang"
invisible="not context.get('multi_lang')"
/>
</group>
</group>
<group>
<group>
<field name="content_from" />
</group>
<group>
<field name="content_to" />
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_template_content_mapping_search" model="ir.ui.view">
<field name="name">template.content.mapping.search</field>
<field name="model">template.content.mapping</field>
Expand Down
Loading