Odoo Help

0

what doea Invalid model name in the action definition mean?

By
Indhu Bala
on 2/22/13, 3:30 AM 7,662 views

1.How to rectify 'Error occurred while validating the field(s) res_model,src_model: Invalid model name in the action definition' of OpenERP 6.0.1??

Can you be more specific? And also ask the question short in the header. And also: Here it is all about OpenERP, v6.1 is enough to mention. You can also use tags.

ton123
on 2/22/13, 1:14 PM
2

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--

4164
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 3/9/13, 10:17 PM

Hi,

the message explain you defined bad class name in src_model xor res_model.

use name.of.the.class and not name_of_the_class.

src is the class where the action is launch, res is destination class.

Bye

2

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
11594
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 

LinkedIn

Blog

Stackoverflow

Sudhir Arya
ERP Harbor Consulting Services
skype: 
sudhir@erpharbor.com 
Sudhir Arya (ERP Harbor Consulting Services)
On 3/10/13, 4:20 AM

It seems model defined in res_model,src_model either might be wrong or might be not created for some reason.

  1. Just check out have you defined correct object or not.

  2. Just check out whether object is created or not.

0
Andrew
On 10/13/13, 1:54 AM

just ensure: 1. __init__.py has "import yourfoldername" #recommended yourfoldername=yourmodulename 2. yourmodulename.py _name of your class is same with <field name="res_model">yourmodulename</field>

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

Question tools

0 follower(s)

Stats

Asked: 2/22/13, 3:30 AM
Seen: 7662 times
Last updated: 3/16/15, 8:10 AM