0
votes

M using odoo 8 running on windows, i inhereted the res.company model, and added few columns

class res_ company(models.Model):
   _name = "res.company"
   _inherit = "res.company"
    manager_name = fields.Char()

but it when i restart odoo, i receive the following error:

ProgrammingError: column res.company.manager_name does not exist
LINE 1: ...mpany"."paperformat_id","res.company"."sale_note","res.compa...

isn't possible to add a new field to res.company or what exactly ?

2
After adding the column did you update the module?dccdany
And also check your .py file name given in init.pyBhavesh Odedra

2 Answers

1
votes

Solved the problem, i had to update the base module, now it works.

0
votes

In terminal you can update your base and it solves the problem Cmd : Python odoo-bin -c -d -u base

It takes time to update so be patient