Odoo Ayuda


1 Answer
27/2/18 14:22

Hi Maxime,

I suppose you get False as return value because package is an instance of an empty record.

The following line of code creates a new QuantPackage record.

package = QuantPackage.create({})

Because you do not assign any value to the newly created record, you get False as result.

Try to assign some dummy values to the record before the return statement to see if my guess is correct.



Realizar una pregunta
Keep Informed
1 seguidor(es)
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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now