Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
4600 Vizualizări

(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?

Imagine profil
Abandonează
Cel mai bun răspuns

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 ;-)


Imagine profil
Abandonează
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.

Cel mai bun răspuns

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 

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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.


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
sept. 21
2344
1
mai 18
3559
2
ian. 17
6672
3
mar. 15
7392
2
oct. 24
2124