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.
I am trying to write a basic module which takes in animal names from a user and displays them as a list.
But when I try to install the module in Odoo, I get the following error:
File "/home/shubhada/workspace/odoo/odoo/openerp/models.py", line 2919, in _inherits_reload cls._add_field(attr, column.to_field()) AttributeError: 'Char' object has no attribute 'to_field'
Here is my content of vetclinic.py file:
from openerp import models,fields
I have tried writing the same file as:
from openerp import models, fields
_name = "vetclinic.animal"
name = fields.Char(string='Name', required=True) #Try this code
birthdate = fields.Date('Birth Date')
I can't figure out what's gone wrong. Can someone please help me?
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: 1/23/15, 4:15 AM|
|Seen: 4482 times|
|Last updated: 3/16/15, 8:10 AM|