mirror of
https://bitbucket.org/presik/trytonpsk-party_personal.git
synced 2023-12-14 06:22:59 +01:00
minor fix
This commit is contained in:
parent
4ec6576d06
commit
44eb051a9f
|
@ -6,6 +6,7 @@ from . import party
|
||||||
from . import nationality
|
from . import nationality
|
||||||
from . import preference
|
from . import preference
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
Pool.register(
|
Pool.register(
|
||||||
nationality.Nationality,
|
nationality.Nationality,
|
||||||
|
|
8
party.py
8
party.py
|
@ -1,7 +1,6 @@
|
||||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||||
# this repository contains the full copyright notices and license terms.
|
# this repository contains the full copyright notices and license terms.
|
||||||
from datetime import datetime, date
|
from datetime import datetime
|
||||||
|
|
||||||
from trytond.i18n import gettext
|
from trytond.i18n import gettext
|
||||||
from trytond.model import fields, ModelSQL, ModelView
|
from trytond.model import fields, ModelSQL, ModelView
|
||||||
from trytond.pool import PoolMeta, Pool
|
from trytond.pool import PoolMeta, Pool
|
||||||
|
@ -161,6 +160,11 @@ class PartyPreference(ModelSQL):
|
||||||
class PartyByCategoryReport(Report):
|
class PartyByCategoryReport(Report):
|
||||||
__name__ = 'party_personal.party_by_category_report'
|
__name__ = 'party_personal.party_by_category_report'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def execute(cls, ids, data):
|
||||||
|
oext, content, action, filename = super(cls, PartyByCategoryReport).execute(ids, data)
|
||||||
|
return (oext, content, action, 'party_by_category_report')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_context(cls, records, header, data):
|
def get_context(cls, records, header, data):
|
||||||
Company = Pool().get('company.company')
|
Company = Pool().get('company.company')
|
||||||
|
|
Loading…
Reference in a new issue