I am trying to show multiple tabs in my custom module, I have created the tabs and have one functioning correctly. When I attempt to replicate by simple copy paste it stops the server, clearly I am making a mistake, can some one assist me where:) Thanks
I start with this
'TagCustAL36': fields.float('Total Liabilities'),
'TagCustList01': fields.one2many('crm.lead.tag_cust_list_1', 'tag_list1_id', 'TagListA01')
}
class tag_cust_list_1(osv.osv):
_name = "crm.lead.tag_cust_list_1"
_columns = {
'tag_list1_id': fields.many2one('crm.lead','Member Block Reference', required=True, readonly=True),
'TagList01': fields.char('Name'),
'TagList02': fields.char('Address'),
'TagList03': fields.char('Contact'),
'TagList04': fields.char('Phone'),
'TagList05': fields.char('Details'),
'TagList06': fields.float('Price')
}
I am attempting this
'TagCustAL36': fields.float('Total Liabilities'),
'TagCustList01': fields.one2many('crm.lead.tag_cust_list_1', 'tag_list1_id', 'TagListA01'),
'TagCustList02': fields.one2many('crm.lead.tag_cust_list_2', 'tag_list2_id', 'TagListA02')
}
class tag_cust_list_1(osv.osv):
_name = "crm.lead.tag_cust_list_1"
_columns = {
'tag_list1_id': fields.many2one('crm.lead','Member Block Reference', required=True, readonly=True),
'TagList01': fields.char('Name'),
'TagList02': fields.char('Address'),
'TagList03': fields.char('Contact'),
'TagList04': fields.char('Phone'),
'TagList05': fields.char('Details'),
'TagList06': fields.float('Price')
}
}
class tag_cust_list_2(osv.osv):
_name = "crm.lead.tag_cust_list_2"
_columns = {
'tag_list2_id': fields.many2one('crm.lead','Member Block Reference', required=True, readonly=True),
'TagList01': fields.char('Name'),
'TagList02': fields.char('Address'),
'TagList03': fields.char('Contact'),
'TagList04': fields.char('Phone'),
'TagList05': fields.char('Details'),
'TagList06': fields.float('Price')
}