Community mailing list archives

community@mail.odoo.com

There is no reference field 'project_id' found for 'job.card.desc'

by
shabeer
- 06/30/2016 02:44:32
hi, community
i have two modules and they are related each other but it shows an error There is no reference field foud

please show me whats i missed 



my job.card.desc module like this and 
------------------------------------------------------

class jobCardDesc(models.Model):
_inherit = 'job.card.desc'
project_id = fields.Many2one('mrp.projects', string="Project ID")

mrp.projects like this 
-------------------------------------------------------
class project_mrp(models.Model):
_name = 'mrp.projects'
name = fields.Char(string = "Project Name")
code = fields.Char(string = "Project Code", default = 'New')
jobCardIds = fields.One2many('job.card.desc','project_id',string="Job Card Ids")