IRC logs of #tryton for Tuesday, 2016-12-13

chat.freenode.net #tryton log beginning Tue Dec 13 00:00:01 CET 2016
-!- smarro(~sebastian@181.16.7.104) has joined #tryton00:12
-!- JosDzG(~Thunderbi@187.154.28.241) has joined #tryton00:13
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has left #tryton00:29
-!- JosDzGx(~Thunderbi@187.188.72.36) has joined #tryton00:29
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:19
-!- mathesis(~mathesis@187.148.65.90) has joined #tryton01:38
-!- robink(~quassel@unaffilated/robink) has joined #tryton02:12
-!- robink(~quassel@unaffilated/robink) has joined #tryton03:59
-!- kstenger(~karla@r186-54-21-201.dialup.adsl.anteldata.net.uy) has joined #tryton04:00
-!- thaneor(~ldlc6@179.26.15.23) has joined #tryton05:07
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton08:28
-!- cedk(~ced@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:40
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:40
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:55
notizblockwhat is the preferred way to submit a code review against 4.2?09:26
pokolinotizblock: you have to add the series after the module name09:28
notizblocklike party 4.2: <subject> ?09:28
pokolinotizblock: for example https://tryton-rietveld.appspot.com/32621002/09:28
pokolinotizblock: yes09:29
notizblockpokoli: thx09:32
mrichezhi, i'm adding a domain to a One2Many, but it always displays all data ... http://pastebin.com/J1jGNy6M10:08
mrichezand my model: http://pastebin.com/5sggjdcB10:09
cedkmrichez: domain is a constraint not a filter10:11
pokolimrichez: maybe you are interested on https://bugs.tryton.org/issue608110:16
-!- mamcode(~mamcode@201.209.42.195) has joined #tryton10:17
pokolimrichez: or https://bugs.tryton.org/issue400510:17
pokolibut I'm not sure if the first will be enought to close the second10:17
-!- csotelo(~csotelo@190.42.192.81) has joined #tryton10:18
mrichezpokoli: this is what i'm looking for...10:32
mrichezpokoli: will read the issues10:32
mrichezpokoli: thanks!10:33
pokolimrichez: the first has a review, will be great if you can test and comment about it :)10:40
mrichezpokoli: i could also apply a domain on my view ? (like for tabs with ir.action.act_window.domain)10:47
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:47
pokolimrichez: not on view, but on the action_window10:47
mrichezpokoli: ok; so it's not possible. I'll check your review10:49
pokolimrichez: but you can apply on a field, and use a function field on a specific view10:50
mrichezpokoli: but that's i'm doing in my code, no (domain on field) ? and it doesn't work10:52
pokolimrichez: this was the ONe2Many with widget Many2Many10:54
pokoli???10:54
mrichezpokoli: yes10:54
pokolimrichez: Then you may be interested on using the add_remove attribute: http://doc.tryton.org/4.2/trytond/doc/ref/models/fields.html?highlight=add_remove#trytond.model.fields.One2Many.add_remove10:55
pokolimrichez: and remove the create rights for non aplicable users10:55
mrichezpokoli: i resolve this problem, setting field readonly in xml view  (this "view" should only allow to user to order lines, but i need to filter to display specific states only)10:58
pokolimrichez: so currently the only way is to add a Function field which returns the filtered values11:01
pokolimrichez: like it is done on incoming and outgoing moves of shipments11:01
mrichezpokoli: so it will be a sort of duplicate field ? there will be : quotations (one2many) and filtered_quotations (function field)11:04
pokolimrichez: yes11:04
pokolimrichez: like on shipments: http://hg.tryton.org/modules/stock/file/15f762577cbc/shipment.py#l9111:05
mrichezpokoli: oki. another question is how to specify another field to sequence for sequence_ordered ? (so i would like to order by sequence and then by state)11:07
pokolimrichez: you should override the __setup__ and extend the order_attribute (like other modules)11:09
mrichezpokoli: thanks !11:10
-!- mariomop(~quassel@host166.186-124-244.telecom.net.ar) has joined #tryton11:45
-!- smarro(~sebastian@181.16.7.104) has joined #tryton13:20
-!- pistache(~pistache@lebib.org) has joined #tryton13:30
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton13:34
-!- thaneor(~ldlc6@179.26.15.23) has joined #tryton13:38
-!- JanGB(~jan@x59cc8ba9.dyn.telefonica.de) has joined #tryton14:03
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton14:25
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton15:10
-!- perilla(~perilla@corp-190-57-169-210.cue.puntonet.ec) has joined #tryton15:49
-!- kstenger(~karla@r190-133-246-145.dialup.adsl.anteldata.net.uy) has joined #tryton16:14
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton16:37
notizblockStarting with Tryton 4.2, the party name is part of the full address. Is this intentional?16:48
udononotizblock: yes16:51
notizblockok, we used the party name as in "internal" name without out all legal information as part of the company name.16:54
udononotizblock: IIRC cedk said at the TUB 2016 that the name field in party.address was often misused for an alternative addressee.16:55
pokolinotizblock: you may be interested on https://pypi.python.org/pypi/trytonspain_party_tradename16:56
pokolinotizblock: so you can save the oficial name and the "internal" name16:56
notizblockpokoli: hmm, interesting16:57
Timitosi think it would be better to do it the other way round and to add a field for an internal match code17:01
notizblockTimitos: agree17:01
cedkTimitos: you could use the field "code"17:03
notizblockcedk: which is the ID and is read-only?17:04
silwol_cedk: I can search the code for the internally used name?17:04
cedknotizblock: it is readonly, only if a sequence is defined17:07
cedksilwol_: I do not understand17:07
silwol_cedk: I wanted to know the same information as notizblock, just didn't find the correct wording…17:08
notizblockcedk: the content of the code field is a one-shot as it gets readonly after saving the party for the first time.17:09
Timitosi missed that feature of the code field. nice for some cases17:09
-!- thaneor1(~ldlc6@r179-25-171-10.dialup.adsl.anteldata.net.uy) has joined #tryton17:10
cedknotizblock: yes, but I'm not sure to understand the current requirements17:13
notizblockcedk: OK, we use the party name field is internal name which is most of the time the name of a company without its legal form. In the address field we used to use the full company name (company name + legal form)17:17
notizblockcedk: this worked OKish for pre 4.2 as the party name was not part of the full address17:17
cedknotizblock: so you duplicated the company name on each addresses?17:19
cedknotizblock: also why not using the full name on the party name?17:19
notizblockcedk: afaik we used only one address, but yes17:19
notizblockcedk: I didn't meant we used it the intended and proper way …17:20
cedknotizblock: agree but I try to understand why you stored a "not-full" name?17:22
-!- csotelo_at_work(~csotelo@179.43.97.40) has joined #tryton17:23
notizblockcedk: we have one supplier with a weird full legal name. None of our production refer to this supplier by the full legal name but by using an "alias". This "alias" is not even part of the full legal name.17:24
notizblockeg. legal name: "foo bar corp inc.", party name: "baz company"17:25
cedknotizblock: so maybe you should use a special code for this one17:32
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton18:06
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton18:45
-!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton19:01
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:10
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton19:15
-!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton19:27
-!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton19:39
-!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton20:32
-!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has left #tryton20:37
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton20:38
-!- smarro(~sebastian@181.16.7.104) has joined #tryton20:39
-!- mamcode(~mamcode@201.209.40.179) has joined #tryton20:44
-!- nramirezuy(~nramirezu@r167-62-52-97.dialup.adsl.anteldata.net.uy) has joined #tryton21:13
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton21:41
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton21:52
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton21:54
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton21:58
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton23:28

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