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-es | 00:02 | |
-!- fsanchez(~fsanchez@190.236.0.113) has joined #tryton-es | 17:17 | |
fsanchez | SOS | 18:33 |
---|---|---|
fsanchez | class PartyIdentifier(ModelSQL, ModelView, metaclass=PoolMeta): | 18:33 |
fsanchez | 'Party Identifier' | 18:33 |
fsanchez | #__metaclass__ = PoolMeta | 18:33 |
fsanchez | __name__ = 'party.identifier' | 18:33 |
fsanchez | @classmethod | 18: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 |
fsanchez | ALguien 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 |
fsanchez | en el modelo party.identifier tryton 5 | 18:35 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!