IRC logs of #tryton for Friday, 2018-09-14

chat.freenode.net #tryton log beginning Fri Sep 14 00:00:02 CEST 2018
-!- leosemilie(~leosemili@2600:100a:b12b:ffd2:dffe:9f2a:eb09:87dd) has joined #tryton22:56
-!- cdchapman(~perturbed@c-73-3-96-68.hsd1.ut.comcast.net) has joined #tryton23:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:14
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton23:24
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:08
-!- sisalp(~sisalpuse@ip224.ip-87-98-144.eu) has joined #tryton01:00
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton01:00
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton01:02
-!- leosemilie(~leosemili@2600:100a:b101:e293:7703:e3f6:981a:ee49) has joined #tryton01:09
-!- leosemilie(~leosemili@2600:100a:b101:e293:7703:e3f6:981a:ee49) has left #tryton01:10
-!- csotelo(~csotelo@2001:1388:49c7:86f5:9a36:434:8df8:4780) has joined #tryton02:33
-!- yangoon(~mathiasb@i59F52FC7.versanet.de) has joined #tryton02:39
-!- jani-matti(~quassel@93-90-53-6.welcomnet.fi) has joined #tryton03:03
-!- zmijunkie(~Adium@i577ADF26.versanet.de) has joined #tryton04:24
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton04:52
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:02
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton06:08
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton06:27
-!- smorillo(bc558c12@gateway/web/cgi-irc/kiwiirc.com/ip.188.85.140.18) has joined #tryton06:41
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton06:42
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton06:57
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has left #tryton07:44
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton07:49
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton07:58
LordVanhi07:59
LordVanif I want to extend a view in the sale module ( http://doc.tryton.org/4.8/trytond/doc/topics/views/extension.html#topics-extension ) how do i figure out which expr to use?08:17
-!- vindelschtuffen(~vindelsch@90.205.187.75) has joined #tryton08:28
-!- thaneor1(~lenovo3@r179-25-169-219.dialup.adsl.anteldata.net.uy) has joined #tryton08:51
LordVansomeone here who can help me with adding a colum to the list of items on a sale? (i am not sure what xpath i need exactly) )09:00
LordVansemarie, i just noticed that apparently 6 months ago the description field got removed from that list of items on a sale: https://github.com/tryton/sale/commit/de3e18738124917f10314749d2067e39edb22f2809:05
LordVanthough how can i now re-add it  (the file it got removed from is  https://github.com/tryton/sale/blob/develop/view/sale_line_tree.xml)09:05
LordVanshould this work?    <xpath expr="/form/notebook/page[id='sale']/field[@id='lines']/tree/field[@id='product']" position="after">09:19
LordVan(btw i only have the xml file in my module nothing else - -except the cfg file and __init__.py of course09:21
LordVando i need something else if i just want to extend the view with xml?09:21
-!- wizardedit28(~wizardedi@5.107.204.153) has joined #tryton09:35
-!- ndk5(~ndk@155.12.112.78.rev.sfr.net) has joined #tryton09:39
LordVanguess i have to wait for someone informed to come online since I am kinda stuck09:42
LordVan(and the way i see it it is likely somethign really simple i am missing)09:43
LordVanafk (lunch) but leaving it online so will read possible answers later ;)09:59
smorilloyou have to xpatch the sale line tree view10:03
smorillonot the sale form view10:04
smorillo<xpath expr="/tree/field[@id='product']" position="after">10:05
-!- cookiebow13(~cookiebow@89.42.10.93.rev.sfr.net) has joined #tryton10:11
-!- phoe61(~phoe6@LFbn-LIL-1-318-203.w81-49.abo.wanadoo.fr) has joined #tryton10:35
-!- vmora(~vmora@aracar.oslandia.net) has joined #tryton11:00
LordVansmorillo, i shall try that. thanks11:02
LordVansmorillo, doesn't seem to work . hmm11:05
vmorahi, I'm trying to port old modules to tryton 4.8, seen in the irc log "sisalp: al modules are listed on https://downloads.tryton.org/4.8/modules.txt (which does not contain the gis folder)" ... well, I need support for postgis geometries and I'm a bit clueless about the hows and whys the are not supported, can someone help plz ?11:05
LordVansmorillo, i have <tryton><data><xpath expr="/tree/field[@id='product']" position="after"><field name="description" /></xpath></data></tryton> but it doesn't show the description in the list of sale items11:07
LordVando i need anything else?11:07
smorillovmora: https://discuss.tryton.org/t/tryton-and-postgis/70011:07
vmorasmorillo thanks a lot11:08
smorilloLordVan: are you defining xml of inherit view?11:08
LordVaner no - that is my whole xml file .. (this is my very first module and i didn't really find a good example of somethign like this that I did understand)11:09
smorilloLordVan: http://hg.tryton.org/modules/sale_price_list/file/tip/sale.xml#l711:09
smorilloyou have to define an ir.ui.view record from xml, that inherit the original id view11:10
LordVanhmm does that mean i do not need the xpath at all but just that instead?11:10
smorilloyou need both11:10
LordVanok can that be in the same file?11:10
smorillodoesn't should ...11:10
smorillothe xpath sould be in view folder11:11
LordVanhm11:11
smorilloand the other xml in root module path11:11
LordVanic .. do i need to define the xpath in the cfg fiele as well?11:11
smorillono, you don't11:12
smorillocheck the module sale_price_list, it adds a file in sale header11:12
LordVani shall look11:12
LordVanthanks11:12
smorillotryton.cfg points to root xml files11:12
-!- Guest10132(~zizzfizzi@197.46.69.30) has joined #tryton11:13
LordVanok . do i need any python code too for just adding an existing column to the table?11:13
smorilloyes, you have to define the field in sale.line model11:14
LordVanah ok - i had thought changes like this can be done with just the xml11:14
smorillocheck again this module, it adds a field to sale header11:15
LordVanyes i am reading it11:15
smorillono, xml is view side11:15
LordVanjust wanted to make sure i know what i need now11:15
smorillook11:15
LordVandoes the xml file name have to match the python one?11:16
-!- vim24x7(~vim24x7@201.97.136.6) has joined #tryton11:17
LordVannm i do it anyway11:17
LordVantoo bad for me that the description field got removed from that table 6 months ago .. (or maybe good so i have a nice start for tryton dev)11:18
LordVanI am a bit confused though what exactly I need to do in the python file now (since I want to just show an existing field instead of adding a new one)11:20
LordVanI assume the __setup__ stuff with on_change_add( ..11:22
LordVandoes the xml fiel with the xpath have to have a specific name?11:28
LordVanI gave it the name of the original xml file11:31
LordVanview/sale_line_tree_sequence.xml11:32
-!- kudowins_17(~kudowins_@169-1-154-215.ip.afrihost.co.za) has joined #tryton11:41
smorilloLordVan: sorry, if field already exists you don't need python code11:43
LordVanah11:44
smorilloLordVan: (I didn't read the field was description)11:44
LordVanok11:44
LordVani am glad my first guess was correct - it seemed overkill to require python to display an existing field11:44
LordVanstill11:44
LordVansoemthing is not working yet11:45
smorilloLordVan: the file name of xpath must match with the field "name" in inherit view11:45
smorilloplease paste your code in some place to help you11:46
LordVanyeah i was just thiniking i need to do this11:46
LordVansince it is several files a pastebin is probably not the right hting though11:46
smorilloLordVan: if you have bitbucket or github account you can create a repo with the module11:47
LordVanyeah was just checking if i had git on that VM11:49
LordVanor still need to set it up11:49
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton12:03
-!- wastrel29(~wastrel@148.255.18.5) has joined #tryton12:03
LordVansmorillo, ok git is a pain to set up from scratch sometimes ^^12:05
LordVanhere is a simple pastebin of everything12:05
LordVanhttps://dpaste.de/CCw412:05
LordVansmorillo, ignore the sale.py file it is not used12:06
smorilloLordVan: sale.xml is wrong12:08
smorilloyou have to point to sale.line12:08
smorilloLordVan: check my changes12:09
LordVan?12:10
LordVancan you change my paste?12:10
LordVanah damn gotta go afk. i shall chekc the backlog later12:13
-!- csotelo(~csotelo@2001:1388:49c7:9d8c:c01d:7060:8d3:a47) has joined #tryton12:40
LordVanwell that took longer than expected13:17
LordVanhmm13:19
LordVananyone else can help me fix my xml?13:19
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton13:38
-!- tafelgeschirr_(~tafelgesc@5.104.149.54) has joined #tryton13:52
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton13:55
mrichezLordVan: Hi, you want to add description field on the lines in the sale form?14:00
mrichezLordVan: in this case you should extend sale_line_view_tree_sequence14:00
mrichezLordVan: so your file sale.xml should be : https://dpaste.de/UBf614:01
mrichezLordVan: and you have to rename /view/sale_form.xml to /view/sale_line_tree_sequence.xml14:01
LordVantrying that now14:01
LordVani was experiemtning with different id/ref but couldn't figure out what i needced14:01
mrichezLordVan: i'll have to go. Hope this will help you14:01
LordVanwell the error is gone14:02
LordVanbut it still doesn't show the description .. hmm14:02
mrichezLordVan: hmm... strange...14:10
LordVanwould the <field name="model"> not hae to be sale.line?14:11
mrichezLordVan: indeed :-)14:12
LordVando i have to hcange the inherit too though? hmm14:12
mrichezLordVan: no14:13
mrichezLordVan: inherit is referencing the id in the sale.xml form module sale14:14
mrichezfrom14:14
LordVanhmm i don't understand why it still won't work now though14:15
LordVanmeh14:16
LordVanAttributeError: Couldn't find tag (xpath: /tree/field[@id='product']) in parent view!14:16
-!- smorillo(250f655f@gateway/web/cgi-irc/kiwiirc.com/ip.37.15.101.95) has joined #tryton14:16
LordVanI shall think about that .. gtg now myself14:16
LordVanthanks again & cya around14:17
mrichezLordVan: you should use name instead of id : xpath: /tree/field[@name='product']14:18
mrichezLordVan: bye!14:18
-!- mlncn19(~mlncn@95.46.237.181) has joined #tryton14:19
-!- colona14(~colona@103.237.158.34) has joined #tryton14:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:31
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:51
-!- moufl13(~moufl@ab226160.dynamic.ppp.asahi-net.or.jp) has joined #tryton15:55
-!- CompWizrd20(~CompWizrd@78-22-234-180.access.telenet.be) has joined #tryton16:08
-!- mrichez(~smuxi@222.5-200-80.adsl-dyn.isp.belgacom.be) has joined #tryton16:13
-!- lucascastro(~lucascast@2804:c2c:cb00:0:abea:507:c831:7bef) has joined #tryton18:28
-!- xnbya27(~xnbya@ag-242-88.sta.ji.cz) has joined #tryton19:23
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton19:25
andrespolitigood afternoon19:25
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton19:27
andrespolitii googled for documentation about theme.css but i couldn't find much info, how can i make the required fields to have a different style?19:29
andrespolitii found that setting a css in the home/.config/tryton directory works, but how can i make this the default theme without creating files in the home directory?19:33
-!- lilmonkey``(~lilmonkey@66.212.52.207) has joined #tryton19:59
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton20:00
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton20:01
-!- mariomop(~quassel@host15.190-137-75.telecom.net.ar) has joined #tryton20:14
-!- jmpoure(~jmpoure@63.109.206.77.rev.sfr.net) has joined #tryton20:21
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton20:27
-!- ThatDamnRanga4(~ThatDamnR@89-166-124-78.bb.dnainternet.fi) has joined #tryton20:46
-!- thaneor(~lenovo3@r179-25-165-80.dialup.adsl.anteldata.net.uy) has joined #tryton20:54
-!- lucas_(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton21:05

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