Release 6.0
This commit is contained in:
parent
18f384d7a9
commit
c0f8c7782e
2
INSTALL
2
INSTALL
|
@ -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
2
README
|
@ -1,4 +1,4 @@
|
|||
trytonpsk_reports
|
||||
tryton reports
|
||||
=================
|
||||
|
||||
The account_account_plus module of the Tryton application platform.
|
||||
|
|
|
@ -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')
|
||||
|
|
19
invoice.py
19
invoice.py
|
@ -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
|
|
@ -3,11 +3,8 @@
|
|||
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
__all__ = ['PurchaseReport']
|
||||
|
||||
|
||||
class PurchaseReport:
|
||||
__metaclass__ = PoolMeta
|
||||
class PurchaseReport(metaclass=PoolMeta):
|
||||
__name__ = 'purchase.purchase'
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue