Skip to content

Instantly share code, notes, and snippets.

@osvalr
Forked from josemoralesp/mamalon.py
Created April 1, 2017 01:04
Show Gist options
  • Save osvalr/ae39fe588df255421272599cb49ee587 to your computer and use it in GitHub Desktop.
Save osvalr/ae39fe588df255421272599cb49ee587 to your computer and use it in GitHub Desktop.
from collections import defaultdict
magia = defaultdict(self.env['account.tax'])
for i in self.tax_line_ids:
magia[i.tax_group_id.name] += i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment