IRC logs of #tryton for Wednesday, 2017-11-22

chat.freenode.net #tryton log beginning Wed Nov 22 00:00:01 CET 2017
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:23
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton03:42
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:41
-!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton07:53
-!- rpit(~rpit@p200300C88BD1190056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton08:13
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton08:19
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:30
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:56
-!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton09:09
-!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton09:16
-!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton09:18
-!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton10:18
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:55
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton11:00
-!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton11:01
-!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton11:09
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton11:12
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton11:12
-!- csotelo(~csotelo@179.7.43.195) has joined #tryton11:29
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton11:43
-!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton12:01
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton12:27
-!- smarro(~sebastian@181.16.34.86) has joined #tryton13:00
-!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton14:19
-!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton14:20
-!- csotelo_at_work_(~csotelo@179.43.97.56) has joined #tryton14:20
-!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton14:21
-!- niki(~niki@0x3e2c86a9.mobile.telia.dk) has joined #tryton14:43
-!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton15:44
-!- perilla(~perilla@200.7.247.225) has joined #tryton15:48
perillacedk: on review https://codereview.tryton.org/35771002 you talk about debounce method, but this method is not used on sao yet...15:53
perillacedk: I should implement debounce from scratch or use a existing library like https://cdnjs.com/libraries/jquery-throttle-debounce15:55
cedkperilla: avoid adding any JS library, the eco system is really not stable15:56
cedkperilla: see my debounce implementation in Ceryx15:56
perillacedk: ok, thanks15:56
-!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton16:17
-!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton16:43
-!- mariomop(~quassel@181.111.14.222) has joined #tryton16:46
-!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton17:34
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:57
-!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton19:27
andrespolitihi, how can i remove the required constraint of a field in an extension?19:28
cedkandrespoliti: not recommended as it will probably break the all system19:28
andrespolitii want to make it not required depending on another boolean field19:29
cedkandrespoliti: it will still break other code that relies on it being required19:29
cedkandrespoliti: we put required only when it is needed by the code19:29
cedkandrespoliti: by you can change the attribute in __setup__ and make a migration in __register__19:30
andrespolitithe required condition is from another module we did. I checked it will not break. But i need to change the states of the field from within the extension19:31
cedkandrespoliti: so remove it in your module19:31
andrespolitiyes, i removed it, but the states is not being added19:31
andrespolitithis is what i did in the extension19:32
andrespoliti purchase = fields.Many2One('purchase.purchase', 'Compra', states=_STATES_COMMUNITY_INVOICE)19:33
andrespolitii defined the field exactly as it was defined in the original module, but i added the states=_STATES_COMMUNITY_INVOICE19:33
cedkandrespoliti: why not remove in the original module if it is not needed19:34
cedkandrespoliti: also you can not redifine a field, you must change it in __setup__ as I said19:34
andrespolitithe original module is needed, it does other things19:34
cedkandrespoliti: so you can not remove it as it is needed19:38
andrespolitino, and a refactor to remove it and include the code in this module would take too long19:39
andrespolitidefining the states in the setup worked19:40
andrespolitithanks!19:40
andrespolitianother question: i have account_invoice, extended by account_invoice_ar, extended by budget. From within the budget module, I want to add fields to invoice view but also have the new fields added by account_invoice_ar. Which view should The inherit field in the xml should reference19:43
andrespolitiaccount_invoice.invoice_view_form or account_invoice_ar.invoice_view_form?19:43
cedkandrespoliti: always inherit the base view19:50
cedkandrespoliti: transformation applies using the module dependency resolution19:51
andrespolitiokey, then the problem must be something else, because i'm not seeing the fields added by account_invoice_ar19:51
andrespolitiand budget module should depend on account_invoice_ar?19:53
cedkandrespoliti: module that uses field from other modules should depend on them19:54
cedkandrespoliti: but what you explain, trigger me the spagetti code warning19:55
andrespolitiyes, i know, it's a huge project and it was touched by many people, sadly they will not give me the time to refactor it19:57
-!- perilla(~perilla@200.7.247.225) has joined #tryton19:58
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton20:05
-!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton20:06
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:00
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton22:36
-!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has left #tryton22:43
-!- robink(~quassel@fatcat.creosotehill.org) has joined #tryton23:04
-!- robink(~quassel@unaffilated/robink) has joined #tryton23:04
-!- catonano(~user@151.50.146.11) has joined #tryton23:26

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!