Skip to content

Commit

Permalink
[16.0][FIX] base_external_report_layout : div tag to replace
Browse files Browse the repository at this point in the history
  • Loading branch information
lanto-razafindrabe committed Jul 18, 2024
1 parent f3e1875 commit 9224662
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions base_external_report_layout/views/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@
<field name="priority" eval="0" />
<field name="inherit_id" ref="base_setup.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@id='company_details_settings']/div[@class='o_setting_right_pane']" position="replace">
<span class="o_form_label">Document Layout</span>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
<div class="text-muted">
Choose the layout of your documents
</div>
<div class="content-group">
<div class="mt16" groups="base.group_no_one">
<label for="external_report_layout_id" string="Layout" class="col-3 col-lg-3 o_light_label"/>
<field name="external_report_layout_id" domain="[('type','=', 'qweb')]" class="oe_inline"/>
<xpath expr="//div[@name='companies_setting_container']/div[@id='company_details_settings']/div[@class='o_setting_right_pane'][2]" position="replace">
<div class="o_setting_right_pane">
<span class="o_form_label">Document Layout</span>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
<div class="text-muted">
Choose the layout of your documents
</div>
<div class="mt8">
<button name="%(web.action_base_document_layout_configurator)d" string="Configure Document Layout" type="action" class="oe_link" icon="fa-arrow-right"/>
<button name="edit_external_header" string="Edit Layout" type="object" class="oe_link" groups="base.group_no_one"/>
<button name="%(web.action_report_externalpreview)d" string="Preview Document" type="action" class="oe_link" groups="base.group_no_one"/>
<div class="content-group">
<div class="mt8">
<button name="%(web.action_base_document_layout_configurator)d" string="Configure Document Layout" type="action" class="oe_link" icon="fa-arrow-right"/>
<button name="edit_external_header" string="Edit Layout" type="object" class="oe_link" groups="base.group_no_one"/>
<button name="%(web.action_report_externalpreview)d" string="Preview Document" type="action" class="oe_link" groups="base.group_no_one"/>
</div>
</div>
</div>
</xpath>
Expand Down

0 comments on commit 9224662

Please sign in to comment.