IRC logs of #tryton for Thursday, 2017-11-30

chat.freenode.net #tryton log beginning Thu Nov 30 00:00:01 CET 2017
-!- csotelo(~csotelo@181.176.91.29) has joined #tryton00:28
-!- csotelo(~csotelo@181.176.91.29) has joined #tryton00:31
-!- smarro(~sebastian@181.16.34.86) has joined #tryton01:03
-!- thaneor1(~ldlc6@r179-25-164-223.dialup.adsl.anteldata.net.uy) has joined #tryton03:29
-!- zmijunkie1(~Adium@200116b80a4c2f002cc3cb1497d4773a.dip.versatel-1u1.de) has joined #tryton04:07
-!- robink(~quassel@unaffilated/robink) has joined #tryton06:01
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton06:47
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton06:55
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton08:47
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton09:04
-!- csotelo(~csotelo@181.176.56.65) has joined #tryton09:04
-!- rpit(~rpit@p4FD19F0C.dip0.t-ipconnect.de) has joined #tryton09:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:11
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:12
-!- zmijunkie(~Adium@200116b80a4c2f002cc3cb1497d4773a.dip.versatel-1u1.de) has joined #tryton10:36
-!- sim6(sim6matrix@gateway/shell/matrix.org/x-mmyhkptzgsjcenjp) has joined #tryton10:45
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton10:58
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton11:11
-!- csotelo(~csotelo@181.176.94.110) has joined #tryton11:13
mrichezhi, wondering how is raised pre_validate error when clicking "complete lines" without inventory location in inventory module? Is it an automatic behaviour cause i don't see any "pre_validate" instruction in script? Could this pre-validate also applied on the inventory lines? (you could add lines manually without specifing inventory location, but when you save you got warning "location is mandatory", and you have to delete all the lines to update location...11:28
pokolimrichez: probablly the best option is to make inventory lines readonly if no location is filled on the inventory11:34
pokolimrichez: like we do on sale lines with party11:34
mrichezpokoli: seems logical11:35
pokolimrichez: the pre-validate is complaining about required fields, isn't it?11:36
mrichezpokoli: indeed, so i'll introduce an issue for this change (lines readonly until location and date fields filled)11:37
pokolimrichez: yes, but this does not fix https://tryton-rietveld-hrd.appspot.com/37861002/diff/1/inventory.py#newcode34711:38
pokolimrichez: on_change_methods should not fail when called with all values empty11:38
pokolimrichez: indeed there is a test that enforces it11:39
mrichezpokoli: ok will add a test on location and date11:39
pokolimrichez: just test the value is filled on the scenario11:42
pokolimrichez: on_change is tested here: http://hg.tryton.org/trytond/file/cb69edb0ea61/trytond/tests/test_tryton.py#l35511:43
mrichezpokoli: thanks11:44
-!- meigallodixital_(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton12:48
-!- smarro(~sebastian@181.16.34.86) has joined #tryton13:04
-!- rpit(~rpit@p200300C88BD1190056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton13:27
mrichezpokoli: following our previous discussion, wondering how it's defined that sales_lines are readonly unless party is filled ? Don't see a state : readonly : Eval(party) on the lines13:37
pokolimrichez: it's defined on the sale_price_list module: http://hg.tryton.org/modules/sale_price_list/file/5d886f7363c7/sale.py#l2713:44
mrichezpokoli: ok, i was looking in sale module... :-)13:47
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton14:06
-!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton14:08
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:11
-!- csotelo_at_work(~csotelo@181.176.191.186) has joined #tryton14:26
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton14:31
andrespolitihi, i am trying to use celery_tryton but i'm having trouble defining the configuration14:34
andrespolitithis is what i have: https://pastebin.com/7yx2YAc614:35
andrespolitiand i get this error:14:35
andrespolitiAttributeError: 'Settings' object has no attribute 'TRYTON_DATABASE'14:35
-!- rpit(~rpit@p200300C88BD1190056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton14:42
-!- JanGB(~jan@x2f7ffe7.dyn.telefonica.de) has joined #tryton15:30
-!- thaneor(~ldlc6@r179-25-176-137.dialup.adsl.anteldata.net.uy) has joined #tryton15:30
-!- JanGB(~jan@p54855E24.dip0.t-ipconnect.de) has joined #tryton15:31
yangoonhi all, can someone tell me how to extend staticmethods in tryton? According to https://stackoverflow.com/questions/26788214/super-and-staticmethod-interaction it should work like in https://pastebin.com/fXgWptRg, but I still get AttributeError: 'super' object has no attribute '_get_tax_rule_pattern'15:40
pokoliyangoon: you can extend them as classmethods15:41
pokoliyangoon: super(Class, cls).staticmethod() will call the parent staticmethod15:41
yangoonpokoli: thx a lot, works!15:42
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton15:43
pokoliI'm wondering how people manage machines on tryton. Do they create as company employees?15:49
cedkpokoli: it is an asset15:50
pokolicedk: but, who I inidicate that an asset must be used for a production15:51
pokolis/who/how15:52
cedkpokoli: you can link assets to work center15:53
pokolicedk: thanks.16:07
pokoliprobably we should revieve the assets blueprint: http://hg.tryton.org/deprecated/tryton.wiki/file/e5cff9482830/Assets.wiki16:07
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton16:55
-!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton17:43
lukioHi everybody, I want to add history to one of my models. I added it the attribute _history=True. But I don't understand how to add the history tab to the view form. thanks!17:45
cedklukio: there is no history tab17:48
cedklukio: you have only the revision browsing from the menu17:49
lukiohi cedk, but i see the history tab at sale_opportunity module, and i did not saw anything about that at the view form.17:50
nicoelukio: http://hg.tryton.org/modules/sale_opportunity/file/tip/opportunity.py#l9717:55
nicoeThe refered model is a table_query17:56
andrespolitihi, i am trying to use celery_tryton but i'm having trouble defining the configuration18:00
andrespolitithis is what i have: https://pastebin.com/7yx2YAc618:00
andrespolitiand i get this error: AttributeError: 'Settings' object has no attribute 'TRYTON_DATABASE'18:00
lukionicoe: great, thanks!18:04
-!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton18:09
-!- NeonKing(~Neonking@176.179.38.86) has joined #tryton18:57
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton18:58
-!- JanGB(~jan@x2f7fba3.dyn.telefonica.de) has joined #tryton19:05
-!- JanGB(~jan@x2f7fba3.dyn.telefonica.de) has joined #tryton19:08
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:15
-!- JanGB1(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton19:16
-!- lukio(~lukio@iplan.gcoop.com.ar) has left #tryton20:29
-!- mariomop(~quassel@181.88.203.135) has joined #tryton20:52
-!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton20:56
andrespolitihello, i downloaded trytond-4.0.12.tar.gz but there are no differences with trytond-4.0.11.tar.gz except for the changelog. If i download it with git, i see the changes21:01
-!- catonano(~user@151.50.145.188) has joined #tryton21:30
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- udono1(~udono@107-057-210-188.ip-addr.inexio.net) has joined #tryton23:05
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:35

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