Odoo Help

0

raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id))

By
lewis
on 7/27/13, 6:33 AM 1,640 views

hi guys,

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?

1
Abhishek
On 7/27/13, 8:32 AM

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.

The same problem is there!! now i saved all my module files and reinstalled openerp with a new DB!! and when a try to reinstall my module, there is the same problem even if i follow your instructions. "ValueError: No such external ID currently defined in the system: reclam." reclam is the name of my module. even if i change the id name, there is the same problem. i d'ont know how to do now. pfff

lewis
on 7/28/13, 10:23 AM
0
lewis
On 7/28/13, 10:58 AM

and even if i delete the report directory and do as early (without the report) and try to reinstalle my module (like i reinstalled openerp), the same problem is still there.

"ValueError: No such external ID currently defined in the system: reclam." reclam is the name of my module.

Problem fixed! i forgot a wrong line in my module XML view !! thanks

lewis
on 7/29/13, 9:13 AM

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

Question tools

1 follower(s)

Stats

Asked: 7/27/13, 6:33 AM
Seen: 1640 times
Last updated: 3/16/15, 8:10 AM