chat.freenode.net #tryton log beginning Wed Jun 15 00:00:01 CEST 2016 | ||
2016-06-15 00:07 -!- aroncero(~aroncero@cpc91052-lock3-2-0-cust42.6-1.cable.virginm.net) has joined #tryton | ||
2016-06-15 05:40 -!- frispete(~frispete@p54A902CD.dip0.t-ipconnect.de) has joined #tryton | ||
2016-06-15 06:53 -!- shrox(shrox@nat/iiit/x-wvjghqivnilwdzco) has left #tryton | ||
2016-06-15 07:04 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | ||
2016-06-15 07:41 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton | ||
2016-06-15 07:45 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-06-15 08:22 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton | ||
2016-06-15 08:47 -!- udono(~udono@ip-178-202-239-138.hsi09.unitymediagroup.de) has joined #tryton | ||
2016-06-15 08:59 -!- aroncero(~aroncero@cpc91052-lock3-2-0-cust42.6-1.cable.virginm.net) has joined #tryton | ||
2016-06-15 09:03 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-06-15 09:10 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton | ||
2016-06-15 09:12 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2016-06-15 09:22 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | ||
2016-06-15 09:42 <prayashm> Why are some fields from the fields_get rpc call not shown in CSV Import dialog of GTK Client? I have selected those in Sao here http://imgur.com/SgnrOYk | ||
2016-06-15 09:51 <pokoli> prayashm: the readonly fields are not shown. See: http://hg.tryton.org/tryton/file/tip/tryton/gui/window/win_import.py#l65 | ||
2016-06-15 10:04 <prayashm> pokoli: oops. Thank you | ||
2016-06-15 10:04 <pokoli> prayashm: you're welcome | ||
2016-06-15 10:16 -!- gr8dude(~alex@host-static-188-214-203-7.moldtelecom.md) has joined #tryton | ||
2016-06-15 10:57 <pokoli> cedk: I have another side effect of changeset 3a17f8e704a7 https://tryton-rietveld.appspot.com/25231002 | ||
2016-06-15 11:03 -!- sisalp(~sisalpuse@boxoo.sisalp.net) has left #tryton | ||
2016-06-15 11:06 <cedk> pokoli: what is log quantity? | ||
2016-06-15 11:07 <pokoli> cedk: lot quantity, fixed :) | ||
2016-06-15 11:58 <silwol> We have suppliers who deliver items (e.g. screws) in different packing sizes (e.g. supplier1 has 200 per pack, supplier2 500 per pack). The Purchase UOM however is defined on the product. Any chance to get that handled with the current 3.8 data model? | ||
2016-06-15 11:59 <silwol> background information: we have UOMs defined for the pack sizes | ||
2016-06-15 12:01 -!- gr8dude(~alex@host-static-188-214-203-7.moldtelecom.md) has joined #tryton | ||
2016-06-15 12:03 <pokoli> silwol: you should customize the model to add the uom, and then take in account when computing requests | ||
2016-06-15 12:04 <cedk> it is not so easy because often we don't know in advance which supplier to use | ||
2016-06-15 12:04 <pokoli> silwol: but if you want to use only the purchase uom, there is the https://bitbucket.org/nantic/trytond-stock_supply_multiple from nantic that maybe will help you | ||
2016-06-15 12:08 <cedk> but perhaps PurchaseRequest.compute_purchase_line could be improved to choose a unit | ||
2016-06-15 12:09 <cedk> issue5578 should ease this customization | ||
2016-06-15 12:10 <silwol> Is there any severe reason to keep the UOM associated with the product and not the supplier? | ||
2016-06-15 12:11 <cedk> silwol: see my previous messages | ||
2016-06-15 12:16 <silwol> cedk: on what kind of information would you rely for choosing the unit? | ||
2016-06-15 12:23 <prayashm> For CSV Import file parsing, can I use http://papaparse.com/ ? It's MIT Licensed | ||
2016-06-15 12:31 -!- mariomop(~quassel@181.91.133.50) has joined #tryton | ||
2016-06-15 12:32 <pokoli> prayashm: which are the alternatives? | ||
2016-06-15 12:33 <cedk> silwol: when a request is converted in purchase, we know the supplier | ||
2016-06-15 12:34 <cedk> silwol: so I think a module which adds allowed uom for a supplier could be a good solution | ||
2016-06-15 12:43 <Timitos> silwol: we did it like pokoli recommended and put an UOM on the supplier record. but it would be great to have a solution for this problem in core | ||
2016-06-15 12:44 <Timitos> cedk: how should the allowed uom for a supplier work. i do not understand your proposal | ||
2016-06-15 12:45 <prayashm> pokoli: PapaParse (http://papaparse.com/) it supports options to specify encoding as well | ||
2016-06-15 12:45 <prayashm> pokoli: I am trying to find alternatives | ||
2016-06-15 12:49 <cedk> prayashm: it must be available on bower | ||
2016-06-15 12:51 <cedk> or maybe we could add a wrapper on server side to perform the parsing in Python | ||
2016-06-15 12:51 <cedk> Timitos: indeed I don't know | ||
2016-06-15 12:52 <cedk> Timitos: The main issue is that UoM and Packaging are different things | ||
2016-06-15 12:52 <cedk> for me supplier has constraint on how they sale | ||
2016-06-15 12:54 <pokoli> prayashm: it will be great if you can prepare some text with two alternatives so we can disscuss about the pros and the cons of each option. You can add the parsing in Python as an option too | ||
2016-06-15 12:54 <pokoli> prayashm: and please include your opinion about the pros and the cons of each option :P | ||
2016-06-15 12:55 <prayashm> pokoli: Alright, where should I post that? by email? | ||
2016-06-15 12:55 <cedk> I'm always afraid to add a JS dependency because this ecosystem is so volatile and imature | ||
2016-06-15 12:55 <Timitos> cedk: we have cases where supplier A is selling with uom "pack of 50" and supplier B is selling with uom "pack of 100". for the moment we are not able to handle this with the core modules like silwol already said. | ||
2016-06-15 12:55 <cedk> prayashm: you can start a related discussion from the Discuss topic | ||
2016-06-15 12:56 <Timitos> for the moment i see some problems coming up with the purchase uom on the product when handling such cases | ||
2016-06-15 12:56 <cedk> Timitos: uom != packaging | ||
2016-06-15 12:59 <Timitos> cedk: so you say that for such a case we need a way to define in what type of packaging the supplier sells his goods? | ||
2016-06-15 12:59 <prayashm> cedk: should I talk here: https://discuss.tryton.org/t/add-csv-import-export-to-sao/74 or start a new topic? | ||
2016-06-15 12:59 <cedk> Timitos: I don't know | ||
2016-06-15 13:01 -!- akshay_(67fecb7c@gateway/web/freenode/ip.103.254.203.124) has joined #tryton | ||
2016-06-15 13:01 <cedk> prayashm: you can start a related topic | ||
2016-06-15 13:04 -!- jj(67fecb7c@gateway/web/freenode/ip.103.254.203.124) has joined #tryton | ||
2016-06-15 13:11 <akshay_> I need a help for JSON RPC call | ||
2016-06-15 13:12 <pokoli> hi akshay_, please ask what help do you need and use some pastebin service to post the requests/responses you are using | ||
2016-06-15 13:12 <akshay_> How can I made request for Write with multiple IDs with different values in a single request? | ||
2016-06-15 13:13 <cedk> akshay_: see http://doc.tryton.org/4.0/trytond/doc/ref/models/models.html?#trytond.model.ModelStorage.write | ||
2016-06-15 13:16 <Guest74719> check this: https://groups.google.com/forum/#!topic/tryton/bl-28DrtKVg | ||
2016-06-15 13:16 <akshay_> I am getting same issue | ||
2016-06-15 13:26 <cedk> akshay_: there is no description of the issue, please give information if you want help | ||
2016-06-15 13:27 <pokoli> akshay_: have you managed to make a request for wirte with on values? | ||
2016-06-15 13:27 <prayashm> Updated at https://discuss.tryton.org/t/choosing-a-way-of-csv-parsing-for-csv-import-feature-in-sao/144 | ||
2016-06-15 13:46 <akshay_> cedk: information is given with example | ||
2016-06-15 13:47 <cedk> akshay_: I don't understand | ||
2016-06-15 13:49 <Guest74719> write takes ids and values to edit | ||
2016-06-15 13:50 <Guest74719> values are written to all ids | ||
2016-06-15 13:50 <Guest74719> he needed ids should take different values for different id | ||
2016-06-15 13:50 <cedk> it is documented in the link I give | ||
2016-06-15 13:51 -!- akshay_(caa0a538@gateway/web/freenode/ip.202.160.165.56) has joined #tryton | ||
2016-06-15 13:52 <akshay_> which one | ||
2016-06-15 13:53 <cedk> akshay_: http://doc.tryton.org/4.0/trytond/doc/ref/models/models.html?#trytond.model.ModelStorage.write | ||
2016-06-15 13:53 -!- Guest___(caa0a538@gateway/web/freenode/ip.202.160.165.56) has joined #tryton | ||
2016-06-15 13:54 <akshay_> ok,let me try | ||
2016-06-15 14:06 <akshay_> http://pastebin.com/qWc3dbsP | ||
2016-06-15 14:07 <akshay_> it gives me error: "'list' object has no attribute 'get'" | ||
2016-06-15 14:07 -!- shrox(shrox@nat/iiit/x-wvjghqivnilwdzco) has joined #tryton | ||
2016-06-15 14:13 -!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton | ||
2016-06-15 14:14 <cedk> akshay_: did you read the doc? | ||
2016-06-15 14:15 <akshay_> yes | ||
2016-06-15 14:15 <cedk> akshay_: where did you see that after the list of ids, you must put an other list? | ||
2016-06-15 14:15 <cedk> akshay_: it is: list, dict, list, dict, list, dict etc. | ||
2016-06-15 14:15 <cedk> akshay_: and why are you duplicate the list of ids? | ||
2016-06-15 14:16 <akshay_> if it is dict then how can I pass multiple values for multiple ids? | ||
2016-06-15 14:17 <akshay_> list of ids are duplicate because as per doc, it is [recores,values,[records,values]] as records are duplicate here | ||
2016-06-15 14:17 <cedk> akshay_: you can not | ||
2016-06-15 14:17 <cedk> akshay_: just follow the API | ||
2016-06-15 14:18 <cedk> akshay_: I can not imaging, records is a key word | ||
2016-06-15 14:18 <akshay_> so i have to make multiple request to edit multiple contact_mechanism? | ||
2016-06-15 14:18 <cedk> akshay_: it is not a duplication, how can you think API requires to duplicate data | ||
2016-06-15 14:19 <cedk> akshay_: no you can in a single request but for that you need to read the doc | ||
2016-06-15 14:19 <akshay_> can you give me example for that? | ||
2016-06-15 14:24 <cedk> akshay_: http://pastebin.com/N6Nphs5A | ||
2016-06-15 14:24 <pokoli> akshay_: the first records may have a diferent value from second records (and same for values) | ||
2016-06-15 14:26 <akshay_> gives me error http://pastebin.com/jdsP3ybr | ||
2016-06-15 14:38 <Guest___> pokoli: yes,exactly | ||
2016-06-15 14:54 <akshay_> any feedback? | ||
2016-06-15 15:01 <pokoli> akshay_: the number of parameters passed is not pair | ||
2016-06-15 15:01 <pokoli> akshay_: it must be a pair of records, values | ||
2016-06-15 15:06 <akshay_> http://pastebin.com/L9P8NhKN | ||
2016-06-15 15:07 <akshay_> is this right? | ||
2016-06-15 15:08 <pokoli> akshay_: you have an extra list surrounding records-values which is not required | ||
2016-06-15 15:08 <pokoli> akshay_: so no, this is not right | ||
2016-06-15 15:08 <akshay_> can you provide right way? | ||
2016-06-15 15:13 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-06-15 15:18 <pokoli> akshay_: see cedk previous solution http://pastebin.com/N6Nphs5A | ||
2016-06-15 15:24 -!- kstenger(~karla@r186-48-32-52.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-06-15 15:25 <akshay_> gives me error http://pastebin.com/jdsP3ybr | ||
2016-06-15 15:25 <akshay_> okoli: gives me error http://pastebin.com/jdsP3ybr | ||
2016-06-15 15:26 <akshay_> pokoli: gives me error http://pastebin.com/jdsP3ybr | ||
2016-06-15 15:26 <cedk> akshay_: you miss the context as last params | ||
2016-06-15 15:26 <akshay_> sorry for missing character in name | ||
2016-06-15 15:26 <akshay_> context? | ||
2016-06-15 15:28 <akshay_> context means? | ||
2016-06-15 15:29 <cedk> akshay_: http://doc.tryton.org/4.0/trytond/doc/ref/transaction.html?#trytond.transaction.Transaction.context | ||
2016-06-15 15:29 <cedk> akshay_: every call must set the context of the Transaction, it is a dictionary | ||
2016-06-15 15:31 -!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton | ||
2016-06-15 15:31 <akshay_> cedk: tried with context also http://pastebin.com/r2RnpqxX but still give me error "int() argument must be a string or a number, not 'list'" | ||
2016-06-15 15:33 <cedk> akshay_: it seems you are unable to reuse correctly example given | ||
2016-06-15 15:34 <cedk> http://pastebin.com/v9tygRdL | ||
2016-06-15 15:38 <akshay_> great Helppppp!!! | ||
2016-06-15 15:38 <akshay_> Works! | ||
2016-06-15 15:38 <akshay_> Thanks a lot for your help!!!! | ||
2016-06-15 15:39 <akshay_> thanks a lot for your support | ||
2016-06-15 16:26 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-06-15 16:43 -!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton | ||
2016-06-15 16:43 -!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton | ||
2016-06-15 16:47 -!- prayashm(~prayashm@103.194.233.147) has joined #tryton | ||
2016-06-15 16:47 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-06-15 16:51 -!- gr8dude(~alex@host-static-188-214-203-7.moldtelecom.md) has joined #tryton | ||
2016-06-15 17:10 <pokoli> cedk: based on your statement of this morning "Note does not require write access" I understand this line http://hg.tryton.org/trytond/file/tip/trytond/ir/resource.py#l92 is wrong | ||
2016-06-15 17:11 <pokoli> cedk: and it should only require read access for all operations (create/write/delete) isn't it? | ||
2016-06-15 17:13 <cedk> pokoli: indeed, I was wrong | ||
2016-06-15 17:15 <pokoli> cedk: ok, don't worry. But I understand that I'm able to write a note to a record If I'm able to write on it, is it better? | ||
2016-06-15 17:15 <pokoli> cedk: so the create should check for write permisions | ||
2016-06-15 17:16 <cedk> pokoli: the create check the create | ||
2016-06-15 17:17 <pokoli> cedk: yes, I have seen. But for me it makes more sense to check write instead of create | ||
2016-06-15 17:24 <pokoli> cedk: I will open an issue and lets discus there, don't worry :) | ||
2016-06-15 17:30 <cedk> pokoli: I find it gives finer grain control like it is now | ||
2016-06-15 17:35 <pokoli> cedk: we agree to disagree. But don't worry, I think that I can easly customize it and if not I will open an issue to improve customization | ||
2016-06-15 17:36 -!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton | ||
2016-06-15 17:52 <cedk> prayashm: be careful that discuss is not a chat | ||
2016-06-15 17:53 <cedk> prayashm: you should ask questions here | ||
2016-06-15 17:54 <prayashm> cedk: oops, I will keep that in mind. | ||
2016-06-15 18:03 <pokoli> prayashm: the delimiter caracter is used to encapsulate the values of the same field | ||
2016-06-15 18:03 <pokoli> prayashm: for example if you want to import something that have a coma inside and you want to use the coma as separator, you should use a quote caracter to determine when the value starts and when ends | ||
2016-06-15 18:04 <prayashm> pokoli: Thanks, I understood that part | ||
2016-06-15 18:04 <pokoli> prayashm: so "I import, something, with comas" will be one example using " as quote character and , as separator | ||
2016-06-15 19:03 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-06-15 19:24 -!- prayashm(~prayashm@103.194.233.147) has joined #tryton | ||
2016-06-15 19:24 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-06-15 19:31 -!- kstenger(~karla@r186-55-65-49.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-06-15 20:43 -!- nicoe(~nicoe@2a02:a03f:302d:1400:ee55:f9ff:fe7b:f7ac) has joined #tryton | ||
2016-06-15 21:14 <prayashm> cedk: What characters are generally used as custom quote characters? | ||
2016-06-15 21:30 -!- frispete(~frispete@p54A902CD.dip0.t-ipconnect.de) has joined #tryton | ||
2016-06-15 21:53 -!- aroncero(~aroncero@cpc91052-lock3-2-0-cust42.6-1.cable.virginm.net) has joined #tryton | ||
2016-06-15 22:11 -!- frispete(~frispete@p54A902CD.dip0.t-ipconnect.de) has joined #tryton | ||
2016-06-15 22:30 -!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton | ||
2016-06-15 23:31 -!- shrox(shrox@nat/iiit/x-wvjghqivnilwdzco) has left #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!