trytonpsk-reports/purchase.py
Camilo Sarmiento 28004f0f31 migrate to git
2020-04-15 18:27:25 -05:00

19 lines
580 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import PoolMeta
__all__ = ['PurchaseReport']
class PurchaseReport:
__metaclass__ = PoolMeta
__name__ = 'purchase.purchase'
@classmethod
def get_context(cls, records, data):
report_context = super(PurchaseReport, cls).get_context(records, data)
for obj in records:
taxes = obj._get_taxes()
setattr(obj, 'taxes', taxes.values())
return report_context