mirror of
https://bitbucket.org/presik/trytonpsk-reports.git
synced 2023-12-14 05:13:14 +01:00
19 lines
580 B
Python
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
|