Odoo Help

0

_inherits problem with crm.case.section

By
Nimesh
on 8/21/13, 10:23 AM 1,051 views

When i create department(hr.departent) then with the same name team(crm.case.section) should be created useing inherits.

I have tried using following code but its not working.

_inherits = { 'crm.case.section': 'section_id', } _columns = {
'section_id': fields.many2one('crm.case.section', required=True, string='Team', ondelete='cascade', help='Team-related data of the department'),

}

can anyone help ?

Its may be due to crm.case.section object already have one inherits ? as below in crm.py

class crm_case_section(osv.osv): """ Model for sales teams. """ _name = "crm.case.section" _inherits = {'mail.alias': 'alias_id'}

Thank you in advance.

Your Answer

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

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: 8/21/13, 10:23 AM
Seen: 1051 times
Last updated: 3/16/15, 8:10 AM