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

chat.freenode.net #tryton log beginning Tue Dec 25 00:00:01 CET 2018
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton01:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:12
-!- fsanchez(~fsanchez@2001:1388:2142:9352:f82c:1278:397d:4156) has joined #tryton02:12
fsanchezHolas02:12
fsanchezEstoy extendiendo el type.selection de party.identifier y me tira un error: Error: type object \'sunat.tipodocid\' has no attribute \'_fields\'\n'>02:12
fsanchezLo hago en un modulo aparte logicamente, usando tryton 5.0,02:12
fsanchezel codigo lo estoy poniendo en el metodo __setup__ de la clase.02:12
fsanchezclass PartyIdentifier(ModelSQL, ModelView, metaclass=PoolMeta):02:12
fsanchez    'Party Identifier'02:12
fsanchez    #__metaclass__ = PoolMeta02:12
fsanchez    __name__ = 'party.identifier'02:12
fsanchez    @classmethod02:12
fsanchez    def __setup__(cls):02:12
fsanchez        super(PartyIdentifier, cls).__setup__()02:12
fsanchez        cls.type.selection.clear()02:12
fsanchez        pool = Pool()02:12
fsanchez        Tipodocs = pool.get('sunat.tipodocid')02:12
fsanchez        tipos= Tipodocs.search([("active","=",1)])02:12
fsanchez        cls.type.selection.extend(tipos)02:12
fsanchezSi alguien le echa una mirada a mi codigo y me tira un cable, le estare agradecido.03:12
-!- yangoon(~mathiasb@i59F4D103.versanet.de) has joined #tryton03:12
-!- fsanchez(~fsanchez@2001:1388:2142:9352:f82c:1278:397d:4156) has joined #tryton04:12
fsanchez12304:12
-!- yangoon1(~mathiasb@i59F4DDFC.versanet.de) has joined #tryton04:12
-!- thaneor(~lenovo3@r179-25-103-28.dialup.adsl.anteldata.net.uy) has joined #tryton04:12
-!- fsanchez(~fsanchez@2001:1388:2142:9352:f82c:1278:397d:4156) has joined #tryton06:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:12
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton12:12
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton13:12
-!- thaneor1(~lenovo3@r186-48-45-80.dialup.adsl.anteldata.net.uy) has joined #tryton16:12
-!- fsanchez(~fsanchez@190.236.0.113) has joined #tryton18:12
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:12

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