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 #tryton | 22:56 | |
-!- cdchapman(~perturbed@c-73-3-96-68.hsd1.ut.comcast.net) has joined #tryton | 23:12 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:14 | |
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton | 23:24 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:08 | |
-!- sisalp(~sisalpuse@ip224.ip-87-98-144.eu) has joined #tryton | 01:00 | |
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton | 01:00 | |
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton | 01:02 | |
-!- leosemilie(~leosemili@2600:100a:b101:e293:7703:e3f6:981a:ee49) has joined #tryton | 01:09 | |
-!- leosemilie(~leosemili@2600:100a:b101:e293:7703:e3f6:981a:ee49) has left #tryton | 01:10 | |
-!- csotelo(~csotelo@2001:1388:49c7:86f5:9a36:434:8df8:4780) has joined #tryton | 02:33 | |
-!- yangoon(~mathiasb@i59F52FC7.versanet.de) has joined #tryton | 02:39 | |
-!- jani-matti(~quassel@93-90-53-6.welcomnet.fi) has joined #tryton | 03:03 | |
-!- zmijunkie(~Adium@i577ADF26.versanet.de) has joined #tryton | 04:24 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 04:52 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:02 | |
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton | 06:08 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 06:27 | |
-!- smorillo(bc558c12@gateway/web/cgi-irc/kiwiirc.com/ip.188.85.140.18) has joined #tryton | 06:41 | |
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton | 06:42 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 06:57 | |
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has left #tryton | 07:44 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 07:49 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 07:58 | |
LordVan | hi | 07:59 |
---|---|---|
LordVan | if 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 #tryton | 08:28 | |
-!- thaneor1(~lenovo3@r179-25-169-219.dialup.adsl.anteldata.net.uy) has joined #tryton | 08:51 | |
LordVan | someone 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 |
LordVan | semarie, 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/de3e18738124917f10314749d2067e39edb22f28 | 09:05 |
LordVan | though 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 |
LordVan | should 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 course | 09:21 |
LordVan | do i need something else if i just want to extend the view with xml? | 09:21 |
-!- wizardedit28(~wizardedi@5.107.204.153) has joined #tryton | 09:35 | |
-!- ndk5(~ndk@155.12.112.78.rev.sfr.net) has joined #tryton | 09:39 | |
LordVan | guess i have to wait for someone informed to come online since I am kinda stuck | 09:42 |
LordVan | (and the way i see it it is likely somethign really simple i am missing) | 09:43 |
LordVan | afk (lunch) but leaving it online so will read possible answers later ;) | 09:59 |
smorillo | you have to xpatch the sale line tree view | 10:03 |
smorillo | not the sale form view | 10:04 |
smorillo | <xpath expr="/tree/field[@id='product']" position="after"> | 10:05 |
-!- cookiebow13(~cookiebow@89.42.10.93.rev.sfr.net) has joined #tryton | 10:11 | |
-!- phoe61(~phoe6@LFbn-LIL-1-318-203.w81-49.abo.wanadoo.fr) has joined #tryton | 10:35 | |
-!- vmora(~vmora@aracar.oslandia.net) has joined #tryton | 11:00 | |
LordVan | smorillo, i shall try that. thanks | 11:02 |
LordVan | smorillo, doesn't seem to work . hmm | 11:05 |
vmora | hi, 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 |
LordVan | smorillo, 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 items | 11:07 |
LordVan | do i need anything else? | 11:07 |
smorillo | vmora: https://discuss.tryton.org/t/tryton-and-postgis/700 | 11:07 |
vmora | smorillo thanks a lot | 11:08 |
smorillo | LordVan: are you defining xml of inherit view? | 11:08 |
LordVan | er 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 |
smorillo | LordVan: http://hg.tryton.org/modules/sale_price_list/file/tip/sale.xml#l7 | 11:09 |
smorillo | you have to define an ir.ui.view record from xml, that inherit the original id view | 11:10 |
LordVan | hmm does that mean i do not need the xpath at all but just that instead? | 11:10 |
smorillo | you need both | 11:10 |
LordVan | ok can that be in the same file? | 11:10 |
smorillo | doesn't should ... | 11:10 |
smorillo | the xpath sould be in view folder | 11:11 |
LordVan | hm | 11:11 |
smorillo | and the other xml in root module path | 11:11 |
LordVan | ic .. do i need to define the xpath in the cfg fiele as well? | 11:11 |
smorillo | no, you don't | 11:12 |
smorillo | check the module sale_price_list, it adds a file in sale header | 11:12 |
LordVan | i shall look | 11:12 |
LordVan | thanks | 11:12 |
smorillo | tryton.cfg points to root xml files | 11:12 |
-!- Guest10132(~zizzfizzi@197.46.69.30) has joined #tryton | 11:13 | |
LordVan | ok . do i need any python code too for just adding an existing column to the table? | 11:13 |
smorillo | yes, you have to define the field in sale.line model | 11:14 |
LordVan | ah ok - i had thought changes like this can be done with just the xml | 11:14 |
smorillo | check again this module, it adds a field to sale header | 11:15 |
LordVan | yes i am reading it | 11:15 |
smorillo | no, xml is view side | 11:15 |
LordVan | just wanted to make sure i know what i need now | 11:15 |
smorillo | ok | 11:15 |
LordVan | does the xml file name have to match the python one? | 11:16 |
-!- vim24x7(~vim24x7@201.97.136.6) has joined #tryton | 11:17 | |
LordVan | nm i do it anyway | 11:17 |
LordVan | too 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 |
LordVan | I 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 |
LordVan | I assume the __setup__ stuff with on_change_add( .. | 11:22 |
LordVan | does the xml fiel with the xpath have to have a specific name? | 11:28 |
LordVan | I gave it the name of the original xml file | 11:31 |
LordVan | view/sale_line_tree_sequence.xml | 11:32 |
-!- kudowins_17(~kudowins_@169-1-154-215.ip.afrihost.co.za) has joined #tryton | 11:41 | |
smorillo | LordVan: sorry, if field already exists you don't need python code | 11:43 |
LordVan | ah | 11:44 |
smorillo | LordVan: (I didn't read the field was description) | 11:44 |
LordVan | ok | 11:44 |
LordVan | i am glad my first guess was correct - it seemed overkill to require python to display an existing field | 11:44 |
LordVan | still | 11:44 |
LordVan | soemthing is not working yet | 11:45 |
smorillo | LordVan: the file name of xpath must match with the field "name" in inherit view | 11:45 |
smorillo | please paste your code in some place to help you | 11:46 |
LordVan | yeah i was just thiniking i need to do this | 11:46 |
LordVan | since it is several files a pastebin is probably not the right hting though | 11:46 |
smorillo | LordVan: if you have bitbucket or github account you can create a repo with the module | 11:47 |
LordVan | yeah was just checking if i had git on that VM | 11:49 |
LordVan | or still need to set it up | 11:49 |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 12:03 | |
-!- wastrel29(~wastrel@148.255.18.5) has joined #tryton | 12:03 | |
LordVan | smorillo, ok git is a pain to set up from scratch sometimes ^^ | 12:05 |
LordVan | here is a simple pastebin of everything | 12:05 |
LordVan | https://dpaste.de/CCw4 | 12:05 |
LordVan | smorillo, ignore the sale.py file it is not used | 12:06 |
smorillo | LordVan: sale.xml is wrong | 12:08 |
smorillo | you have to point to sale.line | 12:08 |
smorillo | LordVan: check my changes | 12:09 |
LordVan | ? | 12:10 |
LordVan | can you change my paste? | 12:10 |
LordVan | ah damn gotta go afk. i shall chekc the backlog later | 12:13 |
-!- csotelo(~csotelo@2001:1388:49c7:9d8c:c01d:7060:8d3:a47) has joined #tryton | 12:40 | |
LordVan | well that took longer than expected | 13:17 |
LordVan | hmm | 13:19 |
LordVan | anyone else can help me fix my xml? | 13:19 |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 13:38 | |
-!- tafelgeschirr_(~tafelgesc@5.104.149.54) has joined #tryton | 13:52 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 13:55 | |
mrichez | LordVan: Hi, you want to add description field on the lines in the sale form? | 14:00 |
mrichez | LordVan: in this case you should extend sale_line_view_tree_sequence | 14:00 |
mrichez | LordVan: so your file sale.xml should be : https://dpaste.de/UBf6 | 14:01 |
mrichez | LordVan: and you have to rename /view/sale_form.xml to /view/sale_line_tree_sequence.xml | 14:01 |
LordVan | trying that now | 14:01 |
LordVan | i was experiemtning with different id/ref but couldn't figure out what i needced | 14:01 |
mrichez | LordVan: i'll have to go. Hope this will help you | 14:01 |
LordVan | well the error is gone | 14:02 |
LordVan | but it still doesn't show the description .. hmm | 14:02 |
mrichez | LordVan: hmm... strange... | 14:10 |
LordVan | would the <field name="model"> not hae to be sale.line? | 14:11 |
mrichez | LordVan: indeed :-) | 14:12 |
LordVan | do i have to hcange the inherit too though? hmm | 14:12 |
mrichez | LordVan: no | 14:13 |
mrichez | LordVan: inherit is referencing the id in the sale.xml form module sale | 14:14 |
mrichez | from | 14:14 |
LordVan | hmm i don't understand why it still won't work now though | 14:15 |
LordVan | meh | 14:16 |
LordVan | AttributeError: 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 #tryton | 14:16 | |
LordVan | I shall think about that .. gtg now myself | 14:16 |
LordVan | thanks again & cya around | 14:17 |
mrichez | LordVan: you should use name instead of id : xpath: /tree/field[@name='product'] | 14:18 |
mrichez | LordVan: bye! | 14:18 |
-!- mlncn19(~mlncn@95.46.237.181) has joined #tryton | 14:19 | |
-!- colona14(~colona@103.237.158.34) has joined #tryton | 14:20 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 14:31 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 14:51 | |
-!- moufl13(~moufl@ab226160.dynamic.ppp.asahi-net.or.jp) has joined #tryton | 15:55 | |
-!- CompWizrd20(~CompWizrd@78-22-234-180.access.telenet.be) has joined #tryton | 16:08 | |
-!- mrichez(~smuxi@222.5-200-80.adsl-dyn.isp.belgacom.be) has joined #tryton | 16:13 | |
-!- lucascastro(~lucascast@2804:c2c:cb00:0:abea:507:c831:7bef) has joined #tryton | 18:28 | |
-!- xnbya27(~xnbya@ag-242-88.sta.ji.cz) has joined #tryton | 19:23 | |
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton | 19:25 | |
andrespoliti | good afternoon | 19:25 |
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton | 19:27 | |
andrespoliti | i 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 |
andrespoliti | i 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 #tryton | 19:59 | |
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton | 20:00 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 20:01 | |
-!- mariomop(~quassel@host15.190-137-75.telecom.net.ar) has joined #tryton | 20:14 | |
-!- jmpoure(~jmpoure@63.109.206.77.rev.sfr.net) has joined #tryton | 20:21 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 20:27 | |
-!- ThatDamnRanga4(~ThatDamnR@89-166-124-78.bb.dnainternet.fi) has joined #tryton | 20:46 | |
-!- thaneor(~lenovo3@r179-25-165-80.dialup.adsl.anteldata.net.uy) has joined #tryton | 20:54 | |
-!- lucas_(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton | 21:05 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!