Skip to Content
Menu
This question has been flagged
3 Replies
3070 Views

(Odoo 16 / Community)
How can we modify existing standard reports for quotation. sales order, order confirmation etc. without the module Studio? 
The layout configuration has very limited functionality. Typically move address from right ot left is not possible and Studio is not available for Odoo Community.

Or is it possible to make it with Studio on Odoo online and import the report to Odoo community?

Avatar
Discard
Best Answer

Hi Stephan,

we're using V14 and I achieved this by modifying the following xml file:

../addons/web/views/report_templates.xml

The address layout is rendered in the section "external layout styles" and I simply switched the postions of the"address" and the "information_block".

It's quick and dirty and I don't know if this also applies to V16 - but maybe it helps ;-)


Avatar
Discard
Author

Hi Christian, many thanks. I made some changes in this file but there was no impact on the offer pdf or order confirmation pdf. The layout is set to external_layout_standard.
Which value did you set in the report_templates.xml?
<! --
<template id="address_layout">
<t t-set="colclass" t-value="('col-sm-5' if report_type == 'html' else 'col-3') + ' ms-auto'"/>
<t t-if="address">
<div class="address row">
<t t-if="information_block">
<t t-set="colclass" t-value="'col-3, a offset-1'"/>
<div name="information_block" class="col">
<t t-out="information_block"/>
</div>
</t>
<div name="address" t-att-class="colclass">
<t t-esc="address"/>
</div>
</div>
</t>
</template>
-->

"Only one answer per question allowed" - very practical for a forum ;-) ....

Send me a PM to wetig74601@dni8.com ...

Author

I cancelled the + 'ms-auto' at "address_layout" and it moved the address to the left. The module 'web' must be updated after a change of the file.

Best Answer

Hello Stephan Schupbach,

You can change report layout on view side from odoo community,
for example:
First of all on debug mode.
Follow the step:
Settings --> Technical --> Reporting --> Reports --> Select quotation or any report id, You can see smart button named ">QWeb Views" click on this button --> Select report layout view --> i.g.(report_saleorder_document) --> Change posotion or add new code here.

Or inherit the report and change the report layout or add new layout.

I hope this will be helpful.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari 

Avatar
Discard
Author Best Answer

Hi,
Thanks for the quick answer. I tried to find in the file report_saleorder_document the position of the recipient address. Possibly I am not experienced enough in QWeb or I am blind but I can not find this information. In can find the positioning of the content e.g. title etc. but not for the address. Can you give me a hint in which line I find this information? Thanks.


Avatar
Discard
Related Posts Replies Views Activity
0
Sep 21
1046
1
May 18
2282
2
Jan 17
5314
3
Mar 15
6073
2
Oct 24
552