I want to add a field, job_ids, to res_partner in Odoo version 9. I added the field, restarted the Odoo service, and updated the app. However, the column does not appear in the database for res_partner, but it does for Jobs. If I add another column, like "test = fields.Char()" in res_partner it works. What is the issue with creating job_ids?
class res_partner(models.Model):
_inherit = 'res.partner'
job_ids = fields.One2many('fix_tribe.jobs', 'res_partner_id', string="Jobs")
class Jobs(models.Model):
_name = 'fix_tribe.jobs'
name = fields.Char()
customer_id = fields.Many2one('fix_tribe.customers', string="Customer")
res_partner_id = fields.Many2one('res.partner', string="ResPartner")
isCompleted = fields.Boolean(string="Completed?")
datetime_start = fields.Datetime(string="Start Date/Time")
datetime_stop = fields.Datetime(string="Stop Date/Time")
cost = fields.Float()
jobitem_ids = fields.One2many('fix_tribe.job_items', 'name')