Odoo Help

2

1
2 Answers
0

I also have this problem. After searching code, I find a reason:

    def _check_selection_field_value(self, field, value):

        """ Check whether value is among the valid values for the given

            selection/reference field, and raise an exception if not.

        """

  Therefore, You must override field provider with add_selection:

Example for your instance: 

provider = fields.Selection(selection_add=[('pagseguro', 'Pagseguro')])


0
Omar Baqueiro
7/30/18, 5:02 PM

Cannot comment on this.. I am trying something similar and also get the error:

Wrong value for payment.acquirer.provider

Has anyone been able to successfully resolve this error?


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