IRC logs of #tryton for Friday, 2015-02-13

chat.freenode.net #tryton log beginning Fri Feb 13 00:00:01 CET 2015
-!- newzen(~newzen@190.36.80.12) has joined #tryton00:42
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton01:04
-!- digitalsatori(~Thunderbi@116.234.194.116) has joined #tryton01:37
-!- digitalsatori(~Thunderbi@116.234.194.236) has joined #tryton01:47
-!- digitalsatori1(~Thunderbi@116.234.194.116) has joined #tryton02:45
-!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton03:38
-!- munron(~AndChat68@197.211.216.214) has joined #tryton03:45
-!- plantian(~ian@206-211-209-202.utilitytelephone.net) has joined #tryton04:10
-!- munron(~AndChat68@197.211.216.214) has joined #tryton05:55
-!- yangoon(~mathiasb@p549F1CDC.dip0.t-ipconnect.de) has joined #tryton06:01
-!- frispete(~frispete@p54A90FB1.dip0.t-ipconnect.de) has joined #tryton06:40
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton07:26
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:14
-!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton08:32
-!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton08:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:58
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton09:15
-!- Rollo(~Thunderbi@ip92340dc6.dynamic.kabel-deutschland.de) has joined #tryton09:17
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:21
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:36
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton10:16
-!- newzen(~newzen@190.36.80.12) has joined #tryton10:26
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton10:33
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton10:40
-!- newzen(~newzen@190.36.80.12) has joined #tryton10:42
-!- udono(~udono@p50938317.dip0.t-ipconnect.de) has joined #tryton11:37
-!- pobsteta(~Thunderbi@37.162.179.45) has joined #tryton12:00
-!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton12:04
-!- kstenger(~karla@200.124.209.158) has joined #tryton12:06
-!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton12:07
VaticanCameosI have a reference field (say, origin). What would the domain clause to check if origin is a SaleLine record look like? ('origin', some_operator, 'sale.line')12:09
pokoliVaticanCameos: why not using directly Many2One in this case?12:11
cedkVaticanCameos: ('origin', 'ilike', 'sale.line,%')12:12
VaticanCameospokoli: Purchase requests have origin field as reference12:14
VaticanCameoscedk: got it, thanks12:15
pokoliVaticanCameos: sorry i understood you where adding a new field, with a domain clause sorry :S12:15
-!- munron(~AndChat68@197.211.216.214) has joined #tryton12:31
-!- mariomop(~quassel@host237.190-138-112.telecom.net.ar) has joined #tryton12:36
-!- munron(~AndChat68@197.211.216.214) has joined #tryton12:41
buxyHello12:42
buxyif I change the id of an object in a XML file describing templates, will the object with the old ID be dropped and a new one created instead?12:43
buxyWhat if that object is a child of another object?12:43
pokolibuxy: tempalte has an ondelete restrict, so it will prevent deleting parents12:44
buxypokoli: ok, I was not worried about this (the parent template is left unchanged), my question is whether it's safe to change the id of an object and expect the former object to be dropped and replaced by the new one (both at the template level and at the real object level)12:46
buxymore concretely I'm speaking here of an account.tax.rule.line.template12:46
pokolibuxy: i'm wondering why you want to do so12:47
pokolibuxy: the former objects will not be replaced12:48
buxypokoli: to match a naming convention12:48
pokolibuxy: so a new one will be created but the old one will not be deleted12:48
buxyok, so I guess I will have to keep the bad id instead12:49
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton12:55
-!- jcros1(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton13:25
-!- nicoe(~nicoe@82-212-130-50.teledisnet.be) has joined #tryton13:39
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton14:13
-!- hiaselhans(~Thunderbi@213162068217.public.t-mobile.at) has joined #tryton14:13
-!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton14:16
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton14:27
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-98.dc.dc.cox.net) has joined #tryton14:41
-!- mariomop(~quassel@host237.190-138-112.telecom.net.ar) has joined #tryton14:42
-!- hiaselhans(~Thunderbi@213162068217.public.t-mobile.at) has joined #tryton15:12
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton15:13
buxypokoli: so assuming now that I obsolete taxes and tax rules that I would like to drop, what's the best way to do it?15:37
buxyShall I keep them and just mark them with active=False ?15:38
buxyCan I just mark the parents as active=False and will this hide all the children too?15:38
pokolibuxy: drop all the templates and that's it15:40
pokolibuxy: if you have an existing database the obsolote taxes will be there15:40
buxypokoli: huh? this morning you told me that a disappearing id will not drop the object?15:41
pokolibuxy: wait a moment, better solution is to enter the end date of the taxes and keep it there15:41
pokolibuxy: and also enter start date for new taxes15:41
buxypokoli: it's not obsolete in that sense, it just means, they were in the chart tax for no good reason, they have no use today and never had one15:42
pokolibuxy: so you can drop from templates, and should be deleted manually (or by script) on the existing databases15:43
buxypokoli: isn't it better to mark them as inactive to hide them but keep them in case they were affected to some products?15:44
buxy(It's not because they should not have been used that they were not used)15:44
pokolibuxy: yes, but if they never had a use, you can delete :)15:44
pokolibuxy: have a look at http://hg.tryton.org/modules/account_fr/file/9304d88cc5fd/account.py15:45
buxypokoli: I know that file (I'm working on account_fr right now), but it actually maps old id to new id, doesn't delete  anything.15:46
buxyactually I could drop them from the XML file and use python to mark them as inactive15:47
pokolibuxy: exactly :)15:47
buxycedk: what's your opinion?15:50
-!- hiaselhans(~Thunderbi@213162068217.public.t-mobile.at) has joined #tryton15:51
cedkbuxy: if you want to delete a tax, just delete it15:55
buxycedk: in the XML you mean?15:56
cedkbuxy: the template is not the real tax so the existing database will keep the tax if there are used15:56
cedkbuxy: yes from the XML15:57
cedkbuxy: which tax do you want to delete?15:57
buxyall the "Ventes intracommunautaires" (there is a variant "exonere" which is useful and one not "exonere" which is not)15:58
buxycedk: BTW, I have lots of changes in ~10 commits, what's the best way to submit? Can I open one bug and associate 10 consecutive reviews?15:59
cedkbuxy: I don't know16:00
buxyMost of them are closely related, I split base taxes in goods/services, then do the same at the EU level, etc.16:00
buxySome of them could be submitted separately in theory (adding missing tax codes)16:01
cedkbuxy: so why not one patch16:06
buxycedk: that would be unreviewable16:06
buxycedk: https://github.com/rhertzog/tryton-account-fr/compare/submit?expand=116:07
cedkbuxy: make unitary patches that can be reviewed and are independant16:12
buxycedk: that's not going to work and will produce a poor history16:13
buxyI have spent almost days on having clean commits that can be understood but they are successive16:14
buxyI won't squash them together just to please a workflow that is not able to review full branches16:15
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton16:17
-!- kstenger(~karla@200.124.209.158) has joined #tryton16:18
-!- grasbauer(~Thunderbi@ip92340dc6.dynamic.kabel-deutschland.de) has joined #tryton16:26
grasbauerhi - i try to upload a patch, but authentication is not working. problems serverside?16:27
grasbauergetting 40316:30
cedkgrasbauer: I can authenticate16:31
cedkgrasbauer: 403 means probably that you are not authenticate16:31
grasbauercedk: mhh - but I send my credentials16:31
cedkgrasbauer: maybe wrong credentials16:32
grasbauercedk: tested via browser ;)16:32
cedkgrasbauer: do you have 2-factor auth for your google account?16:33
grasbauercedk: what?16:34
cedkgrasbauer: 2 auth factor doesn't work with upload.py so you need to define a app password (something like that)16:35
grasbauercedk: ok - will check16:36
grasbauercedk: there is a setting - something like access for unsecure applications16:39
grasbauercedk: the fix is very small - need to create issue for a typo?16:40
grasbauercedk: http://codereview.tryton.org/1093100216:40
cedkgrasbauer: please fill a bug16:59
-!- kstenger(~karla@200.124.209.158) has joined #tryton16:59
-!- newzen(~newzen@190.36.80.12) has joined #tryton17:03
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton17:12
-!- gremly(~gremly@190.85.36.58) has joined #tryton17:28
nicoebuxy: with upload.py you can submit patches between two arbitrary revisions17:31
nicoebuxy: hgreview can maybe also do it17:31
nicoebuxy: But I never tried it17:31
buxynicoe: do you suggest to upload a single biq patch for review but keep multiple commits to push?17:32
nicoebuxy: No I suggest the reverse make x reviews for x commits or 1 review for 1 commit17:33
buxyoh sure, that was my plan, open 1 ticket and associate x reviews for all my commits17:34
nicoebuxy: OK good then17:45
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton17:59
-!- hiaselhans(~Thunderbi@213162068217.public.t-mobile.at) has joined #tryton18:04
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton18:10
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton19:03
-!- newzen(~newzen@190.36.80.12) has left #tryton19:22
notzippyAnyone up ?19:48
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton20:01
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton20:45
-!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton21:00
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton21:39
-!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton22:13

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