Odoo Help

0

0
1 Answer
-1
Yvan
2/27/18, 2:22 PM

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.


Regards

Yvan

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