oc_template/modules/account_co_pyme/account.py

26 lines
727 B
Python
Raw Normal View History

2024-06-15 11:00:00 -05:00
# 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.model import fields
from trytond.pool import PoolMeta
class AccountTemplate(metaclass=PoolMeta):
__name__ = 'account.account.template'
party_required = fields.Boolean('Party Required')
@classmethod
def __setup__(cls):
super(AccountTemplate, cls).__setup__()
cls.party_required.domain = []
class Account(metaclass=PoolMeta):
__name__ = 'account.account'
party_required = fields.Boolean('Party Required')
@classmethod
def __setup__(cls):
super(Account, cls).__setup__()
cls.party_required.domain = []