Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
4570 Vistas

(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
Descartar
Mejor respuesta

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
Descartar
Autor

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 ...

Autor

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.

Mejor respuesta

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 21
2294
1
may 18
3461
2
ene 17
6630
3
mar 15
7365
2
oct 24
2074