Odoo Help

0
2 Answers
0
PseudoWithK
11/9/18, 3:26 AM

Hello,

Sorry for my english, I am french.

My function and my fields it's in 'ecole.partner.school' model. I have a 'partner_id' field in this model.

In my function, I don't have errors. What I get from the field 'responsible_foyer' is OK. However, I retrieve every partner if I click on my field Many2one in view XML. That is why, I want put a filter in XML. 

I an beginner on ODOO and there are maybe others ways to do :)

Thanks You

0
Tristán Mozos
11/8/18, 3:38 PM

Hiii!!!

I don't understand exactly what you want to do and I miss the description of the two models and the fields of these to can analyze better the error. However,  I have viewed something on your _get_active_foyer method. I assume that the method is of the model of your fields description. If it is true, I miss the partner_id field declaration on your model and can be a reason of error on self.partner_id statement on the first line.

Best regards

Ask a Question
Writer
Keep Informed
1 follower(s)
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