Release 6.0

This commit is contained in:
Oscar 2021-05-30 00:00:55 -05:00
parent 18f384d7a9
commit c0f8c7782e
6 changed files with 6 additions and 32 deletions

View File

@ -4,7 +4,7 @@ Installing trytonpsk_reports
Prerequisites
-------------
* Python 2.7 or later (http://www.python.org/)
* Python 3.7 or later (http://www.python.org/)
* trytond (http://www.tryton.org/)
* trytond_account (http://www.tryton.org/)
* trytond_account_invoice (http://www.tryton.org/)

2
README
View File

@ -1,4 +1,4 @@
trytonpsk_reports
tryton reports
=================
The account_account_plus module of the Tryton application platform.

View File

@ -2,12 +2,10 @@
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
from .invoice import InvoiceLogoReport
from .purchase import PurchaseReport
from . import purchase
def register():
Pool.register(
InvoiceLogoReport,
PurchaseReport,
purchase.PurchaseReport,
module='reports', type_='report')

View File

@ -1,19 +0,0 @@
# 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 Pool
from trytond.report import Report
from trytond.transaction import Transaction
__all__ = ['InvoiceLogoReport']
class InvoiceLogoReport(Report):
__name__ = 'account.invoice_logo'
@classmethod
def get_context(cls, records, data):
report_context = super(InvoiceLogoReport, cls).get_context(records, data)
Company = Pool().get('company.company')
report_context['company'] = Company(Transaction().context['company'])
return report_context

View File

@ -3,11 +3,8 @@
from trytond.pool import PoolMeta
__all__ = ['PurchaseReport']
class PurchaseReport:
__metaclass__ = PoolMeta
class PurchaseReport(metaclass=PoolMeta):
__name__ = 'purchase.purchase'
@classmethod

View File

@ -1,5 +1,5 @@
[tryton]
version=5.0.0
version=6.0.0
depends:
party
company
@ -9,5 +9,3 @@ depends:
purchase
xml:
psk_reports.xml