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 #tryton00:09
-!- cdchapman(~perturbed@c-73-3-96-68.hsd1.ut.comcast.net) has joined #tryton01:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:09
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton01:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:09
-!- sisalp(~sisalpuse@ip224.ip-87-98-144.eu) has joined #tryton03:09
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton03:09
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton03:09
-!- leosemilie(~leosemili@2600:100a:b101:e293:7703:e3f6:981a:ee49) has joined #tryton03:09
-!- leosemilie(~leosemili@2600:100a:b101:e293:7703:e3f6:981a:ee49) has left #tryton03:09
-!- csotelo(~csotelo@2001:1388:49c7:86f5:9a36:434:8df8:4780) has joined #tryton04:09
-!- yangoon(~mathiasb@i59F52FC7.versanet.de) has joined #tryton04:09
-!- jani-matti(~quassel@93-90-53-6.welcomnet.fi) has joined #tryton05:09
-!- zmijunkie(~Adium@i577ADF26.versanet.de) has joined #tryton06:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton06:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton08:09
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton08:09
-!- smorillo(bc558c12@gateway/web/cgi-irc/kiwiirc.com/ip.188.85.140.18) has joined #tryton08:09
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton08:09
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:09
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has left #tryton09:09
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton09:09
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton09:09
LordVanhi09:09
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?10:09
-!- vindelschtuffen(~vindelsch@90.205.187.75) has joined #tryton10:09
-!- thaneor1(~lenovo3@r179-25-169-219.dialup.adsl.anteldata.net.uy) has joined #tryton10:09
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) )11:09
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/de3e18738124917f10314749d2067e39edb22f2811:09
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)11:09
LordVanshould this work?    <xpath expr="/form/notebook/page[id='sale']/field[@id='lines']/tree/field[@id='product']" position="after">11:09
LordVan(btw i only have the xml file in my module nothing else - -except the cfg file and __init__.py of course11:09
LordVando i need something else if i just want to extend the view with xml?11:09
-!- wizardedit28(~wizardedi@5.107.204.153) has joined #tryton11:09
-!- ndk5(~ndk@155.12.112.78.rev.sfr.net) has joined #tryton11:09
LordVanguess i have to wait for someone informed to come online since I am kinda stuck11:09
LordVan(and the way i see it it is likely somethign really simple i am missing)11:09
LordVanafk (lunch) but leaving it online so will read possible answers later ;)11:09
smorilloyou have to xpatch the sale line tree view12:09
smorillonot the sale form view12:09
smorillo<xpath expr="/tree/field[@id='product']" position="after">12:09
-!- cookiebow13(~cookiebow@89.42.10.93.rev.sfr.net) has joined #tryton12:09
-!- phoe61(~phoe6@LFbn-LIL-1-318-203.w81-49.abo.wanadoo.fr) has joined #tryton12:09
-!- vmora(~vmora@aracar.oslandia.net) has joined #tryton13:09
LordVansmorillo, i shall try that. thanks13:09
LordVansmorillo, doesn't seem to work . hmm13:09
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 ?13:09
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 items13:09
LordVando i need anything else?13:09
smorillovmora: https://discuss.tryton.org/t/tryton-and-postgis/70013:09
vmorasmorillo thanks a lot13:09
smorilloLordVan: are you defining xml of inherit view?13:09
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)13:09
smorilloLordVan: http://hg.tryton.org/modules/sale_price_list/file/tip/sale.xml#l713:09
smorilloyou have to define an ir.ui.view record from xml, that inherit the original id view13:09
LordVanhmm does that mean i do not need the xpath at all but just that instead?13:09
smorilloyou need both13:09
LordVanok can that be in the same file?13:09
smorillodoesn't should ...13:09
smorillothe xpath sould be in view folder13:09
LordVanhm13:09
smorilloand the other xml in root module path13:09
LordVanic .. do i need to define the xpath in the cfg fiele as well?13:09
smorillono, you don't13:09
smorillocheck the module sale_price_list, it adds a file in sale header13:09
LordVani shall look13:09
LordVanthanks13:09
smorillotryton.cfg points to root xml files13:09
-!- Guest10132(~zizzfizzi@197.46.69.30) has joined #tryton13:09
LordVanok . do i need any python code too for just adding an existing column to the table?13:09
smorilloyes, you have to define the field in sale.line model13:09
LordVanah ok - i had thought changes like this can be done with just the xml13:09
smorillocheck again this module, it adds a field to sale header13:09
LordVanyes i am reading it13:09
smorillono, xml is view side13:09
LordVanjust wanted to make sure i know what i need now13:09
smorillook13:09
LordVandoes the xml file name have to match the python one?13:09
-!- vim24x7(~vim24x7@201.97.136.6) has joined #tryton13:09
LordVannm i do it anyway13:09
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)13:09
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)13:09
LordVanI assume the __setup__ stuff with on_change_add( ..13:09
LordVandoes the xml fiel with the xpath have to have a specific name?13:09
LordVanI gave it the name of the original xml file13:09
LordVanview/sale_line_tree_sequence.xml13:09
-!- kudowins_17(~kudowins_@169-1-154-215.ip.afrihost.co.za) has joined #tryton13:09
smorilloLordVan: sorry, if field already exists you don't need python code13:09
LordVanah13:09
smorilloLordVan: (I didn't read the field was description)13:09
LordVanok13:09
LordVani am glad my first guess was correct - it seemed overkill to require python to display an existing field13:09
LordVanstill13:09
LordVansoemthing is not working yet13:09
smorilloLordVan: the file name of xpath must match with the field "name" in inherit view13:09
smorilloplease paste your code in some place to help you13:09
LordVanyeah i was just thiniking i need to do this13:09
LordVansince it is several files a pastebin is probably not the right hting though13:09
smorilloLordVan: if you have bitbucket or github account you can create a repo with the module13:09
LordVanyeah was just checking if i had git on that VM13:09
LordVanor still need to set it up13:09
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton14:09
-!- wastrel29(~wastrel@148.255.18.5) has joined #tryton14:09
LordVansmorillo, ok git is a pain to set up from scratch sometimes ^^14:09
LordVanhere is a simple pastebin of everything14:09
LordVanhttps://dpaste.de/CCw414:09
LordVansmorillo, ignore the sale.py file it is not used14:09
smorilloLordVan: sale.xml is wrong14:09
smorilloyou have to point to sale.line14:09
smorilloLordVan: check my changes14:09
LordVan?14:09
LordVancan you change my paste?14:09
LordVanah damn gotta go afk. i shall chekc the backlog later14:09
-!- csotelo(~csotelo@2001:1388:49c7:9d8c:c01d:7060:8d3:a47) has joined #tryton14:09
LordVanwell that took longer than expected15:09
LordVanhmm15:09
LordVananyone else can help me fix my xml?15:09
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton15:09
-!- tafelgeschirr_(~tafelgesc@5.104.149.54) has joined #tryton15:09
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton15:09
mrichezLordVan: Hi, you want to add description field on the lines in the sale form?16:09
mrichezLordVan: in this case you should extend sale_line_view_tree_sequence16:09
mrichezLordVan: so your file sale.xml should be : https://dpaste.de/UBf616:09
mrichezLordVan: and you have to rename /view/sale_form.xml to /view/sale_line_tree_sequence.xml16:09
LordVantrying that now16:09
LordVani was experiemtning with different id/ref but couldn't figure out what i needced16:09
mrichezLordVan: i'll have to go. Hope this will help you16:09
LordVanwell the error is gone16:09
LordVanbut it still doesn't show the description .. hmm16:09
mrichezLordVan: hmm... strange...16:09
LordVanwould the <field name="model"> not hae to be sale.line?16:09
mrichezLordVan: indeed :-)16:09
LordVando i have to hcange the inherit too though? hmm16:09
mrichezLordVan: no16:09
mrichezLordVan: inherit is referencing the id in the sale.xml form module sale16:09
mrichezfrom16:09
LordVanhmm i don't understand why it still won't work now though16:09
LordVanmeh16:09
LordVanAttributeError: Couldn't find tag (xpath: /tree/field[@id='product']) in parent view!16:09
-!- smorillo(250f655f@gateway/web/cgi-irc/kiwiirc.com/ip.37.15.101.95) has joined #tryton16:09
LordVanI shall think about that .. gtg now myself16:09
LordVanthanks again & cya around16:09
mrichezLordVan: you should use name instead of id : xpath: /tree/field[@name='product']16:09
mrichezLordVan: bye!16:09
-!- mlncn19(~mlncn@95.46.237.181) has joined #tryton16:09
-!- colona14(~colona@103.237.158.34) has joined #tryton16:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:09
-!- moufl13(~moufl@ab226160.dynamic.ppp.asahi-net.or.jp) has joined #tryton17:09
-!- CompWizrd20(~CompWizrd@78-22-234-180.access.telenet.be) has joined #tryton18:09
-!- mrichez(~smuxi@222.5-200-80.adsl-dyn.isp.belgacom.be) has joined #tryton18:09
-!- lucascastro(~lucascast@2804:c2c:cb00:0:abea:507:c831:7bef) has joined #tryton20:09
-!- xnbya27(~xnbya@ag-242-88.sta.ji.cz) has joined #tryton21:09
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton21:09
andrespolitigood afternoon21:09
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton21:09
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?21:09
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?21:09
-!- lilmonkey``(~lilmonkey@66.212.52.207) has joined #tryton21:09
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton22:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:09
-!- mariomop(~quassel@host15.190-137-75.telecom.net.ar) has joined #tryton22:09
-!- jmpoure(~jmpoure@63.109.206.77.rev.sfr.net) has joined #tryton22:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:09
-!- ThatDamnRanga4(~ThatDamnR@89-166-124-78.bb.dnainternet.fi) has joined #tryton22:09
-!- thaneor(~lenovo3@r179-25-165-80.dialup.adsl.anteldata.net.uy) has joined #tryton22:09
-!- lucas_(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton23:09

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