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 #tryton00:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:29
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:42
-!- fsanchez(~fsanchez@2001:1388:2142:9352:f82c:1278:397d:4156) has joined #tryton01:54
fsanchezHolas01:55
fsanchezEstoy extendiendo el type.selection de party.identifier y me tira un error: Error: type object \'sunat.tipodocid\' has no attribute \'_fields\'\n'>01:57
fsanchezLo hago en un modulo aparte logicamente, usando tryton 5.0,01:57
fsanchezel codigo lo estoy poniendo en el metodo __setup__ de la clase.01:58
fsanchezclass PartyIdentifier(ModelSQL, ModelView, metaclass=PoolMeta):01:59
fsanchez    'Party Identifier'01:59
fsanchez    #__metaclass__ = PoolMeta01:59
fsanchez    __name__ = 'party.identifier'01:59
fsanchez    @classmethod01:59
fsanchez    def __setup__(cls):01:59
fsanchez        super(PartyIdentifier, cls).__setup__()01:59
fsanchez        cls.type.selection.clear()01:59
fsanchez        pool = Pool()01:59
fsanchez        Tipodocs = pool.get('sunat.tipodocid')01:59
fsanchez        tipos= Tipodocs.search([("active","=",1)])01:59
fsanchez        cls.type.selection.extend(tipos)01:59
fsanchezSi alguien le echa una mirada a mi codigo y me tira un cable, le estare agradecido.02:00
-!- yangoon(~mathiasb@i59F4D103.versanet.de) has joined #tryton02:18
-!- fsanchez(~fsanchez@2001:1388:2142:9352:f82c:1278:397d:4156) has joined #tryton03:20
fsanchez12303:20
-!- yangoon1(~mathiasb@i59F4DDFC.versanet.de) has joined #tryton03:34
-!- thaneor(~lenovo3@r179-25-103-28.dialup.adsl.anteldata.net.uy) has joined #tryton03:54
-!- fsanchez(~fsanchez@2001:1388:2142:9352:f82c:1278:397d:4156) has joined #tryton05:54
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:55
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton11:08
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton12:48
-!- thaneor1(~lenovo3@r186-48-45-80.dialup.adsl.anteldata.net.uy) has joined #tryton15:57
-!- fsanchez(~fsanchez@190.236.0.113) has joined #tryton17:17
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton21:01

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