i was creating a report for my new module and i got this error while created my xml file in my report directory: "ValueError: No such external ID currently defined in the system: reclam." here is this xml file:`
<?xml version="1.0"?> <openerp> <data> <report id="reclam" string="Print Reclam..." model="ownfield.claim" name="ownfield.claim" rml="reclam/report/reclam_report.rml" auto="False" header="False"/> </data> </openerp>
here is some lines of my __openerp__.py file in my module directory:
'update_xml': [ 'security/ir.model.access.csv', 'security/reclam_security.xml', 'report/reclam_report.xml', 'reclam_view.xml', 'reclam_menu.xml', ],
please help me!! what should i do?
Hi Are you trying to give this report print on Button Click or just inside Report tag.
If you want to put this printable keeping inside the report tag then in report tag
<report id="reclam" string="Print Reclam..." model="ownfield.claim" name="ownfield.claim" rml="reclam/report/reclam_report.rml" auto="False" **menu="True" **="" header="False"/>
And if you need this report on button click then first remove its id tag where you have used(in xml file) then try to upgrade the module and again after being upgrade the module again put that button and that report id in xml and try ...
May be it help.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/27/13, 6:33 AM|
|Seen: 1418 times|
|Last updated: 3/16/15, 8:10 AM|