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 am trying to install the training module and after solve some anoying bugs now i face this message:
/server/openerp/osv/orm.py", line 3067, in _auto_end for t, k, r, d in self._foreign_keys: AttributeError: 'training_course_job_rel' object has no attribute '_foreign_keys'
I did an inspect on orm.py file and i found the variable declared as follow:
"""- save in self._foreign_keys a list a foreign keys to create (see _auto_end). """ self._foreign_keys = 
In addition for _auto_end i found:
def _auto_end(self, cr, context=None): """ Create the foreign keys recorded by _auto_init. """ for t, k, r, d in self._foreign_keys: cr.execute('ALTER TABLE "%s" ADD FOREIGN KEY ("%s") REFERENCES "%s" ON DELETE %s' % (t, k, r, d)) cr.commit() del self._foreign_keys
But, while i am not an expert please could some friend explain to me what happens and how should i fix it?
Please check training modules which have been migrated from 6.0 to 6.1 (Not all) here: https://code.launchpad.net/~openerp-commiter/openobject-training/6.1
Hope this help.
Regards, Mustufa Rangwala
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: 4/21/13, 5:15 PM|
|Seen: 1970 times|
|Last updated: 3/16/15, 8:10 AM|