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.
The code that I have is this :
'class_ids': fields.many2many('class.class', 'discipline_class_rel', 'discipline_id', 'class_id', 'Class',),
'student_id': fields.related('class_ids','student', type="many2many", relation="res.partner", string="Student", store=True)
Is it possible to the first parameter ('class_ids') of a fields.related() to be a fields.many2many ?
For some reason I get this error:
cr.execute('ALTER TABLE "%s" ADD COLUMN "%s" %s' % (self._table, k, get_pg_type(f)))
TypeError: 'NoneType' object is unsubscriptable
Is it possible to do this ?
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: 6/25/14, 1:25 PM|
|Seen: 784 times|
|Last updated: 3/16/15, 8:10 AM|