create field, view_form, view_tree 'cliente_type'
This commit is contained in:
parent
12fc85e91c
commit
8a4985bf3a
@ -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,
|
||||||
|
10
party.py
10
party.py
@ -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')
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user