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-es00:02
-!- fsanchez(~fsanchez@190.236.0.113) has joined #tryton-es17:17
fsanchezSOS18:33
fsanchezclass PartyIdentifier(ModelSQL, ModelView, metaclass=PoolMeta):18:33
fsanchez    'Party Identifier'18:33
fsanchez    #__metaclass__ = PoolMeta18:33
fsanchez    __name__ = 'party.identifier'18:33
fsanchez    @classmethod18:33
fsanchez    def __setup__(cls):18:33
fsanchez        super(PartyIdentifier, cls).__setup__()18:33
fsanchez        cls.type.selection.clear()18:33
fsanchez        #pool = Pool()18:33
fsanchez        #Tipodocs = pool.get('sunat.tipodocid')18:34
fsanchez        #tipos= Tipodocs.search([("active","=",1)])18:34
fsanchez        #matriz = [(x.code, x.name) for x in tipos]18:34
fsanchez        matriz = [('dni','DNI'),('ruc','RUC')]18:34
fsanchez        cls.type.selection.extend(matriz)18:34
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?18:35
fsanchezen el modelo party.identifier tryton 518:35

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