This question has been flagged
2 Replies
3210 Views

I added a header in openoffice writer (odt file). Then i click Send to server button in openoffice. When i take print from openerp it doesnt shows the header.

But the header is displaying in print preview.

What will be the issue?

&

How can we add header in rml report?

 

 

Avatar
Discard
Best Answer

Go to Settings >> Technical >> Actions >> Reports, search for your report, edit it, and check the Add RML Header.  If you have been using the plugin to update the report, open the report using the OpenOffice, make some amendments (type space and then delete it again), then when you push the server, DON'T FORGET TO CHECK THE Corporate Header checkbox.

Avatar
Discard
Author

Then i installed base_rml_edit. Now i can also see the rml file. i tried to edit the file. but it doesnt reflect any thing. what can i do?

Rosey, sorry that I've not used base_rml_edit. It would be best if you can contact the author of that module.

Author

Its ok. that is not a problem. Actually my problem is : when i add header in the odt file and send to server. i followed your steps. But still no output.

Author

My only problem is to display the header.

The odt file on the server folders does not play really important role. What matters is the RML file. If you want to edit through ODT file, then best tool that I know of is using OpenOffice plugins. Using the plugin you can also export the file to RML and put the new RML file in place of the old one.

Author

Actually John, i'm using openoffice to generate the report. But i'm not using any module. I'm just updating the odt file and click send to server button in openoffice-openerp plugin. Is any thing wrong in my flow? Did i want to create a new module for that?

Did you check CHECK THE Corporate Header checkbox when sending to server?

Also, you might want to check with the author of base_rml_edit whether their module change how the RML reports definition is stored in the database in any way.

Author

I checked the Corporate Header checkbox when sending to server.

Author

base_rml_edit is working for me. But header part is the problem. I cant add header part in any ways.

Rosey, you might want to check with the author of base_rml_edit whether their module change how the RML reports definition is stored in the database in any way. Sometimes a module may break the way another module works. Such as the base_report_designer itself breaks the way Odoo gets the the definition file. You cannot update RML anymore from the modules and have to go through OpenOffice to update reports.

Author

I tested in two database, with and without base_rml_edit. But both database doesnt shows header. What will be the problem??

I'm out of ideas. You might want to check the RML as Ken Nyen Choo suggested. Another one is to have a database with base_report_designer NOT INSTALLED. I'm not sure that you can only uninstall the module as the remaining settings of this new report will still assume that it is set-up with base_report_designer installed) and update the RML of the report in the module.

Best Answer

check your converted RML file whether it contains any information about your new header. You can look for it at your_module/report/xxx.rml

If yes, Go to Settings >> Technical >> Actions >> Reports, search for your report, edit it, and uncheck the "Add RML Header".

otherwise the system will use the default header instead.

Avatar
Discard