Skip to content

Commit

Permalink
FIX] web: Fix the report layout issue.
Browse files Browse the repository at this point in the history
user don't have rights of settings then it will print default 'external_layout_standard' template.

opw-1929507

closes #30386
  • Loading branch information
ppr-odoo committed Jan 21, 2019
1 parent d657d64 commit c2fcfe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/web/views/report_templates.xml
Expand Up @@ -355,6 +355,7 @@
</t>

<t t-if="company.external_report_layout_id" t-call="{{company.external_report_layout_id.key}}"><t t-raw="0"/></t>
<t t-elif="not company.external_report_layout_id" t-call="{{'web.external_layout_standard'}}"><t t-raw="0"/></t>
<t t-else="else" t-raw="0"/>

</template>
Expand Down

0 comments on commit c2fcfe7

Please sign in to comment.