Skip to content

Instantly share code, notes, and snippets.

@ovnicraft
Created May 7, 2012 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ovnicraft/2631283 to your computer and use it in GitHub Desktop.
Save ovnicraft/2631283 to your computer and use it in GitHub Desktop.
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