Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
8687 Vistas

I would like to add two lines (legal notices) at the end of all my invoices. I think I can do that editing the .rml which is used to create the final .pdf for invoices. Where is this .rml file located?

If you know a cleaner way to achieve this goal, I am interested too.

Avatar
Descartar
Autor

Thank you for your replies. But I have modified and even changed the name of "account/report/invoice.rml", and it didn't have any effect on the client side. Do you know where I could check that this is the right file ?

Yes you can check the path of the rml used from here Settings/Customization/Low Level Objects/Actions/Reports. search for object "account.invoice" and edit the entry in form view . The main reason why you don't see the effect is because of the argument "reload from attachment"

This will print the report from the attachment. Try to delete the attachment to see the effects.

Mejor respuesta

Hello,

The file is located in the addons directory account/report/invoice.rml The best solution will be to create an addon that override you current report. You can do it in XML `

<report
    auto="False"
    id="account.account_invoices"
    model="account.invoice"
    name="account.invoice"
    rml="my_addons/report/invoice.rml"
    string="Invoices"
    attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))"
    attachment_use="1"/>

` By just replacing the rml attribute to your file path.

Else you can try c2c_webkit_report to have HTML based report, they may be easier to customize as you do not have to know RML.

Avatar
Descartar
Mejor respuesta

Hello,

You will find it at this location addons/account/report/invoice.rml. you can edit it according to your need.

Secondly you can open the invoice report using report designer plugin.

To check the path of the rml used go to Settings/Customization/Low Level Objects/Actions/Reports. search for object account.invoice and edit the entry in form view . It may be possible that you want be able to see changes applied on rml due to the argument reload from attachment. If this is True then the report will be printed from the attachments. So to see the changes you need to either set this argument to False or delete the attachment and then print the report.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 24
1504
0
ago 24
1550
2
nov 23
3509
5
ago 23
9722
2
may 23
2545