openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #15526
[Bug 1012184] Re: Webkit Report doesn't support company-specific headers/footers
> You have to add webkit_header attribute in your report xml tag (from
6.1).
how do i do that?
I tried it in the .xml file which is outside the report folder, it looks
like this:
report_webkit_html_view.xml ---->
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<report auto="False" id="invoice_report" model="account.invoice" name="webkit.invoice" string="Invoice Report" report_type="webkit" file="nt-sale/report/invoice_report_html.mako"/>
</data>
</openerp>
but i get the following error:
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 965, in convert_xml_import
relaxng.assert_(doc)
File "lxml.etree.pyx", line 2767, in lxml.etree._Validator.assert_ (src/lxml/lxml.etree.c:113500)
AssertionError: Invalid attribute webkit_header for element report, line 7
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1012184
Title:
Webkit Report doesn't support company-specific headers/footers
Status in OpenERP WebKit Report:
New
Status in OpenERP Addons (modules):
Invalid
Bug description:
I have prepared a special webkit header/footer for a specific company.
Now I attach it to a company in "Settings -> Companies -> Companies -> [open a company] -> Webkit -> Headers".
When I print an invoice, still the global header/footer is used - that which is set in "Settings -> Customisation -> Low Level Objects -> Actions -> Reports -> [open a report] -> Webkit -> Webkit Header".
I'm using OpenERP 6.1 with Webkit Report 6.1.0.9.
In addition, the user interface for attaching headers/footers to
companies is confusing. Currently it allows to add several
headers/footers to each company, so it's not clear which one of the
selected will actually be used (once this bug is fixed). So, maybe
something needs to be changed in this regard as well.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerpwebkitreport/+bug/1012184/+subscriptions
References