Odoo Help

0
1 Answer
0
Avatar

Zbik

--Zbik--
7359
| 6 5 7
Lodz, Poland
--Zbik--


Zbik
10/30/15, 5:43 AM

Do not use the names of calc and plano directly, instead of them use self and self.name, like this:

if self.name.testB_p1 != 'H+':
    self.val1 = self.hoogte + (2.0 * float(self.name.Kw)) + 2.0
elif self.name.testB_p1 != 'B':
   self.val1 = self.breedte + (self.name.toeslagB_p1 * self.name.Kw)

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