Register PartyCompany before party.Party

This commit is contained in:
Raimon Esteve 2017-11-24 15:31:39 +01:00
parent 001c9da865
commit aa4c8a4c7d
2 changed files with 3 additions and 3 deletions

View file

@ -15,10 +15,10 @@ def register():
bank.Bank,
bank.BankAccount,
carrier.Carrier,
party.PartyCompany, # register before party.Party
party.Party,
party.Address,
party.PartyIdentifier,
party.ContactMechanism,
party.PartyCompany,
user.User,
module='party_company', type_='model')

View file

@ -8,8 +8,8 @@ from trytond.transaction import Transaction
from trytond.pyson import Eval
from trytond import backend
__all__ = ['Party', 'Address', 'PartyIdentifier', 'ContactMechanism',
'PartyCompany']
__all__ = ['PartyCompany', 'Party', 'Address', 'PartyIdentifier',
'ContactMechanism']
class Party: