Created
May 7, 2012 23:08
-
-
Save ovnicraft/2631283 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calcular_valores(self, cr, uid, ids): | |
for obj in self.browse(cr, uid, ids): | |
#crear lineas normalmente para este objeto obj.id | |
#no considerar hijos ni nada, solo como si fuera para este | |
return True | |
def button_calcular(self, cr, uid, ids): | |
#iterar para sacar los ids entre los padres | |
child_ids | |
self.calcular_valores(cr, uid, child_ids) | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment