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

chat.freenode.net #tryton log beginning Tue Dec 13 00:00:01 CET 2016
2016-12-13 00:12 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-13 00:13 -!- JosDzG(~Thunderbi@187.154.28.241) has joined #tryton
2016-12-13 00:29 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has left #tryton
2016-12-13 00:29 -!- JosDzGx(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-13 01:19 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-13 01:38 -!- mathesis(~mathesis@187.148.65.90) has joined #tryton
2016-12-13 02:12 -!- robink(~quassel@unaffilated/robink) has joined #tryton
2016-12-13 03:59 -!- robink(~quassel@unaffilated/robink) has joined #tryton
2016-12-13 04:00 -!- kstenger(~karla@r186-54-21-201.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-13 05:07 -!- thaneor(~ldlc6@179.26.15.23) has joined #tryton
2016-12-13 08:28 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-13 08:40 -!- cedk(~ced@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-12-13 08:40 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-13 08:55 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-13 09:26 <notizblock> what is the preferred way to submit a code review against 4.2?
2016-12-13 09:28 <pokoli> notizblock: you have to add the series after the module name
2016-12-13 09:28 <notizblock> like party 4.2: <subject> ?
2016-12-13 09:28 <pokoli> notizblock: for example https://tryton-rietveld.appspot.com/32621002/
2016-12-13 09:29 <pokoli> notizblock: yes
2016-12-13 09:32 <notizblock> pokoli: thx
2016-12-13 10:08 <mrichez> hi, i'm adding a domain to a One2Many, but it always displays all data ... http://pastebin.com/J1jGNy6M
2016-12-13 10:09 <mrichez> and my model: http://pastebin.com/5sggjdcB
2016-12-13 10:11 <cedk> mrichez: domain is a constraint not a filter
2016-12-13 10:16 <pokoli> mrichez: maybe you are interested on https://bugs.tryton.org/issue6081
2016-12-13 10:17 -!- mamcode(~mamcode@201.209.42.195) has joined #tryton
2016-12-13 10:17 <pokoli> mrichez: or https://bugs.tryton.org/issue4005
2016-12-13 10:17 <pokoli> but I'm not sure if the first will be enought to close the second
2016-12-13 10:18 -!- csotelo(~csotelo@190.42.192.81) has joined #tryton
2016-12-13 10:32 <mrichez> pokoli: this is what i'm looking for...
2016-12-13 10:32 <mrichez> pokoli: will read the issues
2016-12-13 10:33 <mrichez> pokoli: thanks!
2016-12-13 10:40 <pokoli> mrichez: the first has a review, will be great if you can test and comment about it :)
2016-12-13 10:47 <mrichez> pokoli: i could also apply a domain on my view ? (like for tabs with ir.action.act_window.domain)
2016-12-13 10:47 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-12-13 10:47 <pokoli> mrichez: not on view, but on the action_window
2016-12-13 10:49 <mrichez> pokoli: ok; so it's not possible. I'll check your review
2016-12-13 10:50 <pokoli> mrichez: but you can apply on a field, and use a function field on a specific view
2016-12-13 10:52 <mrichez> pokoli: but that's i'm doing in my code, no (domain on field) ? and it doesn't work
2016-12-13 10:54 <pokoli> mrichez: this was the ONe2Many with widget Many2Many
2016-12-13 10:54 <pokoli> ???
2016-12-13 10:54 <mrichez> pokoli: yes
2016-12-13 10:55 <pokoli> mrichez: 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_remove
2016-12-13 10:55 <pokoli> mrichez: and remove the create rights for non aplicable users
2016-12-13 10:58 <mrichez> pokoli: 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)
2016-12-13 11:01 <pokoli> mrichez: so currently the only way is to add a Function field which returns the filtered values
2016-12-13 11:01 <pokoli> mrichez: like it is done on incoming and outgoing moves of shipments
2016-12-13 11:04 <mrichez> pokoli: so it will be a sort of duplicate field ? there will be : quotations (one2many) and filtered_quotations (function field)
2016-12-13 11:04 <pokoli> mrichez: yes
2016-12-13 11:05 <pokoli> mrichez: like on shipments: http://hg.tryton.org/modules/stock/file/15f762577cbc/shipment.py#l91
2016-12-13 11:07 <mrichez> pokoli: 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)
2016-12-13 11:09 <pokoli> mrichez: you should override the __setup__ and extend the order_attribute (like other modules)
2016-12-13 11:10 <mrichez> pokoli: thanks !
2016-12-13 11:45 -!- mariomop(~quassel@host166.186-124-244.telecom.net.ar) has joined #tryton
2016-12-13 13:20 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-13 13:30 -!- pistache(~pistache@lebib.org) has joined #tryton
2016-12-13 13:34 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-13 13:38 -!- thaneor(~ldlc6@179.26.15.23) has joined #tryton
2016-12-13 14:03 -!- JanGB(~jan@x59cc8ba9.dyn.telefonica.de) has joined #tryton
2016-12-13 14:25 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2016-12-13 15:10 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-13 15:49 -!- perilla(~perilla@corp-190-57-169-210.cue.puntonet.ec) has joined #tryton
2016-12-13 16:14 -!- kstenger(~karla@r190-133-246-145.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-13 16:37 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-13 16:48 <notizblock> Starting with Tryton 4.2, the party name is part of the full address. Is this intentional?
2016-12-13 16:51 <udono> notizblock: yes
2016-12-13 16:54 <notizblock> ok, we used the party name as in "internal" name without out all legal information as part of the company name.
2016-12-13 16:55 <udono> notizblock: IIRC cedk said at the TUB 2016 that the name field in party.address was often misused for an alternative addressee.
2016-12-13 16:56 <pokoli> notizblock: you may be interested on https://pypi.python.org/pypi/trytonspain_party_tradename
2016-12-13 16:56 <pokoli> notizblock: so you can save the oficial name and the "internal" name
2016-12-13 16:57 <notizblock> pokoli: hmm, interesting
2016-12-13 17:01 <Timitos> i think it would be better to do it the other way round and to add a field for an internal match code
2016-12-13 17:01 <notizblock> Timitos: agree
2016-12-13 17:03 <cedk> Timitos: you could use the field "code"
2016-12-13 17:04 <notizblock> cedk: which is the ID and is read-only?
2016-12-13 17:04 <silwol_> cedk: I can search the code for the internally used name?
2016-12-13 17:07 <cedk> notizblock: it is readonly, only if a sequence is defined
2016-12-13 17:07 <cedk> silwol_: I do not understand
2016-12-13 17:08 <silwol_> cedk: I wanted to know the same information as notizblock, just didn't find the correct wording…
2016-12-13 17:09 <notizblock> cedk: the content of the code field is a one-shot as it gets readonly after saving the party for the first time.
2016-12-13 17:09 <Timitos> i missed that feature of the code field. nice for some cases
2016-12-13 17:10 -!- thaneor1(~ldlc6@r179-25-171-10.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-13 17:13 <cedk> notizblock: yes, but I'm not sure to understand the current requirements
2016-12-13 17:17 <notizblock> cedk: 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)
2016-12-13 17:17 <notizblock> cedk: this worked OKish for pre 4.2 as the party name was not part of the full address
2016-12-13 17:19 <cedk> notizblock: so you duplicated the company name on each addresses?
2016-12-13 17:19 <cedk> notizblock: also why not using the full name on the party name?
2016-12-13 17:19 <notizblock> cedk: afaik we used only one address, but yes
2016-12-13 17:20 <notizblock> cedk: I didn't meant we used it the intended and proper way …
2016-12-13 17:22 <cedk> notizblock: agree but I try to understand why you stored a "not-full" name?
2016-12-13 17:23 -!- csotelo_at_work(~csotelo@179.43.97.40) has joined #tryton
2016-12-13 17:24 <notizblock> cedk: 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.
2016-12-13 17:25 <notizblock> eg. legal name: "foo bar corp inc.", party name: "baz company"
2016-12-13 17:32 <cedk> notizblock: so maybe you should use a special code for this one
2016-12-13 18:06 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-13 18:45 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-13 19:01 -!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton
2016-12-13 19:10 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-12-13 19:15 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-13 19:27 -!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton
2016-12-13 19:39 -!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton
2016-12-13 20:32 -!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has joined #tryton
2016-12-13 20:37 -!- JanGB(~jan@p54B98ABE.dip0.t-ipconnect.de) has left #tryton
2016-12-13 20:38 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-12-13 20:39 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-13 20:44 -!- mamcode(~mamcode@201.209.40.179) has joined #tryton
2016-12-13 21:13 -!- nramirezuy(~nramirezu@r167-62-52-97.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-13 21:41 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-12-13 21:52 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-13 21:54 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-13 21:58 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-13 23:28 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!