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

chat.freenode.net #tryton log beginning Wed Nov 22 00:00:01 CET 2017
2017-11-22 01:23 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-11-22 03:42 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-11-22 07:41 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-11-22 07:53 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2017-11-22 08:13 -!- rpit(~rpit@p200300C88BD1190056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton
2017-11-22 08:19 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-11-22 08:30 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-11-22 08:56 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2017-11-22 09:09 -!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-22 09:16 -!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-22 09:18 -!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-22 10:18 -!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-22 10:55 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-11-22 11:00 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-11-22 11:01 -!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-22 11:09 -!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-22 11:12 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton
2017-11-22 11:12 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-11-22 11:29 -!- csotelo(~csotelo@179.7.43.195) has joined #tryton
2017-11-22 11:43 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2017-11-22 12:01 -!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton
2017-11-22 12:27 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2017-11-22 13:00 -!- smarro(~sebastian@181.16.34.86) has joined #tryton
2017-11-22 14:19 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton
2017-11-22 14:20 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton
2017-11-22 14:20 -!- csotelo_at_work_(~csotelo@179.43.97.56) has joined #tryton
2017-11-22 14:21 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton
2017-11-22 14:43 -!- niki(~niki@0x3e2c86a9.mobile.telia.dk) has joined #tryton
2017-11-22 15:44 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton
2017-11-22 15:48 -!- perilla(~perilla@200.7.247.225) has joined #tryton
2017-11-22 15:53 <perilla> cedk: on review https://codereview.tryton.org/35771002 you talk about debounce method, but this method is not used on sao yet...
2017-11-22 15:55 <perilla> cedk: I should implement debounce from scratch or use a existing library like https://cdnjs.com/libraries/jquery-throttle-debounce
2017-11-22 15:56 <cedk> perilla: avoid adding any JS library, the eco system is really not stable
2017-11-22 15:56 <cedk> perilla: see my debounce implementation in Ceryx
2017-11-22 15:56 <perilla> cedk: ok, thanks
2017-11-22 16:17 -!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton
2017-11-22 16:43 -!- udono(~udono@145-059-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-22 16:46 -!- mariomop(~quassel@181.111.14.222) has joined #tryton
2017-11-22 17:34 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton
2017-11-22 18:57 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-11-22 19:27 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton
2017-11-22 19:28 <andrespoliti> hi, how can i remove the required constraint of a field in an extension?
2017-11-22 19:28 <cedk> andrespoliti: not recommended as it will probably break the all system
2017-11-22 19:29 <andrespoliti> i want to make it not required depending on another boolean field
2017-11-22 19:29 <cedk> andrespoliti: it will still break other code that relies on it being required
2017-11-22 19:29 <cedk> andrespoliti: we put required only when it is needed by the code
2017-11-22 19:30 <cedk> andrespoliti: by you can change the attribute in __setup__ and make a migration in __register__
2017-11-22 19:31 <andrespoliti> the 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 extension
2017-11-22 19:31 <cedk> andrespoliti: so remove it in your module
2017-11-22 19:31 <andrespoliti> yes, i removed it, but the states is not being added
2017-11-22 19:32 <andrespoliti> this is what i did in the extension
2017-11-22 19:33 <andrespoliti> purchase = fields.Many2One('purchase.purchase', 'Compra', states=_STATES_COMMUNITY_INVOICE)
2017-11-22 19:33 <andrespoliti> i defined the field exactly as it was defined in the original module, but i added the states=_STATES_COMMUNITY_INVOICE
2017-11-22 19:34 <cedk> andrespoliti: why not remove in the original module if it is not needed
2017-11-22 19:34 <cedk> andrespoliti: also you can not redifine a field, you must change it in __setup__ as I said
2017-11-22 19:34 <andrespoliti> the original module is needed, it does other things
2017-11-22 19:38 <cedk> andrespoliti: so you can not remove it as it is needed
2017-11-22 19:39 <andrespoliti> no, and a refactor to remove it and include the code in this module would take too long
2017-11-22 19:40 <andrespoliti> defining the states in the setup worked
2017-11-22 19:40 <andrespoliti> thanks!
2017-11-22 19:43 <andrespoliti> another 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 reference
2017-11-22 19:43 <andrespoliti> account_invoice.invoice_view_form or account_invoice_ar.invoice_view_form?
2017-11-22 19:50 <cedk> andrespoliti: always inherit the base view
2017-11-22 19:51 <cedk> andrespoliti: transformation applies using the module dependency resolution
2017-11-22 19:51 <andrespoliti> okey, then the problem must be something else, because i'm not seeing the fields added by account_invoice_ar
2017-11-22 19:53 <andrespoliti> and budget module should depend on account_invoice_ar?
2017-11-22 19:54 <cedk> andrespoliti: module that uses field from other modules should depend on them
2017-11-22 19:55 <cedk> andrespoliti: but what you explain, trigger me the spagetti code warning
2017-11-22 19:57 <andrespoliti> yes, i know, it's a huge project and it was touched by many people, sadly they will not give me the time to refactor it
2017-11-22 19:58 -!- perilla(~perilla@200.7.247.225) has joined #tryton
2017-11-22 20:05 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2017-11-22 20:06 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton
2017-11-22 22:00 -!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton
2017-11-22 22:36 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-11-22 22:43 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has left #tryton
2017-11-22 23:04 -!- robink(~quassel@fatcat.creosotehill.org) has joined #tryton
2017-11-22 23:04 -!- robink(~quassel@unaffilated/robink) has joined #tryton
2017-11-22 23:26 -!- catonano(~user@151.50.146.11) has joined #tryton

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