IRC logs of #tryton-es for Tuesday, 2018-12-25

chat.freenode.net #tryton-es log beginning Tue Dec 25 00:02:01 CET 2018
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton-es01:12
-!- fsanchez(~fsanchez@190.236.0.113) has joined #tryton-es18:12
fsanchezSOS19:12
fsanchezclass PartyIdentifier(ModelSQL, ModelView, metaclass=PoolMeta):19:12
fsanchez    'Party Identifier'19:12
fsanchez    #__metaclass__ = PoolMeta19:12
fsanchez    __name__ = 'party.identifier'19:12
fsanchez    @classmethod19:12
fsanchez    def __setup__(cls):19:12
fsanchez        super(PartyIdentifier, cls).__setup__()19:12
fsanchez        cls.type.selection.clear()19:12
fsanchez        #pool = Pool()19:12
fsanchez        #Tipodocs = pool.get('sunat.tipodocid')19:12
fsanchez        #tipos= Tipodocs.search([("active","=",1)])19:12
fsanchez        #matriz = [(x.code, x.name) for x in tipos]19:12
fsanchez        matriz = [('dni','DNI'),('ruc','RUC')]19:12
fsanchez        cls.type.selection.extend(matriz)19:12
fsanchezALguien me puede ayudar con esto: por que no funciona cuando quiero jalar los valores del type.selection desde una tabla y solo funciona cuando declaro la lista manualmente?19:12
fsanchezen el modelo party.identifier tryton 519:12

Generated by irclog2html.py 2.16.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!