-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[16.0][IMP] base_external_report_layout : code quality
- Loading branch information
1 parent
942035e
commit c8ce392
Showing
1 changed file
with
25 additions
and
24 deletions.
There are no files selected for viewing
49 changes: 25 additions & 24 deletions
49
base_external_report_layout/views/res_config_settings_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form.inherit.base.setup</field> | ||
<field name="model">res.config.settings</field> | ||
<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 | ||
|
||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form.inherit.base.setup</field> | ||
<field name="model">res.config.settings</field> | ||
<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"/> | ||
</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"/> | ||
</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> | ||
<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> | ||
</xpath> | ||
</field> | ||
</record> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |