IRC logs of #tryton for Monday, 2016-12-19

chat.freenode.net #tryton log beginning Mon Dec 19 00:00:01 CET 2016
2016-12-19 00:21 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-19 01:05 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2016-12-19 01:56 -!- fwiesing(~fwiesingX@mail.tryton.at) has left #tryton
2016-12-19 02:31 -!- thaneor(~ldlc6@r179-25-102-17.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-19 04:05 -!- pokoli_(~pokoli@mail.koolpi.com) has joined #tryton
2016-12-19 08:27 -!- rpit(~rpit@aftr-37-24-150-211.unity-media.net) has joined #tryton
2016-12-19 08:49 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-19 08:50 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-19 08:58 -!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton
2016-12-19 09:05 -!- udono(~udono@tmo-111-181.customers.d1-online.com) has joined #tryton
2016-12-19 09:20 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2016-12-19 10:22 -!- Joy(0116a082@gateway/web/freenode/ip.1.22.160.130) has joined #tryton
2016-12-19 10:22 <Joy> what is difference between cost_price,list_price & unit_price of product?
2016-12-19 10:32 <pokoli_> Joy: cost_price is updated based on the cost_price_method
2016-12-19 10:33 <pokoli_> Joy: list_price is the default sale_price that's used on price lists
2016-12-19 10:34 <pokoli_> Joy: and about unit_price it depends on the model used, but normally the unit_price of the product on this model, than can be diferent from cost_price and list_price
2016-12-19 10:34 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2016-12-19 10:40 <Joy> pokoli: ok,thank you very much!
2016-12-19 11:17 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-12-19 11:30 <Joy> how much precision on amount in tryton? 2 digits or 3 digits?
2016-12-19 11:33 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-19 11:34 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-19 11:36 <pokoli> Joy: the amount (that refers to money) use the currency digits
2016-12-19 11:36 <pokoli> Joy: which normally is 2
2016-12-19 11:36 <pokoli> Joy: and by default the unit_prices of products uses 4 digits (that can be customized) and then are rounded to the currency digits
2016-12-19 11:36 <pokoli> Joy: I'm not sure if that fully answers your question
2016-12-19 11:36 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton
2016-12-19 11:42 <cedk> pokoli: is not documented?
2016-12-19 11:44 -!- mamcode(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton
2016-12-19 11:48 <pokoli> cedk: it is on the currency module: http://doc.tryton.org/4.2/trytond/trytond/modules/currency/doc/index.html?highlight=digits
2016-12-19 11:50 <cedk> pokoli: it is always better to refer to the documentation and when there is none write it
2016-12-19 11:51 <pokoli> cedk: understood
2016-12-19 12:18 <Joy> pokoli: thank you!
2016-12-19 12:33 -!- vapo(~VapoRizer@217-162-200-141.dynamic.hispeed.ch) has joined #tryton
2016-12-19 13:01 -!- JanGB(~jan@x59cc9bdf.dyn.telefonica.de) has joined #tryton
2016-12-19 13:06 <vapo> Hello. I installed trytond last week with your guys help. (U: Doflamingo). I have now been testing different modules...
2016-12-19 13:06 <vapo> Now I have a problem with the sales module. When I fill out a new quotation/sales offer, I does not let me finish the process:
2016-12-19 13:06 <vapo> Warnung: You try to bypass an access rule. (Document type: sale.sale)
2016-12-19 13:06 <vapo> any hints?
2016-12-19 13:07 <pokoli> vapo: which access groups have your user?
2016-12-19 13:35 <vapo> pokoli: I'm using admin, which has all groups available
2016-12-19 13:36 <pokoli> vapo: I just tested on demo database (demo.tryton.org) and I can not reproduce
2016-12-19 13:36 <vapo> pokoli: same with me
2016-12-19 13:37 <vapo> pokoli: I tested it there on friday
2016-12-19 13:38 <pokoli> vapo: could you execute your server with --verbose and --dev option to see if there is another error hidden?
2016-12-19 13:38 <vapo> pokoli: ok. will try that
2016-12-19 13:51 <vapo> pokoli: http://pastebin.com/jRBLSf1b
2016-12-19 13:51 <vapo> pokoli: doesn't seem to tell much more. let me try to resetup the complete installation. maybe I have contaminated the installation during testing.
2016-12-19 13:57 <pokoli> vapo: could you tell the id of the sale_group in your database?
2016-12-19 13:57 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-19 13:58 <pokoli> vapo: forget it
2016-12-19 13:59 <pokoli> vapo: I think the problem is about company. You don't have any company defined and there is an access rule by company
2016-12-19 13:59 <pokoli> vapo: have you created a company? Have you assigned this company to your users?
2016-12-19 13:59 <vapo> pokoli: company created: yes, assigned: no ... let me try that
2016-12-19 14:01 <vapo> pokoli: the question is, where to assign the users
2016-12-19 14:01 <vapo> pokoli: I have created a party with the company information
2016-12-19 14:01 <pokoli> vapo: on the user form you should assign it on the main_company field
2016-12-19 14:01 <pokoli> vapo: an then In the user preferences you should be able to select the company as current one
2016-12-19 14:02 <vapo> pokoli: afterwards i went on party configuration companies companies and created a company with said party
2016-12-19 14:02 <pokoli> vapo: http://doc.tryton.org/4.2/modules/company/doc/index.html#user
2016-12-19 14:02 <vapo> pokoli: ok... will check that
2016-12-19 14:18 <vapo> pokoli: assigning the user to the company did the trick. Thank you!
2016-12-19 14:18 <pokoli> vapo: you're welcome
2016-12-19 14:19 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-19 14:23 <pokoli> How can I define reference field via xml? I've tested using the "search" attribute but it does not work
2016-12-19 14:24 <pokoli> sorry using the ref attribute, not search
2016-12-19 14:26 <pokoli> indeed reading the code, None of them will work. So i'm going to write a patch :)
2016-12-19 14:26 <mrichez> hi, how can i debug when i save data? i change some data in my model, when i save i get "record saved" but it keeps old data
2016-12-19 14:27 <cedk> pokoli: construct the string
2016-12-19 14:27 <mrichez> and strange, it's working in another view ?
2016-12-19 14:28 <pokoli> cedk: but I don't know the record id, as I want to reference it another xml_id
2016-12-19 14:28 <pokoli> cedk: so how can I construct it
2016-12-19 14:28 <pokoli> mrichez: you may override the create and write methods of your model to do some printing
2016-12-19 14:29 <mrichez> pokoli: ok will try
2016-12-19 14:33 <cedk> pokoli: eval="'module.model,' + ref('xml_id')"
2016-12-19 14:34 -!- thaneor1(~ldlc6@r179-25-97-61.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-19 14:35 <pokoli> cedk: it worked thanks
2016-12-19 14:36 <pokoli> I'm using this on menuitems to open more than one actions from the same menu
2016-12-19 14:37 <cedk> pokoli: probably better: eval="'module.model,%s' % ref('xml_id')"
2016-12-19 14:37 <pokoli> cedk: I think so. Indeed in the previous example I added a str cast, otherwise it fails
2016-12-19 14:38 <cedk> We should probably try to use more often this option on multi action per menu
2016-12-19 14:38 <cedk> This could reduce the number of menu entries
2016-12-19 14:39 <pokoli> cedk: I think so
2016-12-19 14:40 <pokoli> cedk: btw, how you created http://www.tryton.org/images/chronos.gif ?
2016-12-19 14:40 <pokoli> cedk: which software you used?
2016-12-19 14:45 <cedk> pokoli: manual screenshot :-) and gimp
2016-12-19 14:51 <mrichez> pokoli: i override write but when i save, method write seems not used ?
2016-12-19 14:54 <pokoli> cedk I tought it was a video exported to a gif
2016-12-19 14:54 <pokoli> cedk: I think we can use it (at least) for invoices (supplier and customer ones)
2016-12-19 14:57 <pokoli> mrichez: if it's a new record the create method is used
2016-12-19 14:57 <pokoli> mrichez: in fact, starting the server with --verbose and --dev flags will show all the requests, with methods and parameters
2016-12-19 14:57 <pokoli> mrichez: and same applies for client with --verbose mode
2016-12-19 14:58 <mrichez> pokoli: no, i'm trying to update. And yes both are in verbose mode
2016-12-19 14:59 <mrichez> pokoli: don't understand, it's working now...
2016-12-19 15:00 <pokoli> mrichez: maybe a cache issue?
2016-12-19 15:00 <mrichez> pokoli: probably, but i reloaded trytond...
2016-12-19 15:01 <mrichez> pokoli: anyway, it's working now. thanks!
2016-12-19 15:03 <vapo> if I would like to document on how to do some things (mostly step by step howto's) like installation of tryton or configuration... where would be the best place for that?
2016-12-19 15:03 <vapo> I personally document such stuff in my dokuwiki, but I would happily share that information concerning tryton.
2016-12-19 15:20 <pokoli> cedk: for next time http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast
2016-12-19 15:20 <pokoli> vapo: but step by step instaltion may be diferent depending on the OS
2016-12-19 15:20 <tryingtryton> Is it possible to see how many sales were logged by a specific user with Tryton?
2016-12-19 15:21 <pokoli> vapo: and oficial documentation should be generic enough to run on all OS
2016-12-19 15:21 <pokoli> tryingtryton: you can search be create user or write user (depending on what do you understand by specific user :P)
2016-12-19 15:22 <tryingtryton> Interesting. Thanks.
2016-12-19 15:23 <tryingtryton> No way to get a running total of product quantity and purchase amounts for a party though?
2016-12-19 15:25 <pokoli> tryingtryton: you can use a specific model (created with table_query) for that
2016-12-19 15:26 <pokoli> tryingtryton: http://doc.tryton.org/4.2/trytond/doc/ref/models/models.html?highlight=table_query#trytond.model.ModelSQL.table_query
2016-12-19 15:27 <vapo> pokoli: i see
2016-12-19 15:50 -!- csotelo_at_work(~csotelo@179.43.97.40) has joined #tryton
2016-12-19 15:54 <cedk> pokoli: no package for OpenBSD
2016-12-19 16:00 <pokoli> cedk: indeed i finally joined manually 6 screenshots because with the video I got a file so big
2016-12-19 16:10 <cedk> pokoli: your tweet could probably go into tryton-tips (without the screenshots)
2016-12-19 16:24 <mrichez> pokoli: http://gifmaker.me/
2016-12-19 16:29 <pokoli> cedk: https://tryton-rietveld.appspot.com/26981002 ;)
2016-12-19 16:30 <pokoli> mrichez: thanks but imagemagic can do the same with: convert *.jpeg output.gif
2016-12-19 16:31 <mrichez> pokoli: :-)
2016-12-19 16:39 <tryingtryton> pokoli: How do you use that from the client?
2016-12-19 16:40 <pokoli> tryingtryton: what do you mean with that?
2016-12-19 16:41 <tryingtryton> pokoli: The ModelSQL doc you referenced. How do you use table_query from the client?
2016-12-19 16:42 <pokoli> tryingtryton: it's not possible, you create a custom module with a custom model
2016-12-19 16:43 <tryingtryton> Eh, that's not ideal.
2016-12-19 16:45 <pokoli> tryingtryton: why not?
2016-12-19 16:58 <tryingtryton> Because it's code we have to maintain and something else to teach users how to use.
2016-12-19 17:05 -!- csotelo_at_work(~csotelo@179.43.97.40) has joined #tryton
2016-12-19 17:08 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2016-12-19 18:48 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-12-19 20:46 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-19 20:48 -!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton
2016-12-19 22:11 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-12-19 23:01 -!- fwiesing(~fwiesingX@mail.tryton.at) has joined #tryton
2016-12-19 23:05 -!- seba_(~seba@185.39.42.130) has joined #tryton

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