Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
17428 Widoki

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??

Awatar
Odrzuć

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.

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 25
67
1
sie 25
638
0
sie 25
367
0
lip 25
1450
0
lip 25
3