Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3829 Weergaven

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.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 24
3435
1
jul. 25
474
1
jul. 25
837
2
mei 25
1405
1
jul. 25
1156