IRC logs of #tryton for Friday, 2018-09-14 #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( has joined #tryton01:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:09
-!- lucascastro( has joined #tryton01:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:09
-!- sisalp( has joined #tryton03:09
-!- xcodinas( 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( has joined #tryton04:09
-!- jani-matti( has joined #tryton05:09
-!- zmijunkie( has joined #tryton06:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton06:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- jmpoure( has joined #tryton08:09
-!- tafelgeschirr(~tafelgesc@ has joined #tryton08:09
-!- smorillo(bc558c12@gateway/web/cgi-irc/ has joined #tryton08:09
-!- zmijunkie( has joined #tryton08:09
-!- mrichez( has joined #tryton08:09
-!- zmijunkie( has left #tryton09:09
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton09:09
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton09:09
LordVanif I want to extend a view in the sale module ( ) how do i figure out which expr to use?10:09
-!- vindelschtuffen(~vindelsch@ has joined #tryton10:09
-!- thaneor1( 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:
LordVanthough how can i now re-add it  (the file it got removed from is
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 of course11:09
LordVando i need something else if i just want to extend the view with xml?11:09
-!- wizardedit28(~wizardedi@ has joined #tryton11:09
-!- ndk5( 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( has joined #tryton12:09
-!- phoe61( has joined #tryton12:09
-!- vmora( 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 (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
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
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
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
smorillotryton.cfg points to root xml files13:09
-!- Guest10132(~zizzfizzi@ 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
LordVandoes the xml file name have to match the python one?13:09
-!- vim24x7(~vim24x7@ 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
-!- kudowins_17( has joined #tryton13:09
smorilloLordVan: sorry, if field already exists you don't need python code13:09
smorilloLordVan: (I didn't read the field was description)13:09
LordVani am glad my first guess was correct - it seemed overkill to require python to display an existing field13: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@ has joined #tryton14:09
-!- wastrel29(~wastrel@ 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
LordVansmorillo, ignore the 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
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
LordVananyone else can help me fix my xml?15:09
-!- mrichez( has joined #tryton15:09
-!- tafelgeschirr_(~tafelgesc@ has joined #tryton15:09
-!- mrichez( 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 :
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
LordVanhmm i don't understand why it still won't work now though16:09
LordVanAttributeError: Couldn't find tag (xpath: /tree/field[@id='product']) in parent view!16:09
-!- smorillo(250f655f@gateway/web/cgi-irc/ 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@ has joined #tryton16:09
-!- colona14(~colona@ has joined #tryton16:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:09
-!- moufl13( has joined #tryton17:09
-!- CompWizrd20( has joined #tryton18:09
-!- mrichez( has joined #tryton18:09
-!- lucascastro(~lucascast@2804:c2c:cb00:0:abea:507:c831:7bef) has joined #tryton20:09
-!- xnbya27( has joined #tryton21:09
-!- andrespoliti(~andrespol@ has joined #tryton21:09
andrespolitigood afternoon21:09
-!- andrespoliti(~andrespol@ 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@ has joined #tryton21:09
-!- lucascastro( has joined #tryton22:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:09
-!- mariomop( has joined #tryton22:09
-!- jmpoure( has joined #tryton22:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:09
-!- ThatDamnRanga4( has joined #tryton22:09
-!- thaneor( has joined #tryton22:09
-!- lucas_( has joined #tryton23:09

Generated by 2.16.0 by Marius Gedminas - find it at!