create field, view_form, view_tree 'cliente_type'

This commit is contained in:
sinergia 2022-06-17 11:52:26 -05:00
parent 12fc85e91c
commit 8a4985bf3a
3 changed files with 15 additions and 2 deletions

View File

@ -1,8 +1,9 @@
from trytond.pool import Pool from trytond.pool import Pool
from . import product, sale, purchase, equipment from . import party, product, purchase, sale, equipment
def register(): def register():
Pool.register( Pool.register(
party.Party,
product.Template, product.Template,
product.Product, product.Product,
purchase.Purchase, purchase.Purchase,

View File

@ -0,0 +1,10 @@
from trytond.pool import PoolMeta
from trytond.model import ModelSQL, ModelView, fields
_CLIENT_TYPE = [('ips', 'IPS'),
('optica', 'Optica')]
class Party(metaclass=PoolMeta):
__name__ = 'party.party'
client_type = fields.Selection(_CLIENT_TYPE, 'Client type')

View File

@ -10,7 +10,9 @@ depends:
stock stock
country country
xml: xml:
party.xml
product.xml product.xml
equipment.xml equipment.xml
sale.xml sale.xml
purchase.xml purchase.xml