mirror of
https://bitbucket.org/presik/trytonpsk-party_personal.git
synced 2023-12-14 06:22:59 +01:00
Release version 6.0
This commit is contained in:
parent
c960409043
commit
d4ba195e14
4 changed files with 42 additions and 14 deletions
29
.gitignore
vendored
Normal file
29
.gitignore
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/build
|
||||
/dist
|
||||
*egg-info
|
||||
|
||||
|
||||
/node_modules
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
|
||||
.DS_Store
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
package-lock*
|
||||
|
||||
/__pycache__
|
||||
/app/__pycache__
|
||||
/app/commons/__pycache__
|
21
__init__.py
21
__init__.py
|
@ -2,22 +2,21 @@
|
|||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from .party import (Party, PartyPreference, PartyByCategory,
|
||||
PartyByCategoryReport, PartyByCategoryStart)
|
||||
from .nationality import Nationality
|
||||
from .preference import Preference
|
||||
from . import party
|
||||
from . import nationality
|
||||
from . import preference
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
Nationality,
|
||||
Preference,
|
||||
Party,
|
||||
PartyPreference,
|
||||
PartyByCategoryStart,
|
||||
nationality.Nationality,
|
||||
preference.Preference,
|
||||
party.Party,
|
||||
party.PartyPreference,
|
||||
party.PartyByCategoryStart,
|
||||
module='party_personal', type_='model')
|
||||
Pool.register(
|
||||
PartyByCategory,
|
||||
party.PartyByCategory,
|
||||
module='party_personal', type_='wizard')
|
||||
Pool.register(
|
||||
PartyByCategoryReport,
|
||||
party.PartyByCategoryReport,
|
||||
module='party_personal', type_='report')
|
||||
|
|
4
party.py
4
party.py
|
@ -20,9 +20,9 @@ STATES = {
|
|||
DEPENDS = ['active']
|
||||
|
||||
|
||||
class Party:
|
||||
__metaclass__ = PoolMeta
|
||||
class Party(metaclass=PoolMeta):
|
||||
__name__ = 'party.party'
|
||||
|
||||
birthday = fields.Date('Birthday')
|
||||
age = fields.Function(fields.Integer('Age'), 'get_age')
|
||||
city_born = fields.Char('City Born')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=5.0.0
|
||||
version=6.0.0
|
||||
depends:
|
||||
country
|
||||
party
|
||||
|
|
Loading…
Reference in a new issue