Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/27/13, 6:33 AM|
|Seen: 1582 times|
|Last updated: 3/16/15, 8:10 AM|