IRC logs of #tryton for Friday, 2015-10-23

chat.freenode.net #tryton log beginning Fri Oct 23 00:00:02 CEST 2015
-!- albert_(~albert@142.Red-88-21-136.staticIP.rima-tde.net) has joined #tryton00:10
-!- albert_(~albert@142.Red-88-21-136.staticIP.rima-tde.net) has joined #tryton00:45
-!- albert_(~albert@142.Red-88-21-136.staticIP.rima-tde.net) has joined #tryton01:24
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton01:48
-!- kstenger1(~karla@r167-59-156-101.dialup.adsl.anteldata.net.uy) has joined #tryton01:49
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:36
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton03:08
-!- lukio(~lukio@181.47.148.245) has joined #tryton05:20
-!- yangoon(~mathiasb@p549F0B11.dip0.t-ipconnect.de) has joined #tryton07:01
-!- sunny_dealmeida(~quassel@203.115.71.174) has joined #tryton07:07
-!- frispete_(~frispete@p54A9086D.dip0.t-ipconnect.de) has joined #tryton07:40
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:02
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:53
-!- albert_(~albert@142.Red-2-139-177.staticIP.rima-tde.net) has joined #tryton09:07
-!- aroncero(~aroncero@86.63.19.153) has joined #tryton09:26
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:46
-!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton09:50
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton10:55
-!- nicoe(~nicoe@2a02:a03f:30ad:7d00:ee55:f9ff:fe7b:f7ac) has joined #tryton11:45
pokoliin doc.tryton.org/3.4/trytond/doc/topics/views/index.html?highlight=button#button when it says remove if it has a parent, parent means that it the record is in a xxx2many field? or what does parent mean?11:54
cedkpokoli: having a parent means: inside a one2many or a tree12:02
pokolicedk: thanks. I was thinking that maybe we need the reload_parent action, when a record has a parent to reload it's parent12:03
cedkpokoli: I think reload should almost never be used12:07
cedkpokoli: the issue that adds reload action state that it is available only when the user could do it manually12:08
pokolicedk: but when calling a button from a record with parent, the parent record is reloaded?12:08
cedkpokoli: so never in a one2many12:08
cedkpokoli: that's not the same thing12:08
cedkpokoli: it is because the record is saved before calling any button12:09
pokolicedk: so if it's saved then it's reloaded when the button returns.12:11
pokolicedk: I'm trying the stock_split button from inside a one2many and parent record it's reloaded so the new record appear, so everything is ok without the reload action12:12
cedkpokoli: yes when clicking on a button:12:12
cedkrecord is saved (via the parent if exists)12:13
cedkthe button method is called12:13
cedkthe record (or parent) is reloaded12:14
cedkfinaly the returned action from the button is process12:14
pokolicedk: perfect!! thanks for your explanations12:15
cedkpokoli: if you feel the doc is missing some, feel free to update it12:18
-!- rpit(~rpit@2a02:908:e670:3a80:b100:be5c:e500:4738) has joined #tryton12:32
-!- mariomop(~quassel@host18.186-108-232.telecom.net.ar) has joined #tryton12:36
-!- kstenger(~karla@r167-59-139-166.dialup.adsl.anteldata.net.uy) has joined #tryton13:52
-!- vbastos(~textual@san1823193.lnk.telstra.net) has joined #tryton13:59
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton14:08
-!- vbastos_(~vbastos@san1823193.lnk.telstra.net) has joined #tryton14:24
-!- smarro(~sebastian@190.108.228.120) has joined #tryton15:12
-!- albert_(~albert@142.Red-2-139-177.staticIP.rima-tde.net) has joined #tryton16:34
-!- albert_(~albert@142.Red-2-139-177.staticIP.rima-tde.net) has joined #tryton18:25
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton18:46
-!- peter__(~chatzilla@108.Red-88-3-43.dynamicIP.rima-tde.net) has joined #tryton19:23
-!- smarro(~sebastian@190.108.228.120) has joined #tryton19:24
petermmmhi, i'm trying to add a view to extend the party.party form but complains about the label:19:25
petermmm<string>:4:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMWRONG: Did not expect element label there19:25
petermmm<?xml version="1.0"?>19:25
petermmm<data>19:25
petermmm   <xpath expr="/form/label[first()]" position="before">19:25
petermmm        <label name="Hello"/>19:25
petermmm   </xpath>19:25
petermmm</data>19:25
cedkpokoli: label must have a name with field or an id19:31
cedkpetermmm:19:31
petermmmcedk: so example at http://doc.tryton.org/2.6/trytond/doc/topics/views/extension.html won't work ?19:36
petermmmi want only add the text "Hello"19:36
petermmmisn't that a label ?19:37
cedkpetermmm: in the doc, all label name are field names19:39
cedkpetermmm: if you don't want to use a field, you can do: <label string="Hello" id="hello"/>19:39
petermmmStill <string>:6:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMWRONG: Did not expect element label there19:43
petermmm<?xml version="1.0"?>19:43
petermmm<data>19:43
petermmm   <xpath expr="/form/label[first()]" position="before">19:43
petermmm      <label string="Hello" id="hello"/>19:43
petermmm   </xpath>19:43
petermmm</data>19:43
cedkpetermmm: you should take a look at the generated XML19:46
petermmmok, I will work on this, thank you so far19:47
cedkpetermmm: indeed, I'm not sure what does "first()"19:47
-!- Greg__(~greg@h209.53.90.75.dynamic.ip.windstream.net) has joined #tryton19:51
-!- Greg__(~greg@h209.53.90.75.dynamic.ip.windstream.net) has left #tryton19:52
-!- sunny_dealmeida(~quassel@203.115.71.174) has joined #tryton19:52
-!- rpit(~rpit@2a02:908:e670:3a80:8058:60e7:755a:7c02) has joined #tryton21:07
-!- mariomop(~quassel@host18.186-108-232.telecom.net.ar) has joined #tryton21:44
-!- gremly(~gremly@190.85.36.58) has joined #tryton22:34
-!- lukio(~lukio@181.47.148.245) has left #tryton23:09

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