IRC logs of #tryton for Tuesday, 2017-05-16

chat.freenode.net #tryton log beginning Tue May 16 00:00:01 CEST 2017
2017-05-16 01:30 -!- kstenger1(~karla@r167-56-244-182.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-05-16 01:33 -!- JosDzG(~Thunderbi@189.250.43.248) has joined #tryton
2017-05-16 01:38 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-16 04:58 -!- csotelo(~csotelo@2001:1388:49c5:c777:4765:c7f7:d5b:f6d7) has joined #tryton
2017-05-16 05:08 -!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton
2017-05-16 05:48 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-05-16 06:23 -!- thaneor(~ldlc6@179.26.147.178) has joined #tryton
2017-05-16 08:10 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2017-05-16 08:29 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-16 08:38 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-05-16 08:50 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2017-05-16 08:52 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-16 09:29 -!- rpit(~rpit@aftr-37-24-149-240.unity-media.net) has joined #tryton
2017-05-16 10:19 <sisalp> hello, when I create a new invoice and select a product on a line of invoice, the unit_price doesn't come up. A mistake or a bug ?
2017-05-16 10:20 <pokoli> sisalp: is the expected behaviour on latest versions. Let me search the issue on the bug tracker
2017-05-16 10:21 <pokoli> sisalp: https://bugs.tryton.org/issue4857
2017-05-16 10:25 <sisalp> pokoli: Cedric says users expect it works as sale, but it doesn't. Anyone knows why it shouldn't ?
2017-05-16 10:26 <cedk> sisalp: if you want sale behaviour, use sale
2017-05-16 10:26 <cedk> sisalp: invoice does not behave like sale because it would require to develop everything from sale to invoice
2017-05-16 10:26 <sisalp> cedk: just explain the reason, please
2017-05-16 10:26 <cedk> sisalp: and we do not want duplicate our work
2017-05-16 10:27 <sisalp> cedk: thank you
2017-05-16 10:28 <sisalp> cedk: this is my case : I sell, then I post a wrong invoice, then credit it and issue a new corrected invoice. It is still the same sale isn't it ?
2017-05-16 10:30 <sisalp> cedk: my first concern is to use a selling function when I belong to accounting team.
2017-05-16 10:32 <cedk> sisalp: I do not understand the question
2017-05-16 10:32 <pokoli> sisalp: for me it's a new return sale :)
2017-05-16 10:32 <cedk> sisalp: you can work at the invoice level or you can cancel the sale and do a new one
2017-05-16 10:33 <cedk> sisalp: if you just need to correct a price, you can use the new wizard etc.
2017-05-16 10:33 <sisalp> cedk: working the invoice level is different from making a new sale. Would duplicating of invoice be the right way ?
2017-05-16 10:37 <sisalp> cedk: in my history, most rejected invoices are because of details about the exact name of the customer, its address or its own order reference. Sometimes because of taxe rules.
2017-05-16 10:39 <sisalp> pokoli: it looks like, but it is not. If you create fictive return sales, you may influence the metrics: the sales team is blamed while the error was at accounting level.
2017-05-16 10:41 <pokoli> sisalp: we have a module that makes possible to move invoices from posted 2 draft state
2017-05-16 10:41 <pokoli> sisalp: so this problem is easly solved :)
2017-05-16 10:41 <pokoli> sisalp: https://bitbucket.org/trytonspain/trytond-account_invoice_posted2draft
2017-05-16 10:42 <cedk> sisalp: you can not use such module in France
2017-05-16 10:43 <cedk> pokoli: and I'm not sure for Spain
2017-05-16 10:43 <sisalp> pokoli: you break my heart ;-)
2017-05-16 10:44 <cedk> sisalp: if you have to correct just accounting, you must go with credit note and reinvoice
2017-05-16 10:44 <pokoli> cedk: the new account_invoice_correction module is to solve this cases, isn't it?
2017-05-16 10:46 <sisalp> cedk: yes this is the case when I find the initial issue. Si I'm wondering if starting from a duplicated invoice wouldn't fix the whole "problem", I mean make it easy.
2017-05-16 10:51 <cedk> pokoli: yes most of them
2017-05-16 10:56 <sisalp> cedk: pokoli: I make try : make a bad invoice, post it, credit it, post credit, then back to wrong invoice, I duplicate it and correct it, then post it. Everything works well, and I don't have to fill the lines again.
2017-05-16 10:57 <sisalp> sisalp: looks ok for me. We will probably have to explain this to new users.
2017-05-16 11:00 <sisalp> cedk: pokoli: thank you for this discussion.
2017-05-16 11:12 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-05-16 11:38 -!- csotelo(~csotelo@2001:1388:49c4:d11e:6728:e955:2d13:643b) has joined #tryton
2017-05-16 13:02 -!- mariomop(~quassel@181.110.71.149) has joined #tryton
2017-05-16 13:12 -!- dmollerm(~dmollerm@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton
2017-05-16 13:21 <dmollerm> Hi everybody. Is there any mechanism to store user secrets encrypted in the database? A hash won't do it, I need to store passwords and private keys so that the trytond server communicates with 3rd party services on behalf of the user and the identification is with SSL certificates only.
2017-05-16 13:22 <pokoli> dmollerm: sii? xD
2017-05-16 13:22 <dmollerm> pokoli: you name it XD
2017-05-16 13:24 <pokoli> dmollerm: does this help: https://www.postgresql.org/docs/current/static/encryption-options.html
2017-05-16 13:31 -!- kstenger1(~karla@r190-134-203-170.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-05-16 13:42 <dmollerm> pokoli: Interesting, but I'd rather go with a per-config master password so it is decoupled of the DB backend being specifically postgres
2017-05-16 13:49 <pokoli> dmollerm: then you should probably go with something like: http://pythonhosted.org/pycrypto/
2017-05-16 13:49 <pokoli> dmollerm: and store only the encrypted values, and unencrypt when reading
2017-05-16 14:04 <cedk> dmollerm: why not store the password in the configuration file
2017-05-16 14:06 <pokoli> cedk: indeed this data is per company, so with multiple companies there are multiple passwords
2017-05-16 14:07 <pokoli> cedk: SII it's a new legislation in Spain to send invoice data via SOAP interface to the regulator in a maximun 4 days delay
2017-05-16 14:07 <pokoli> cedk: and the regulator only accepts requests that are send with the company certificate
2017-05-16 14:08 <pokoli> don't now if its an english version. But all the info is available here: http://www.agenciatributaria.es/AEAT.internet/Inicio/La_Agencia_Tributaria/Campanas/Suministro_Inmediato_de_Informacion_en_el_IVA__SII_/Suministro_Inmediato_de_Informacion_en_el_IVA__SII_.shtml
2017-05-16 14:09 <cedk> pokoli: you can still store configuration per company
2017-05-16 14:09 <cedk> pokoli: for example, you could store in a folder each certificate
2017-05-16 14:11 <pokoli> cedk: that makes sense
2017-05-16 14:11 <cedk> otherwise I think Fernet with rotation key is the best option to create a field
2017-05-16 14:11 <cedk> https://cryptography.io/en/latest/fernet/
2017-05-16 14:25 <sisalp> pokoli: seems that multi-company is used in Spain specifically. Do you know why ?
2017-05-16 14:26 <cedk> sisalp: usually it is for fiscal opportunity
2017-05-16 14:31 <pokoli> sisalp: cedk is right :)
2017-05-16 14:31 <pokoli> it's quite frequent here to have several companies that invoice each other
2017-05-16 15:22 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-16 15:29 <dmollerm> cedk: indeed Fernet looks great, thanks
2017-05-16 15:33 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-05-16 15:35 <dmollerm> sisalp: franchising is a good example of a multi-company setup very popular in Spain. The franchisor runs a trytond server and a myriad of franchises use it for invoicing
2017-05-16 15:37 <semarie> in multi-company context, what is shared ? parties ? chart of accounts ?
2017-05-16 15:39 <semarie> (if something is shared)
2017-05-16 15:41 <cedk> dmollerm: I do not think franchising is a good example, for such case I would have one setup per company with EDI between them
2017-05-16 15:48 <dmollerm> cedk: EDI? I don't follow you
2017-05-16 15:50 <cedk> dmollerm: https://en.wikipedia.org/wiki/Electronic_data_interchange
2017-05-16 15:56 <sisalp> dmollerm: in France, franchising wouldn't fit. In fact any company must be responsible for its own data and prove its tranaction with any party, including the franchiser.
2017-05-16 15:57 <cedk> sisalp: I do not think it is a valid reason
2017-05-16 16:06 -!- JosDzG(~Thunderbi@189.250.43.248) has joined #tryton
2017-05-16 16:18 <pokoli> semarie: we have one use case where nothing is shared
2017-05-16 16:21 <cedk> pokoli: I do not see the point
2017-05-16 16:30 -!- shellbofh(~shellbofh@fixed-187-188-50-87.totalplay.net) has joined #tryton
2017-05-16 16:30 <shellbofh> Hello Guys
2017-05-16 16:30 <shellbofh> does tryton supports python 3 ?
2017-05-16 16:32 <cedk> shellbofh: yes via 2to3
2017-05-16 16:33 <cedk> shellbofh: except for the desktop client which is currently migrating to GTK3 first
2017-05-16 16:40 <pokoli> cedk: because we want to have some kind of super user that it's capable of accessing all the companies data
2017-05-16 16:46 -!- shellbofh(~shellbofh@fixed-187-188-50-87.totalplay.net) has joined #tryton
2017-05-16 16:49 <cedk> pokoli: use ldap
2017-05-16 16:50 <pokoli> cedk: to have one use with same credentials to all databases?
2017-05-16 16:52 <cedk> pokoli: yes
2017-05-16 17:01 <pokoli> cedk: but I have other users that may only access to a subset of companies
2017-05-16 17:01 <pokoli> cedk: with the full tree it's easier to manage
2017-05-16 17:27 -!- xyz_(5cc2111b@gateway/web/freenode/ip.92.194.17.27) has joined #tryton
2017-05-16 17:28 <xyz_> Hello! I'm trying to setup trytond for use with the client and SAO.
2017-05-16 17:29 <xyz_> In the v 4.2 configuration file I have the [web] with 'listen = 0.0.0.0:8000' and 'root = /some/path/to/sao'
2017-05-16 17:30 <xyz_> Access to SAO is made through nginx via proxy_pass to 127.0.0.1:8000.
2017-05-16 17:32 <xyz_> When I now access SAO via a browser to the nginx instance, f.e. http://sao.trytonserv.com, I'll get redirected to http://sao.trytononserv.com/index.html/
2017-05-16 17:34 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has left #tryton
2017-05-16 17:34 <xyz_> However, it fails to load the 'bower_components/....' files as described in index.html, that is 'http://sao.trytonserv.com/index.html/bower_components/...', which is obviously not going to return anything.
2017-05-16 17:35 <xyz_> When I try to access tryton directly, e.g. http://ip:8000 I get disconnected from it, nothing happens. Logs don't show anything related to this.
2017-05-16 17:49 -!- csotelo_at_work(~csotelo@179.43.99.44) has joined #tryton
2017-05-16 17:51 <pokoli> xyz_: if you have an nginx proxy, you can setup it to proxy only post request to trytond and server static files from root directory
2017-05-16 17:56 -!- JanGB(~jan@p54B99609.dip0.t-ipconnect.de) has joined #tryton
2017-05-16 18:01 <xyz_> pokoli: I thought about that, too. However, does sao really suppose to have the files it requires in /index.html/... ?
2017-05-16 18:03 -!- JosDzG(~Thunderbi@189.250.43.248) has joined #tryton
2017-05-16 18:18 <xyz_> Ah, got it, I had a 'index index.html' directive in the nginx configuration. Now everything seems to work.
2017-05-16 18:18 <xyz_> Thank you for your replies and guidance.
2017-05-16 18:21 -!- JosDzG(~Thunderbi@189.250.43.248) has joined #tryton
2017-05-16 18:22 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-05-16 18:24 -!- thaneor(~ldlc6@r179-25-67-243.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-05-16 18:40 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton
2017-05-16 18:42 -!- JosDzG(~Thunderbi@189.250.43.248) has joined #tryton
2017-05-16 19:03 -!- zodman_(~zodman@187.155.222.158) has joined #tryton
2017-05-16 19:06 -!- JosDzG(~Thunderbi@189.250.43.248) has joined #tryton
2017-05-16 19:11 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-05-16 19:59 -!- catonano(~user@151.45.34.167) has joined #tryton
2017-05-16 20:01 <catonano> I'm trying to build Tryton on GuixSD. Genshi is a dependency but the current released version doesn't build with python 3.5. Also a suggestion was made to me that Tryton only needs Genshi buuilt for python2
2017-05-16 20:01 <catonano> so I ave 2 questions
2017-05-16 20:01 <catonano> Does Tryton need genshi built for python3 ?
2017-05-16 20:03 <catonano> Well, I'll give up on thhe second question for now. So it's just 1 question
2017-05-16 20:04 <catonano> Of course with "Tryton" I mean trytond
2017-05-16 20:28 -!- smarro(~sebastian@host99.181-0-2.telecom.net.ar) has joined #tryton
2017-05-16 20:49 -!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton
2017-05-16 21:02 -!- kstenger(~karla@r186-54-31-21.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-05-16 21:38 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2017-05-16 21:41 -!- JosDzG(~Thunderbi@189.250.43.248) has joined #tryton
2017-05-16 22:01 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton
2017-05-16 22:34 <csotelo_at_work> hello coders... I have noticed that branch are used for versioning instead tag. Is that right? I ask for mark my version modules. Thanks a lot
2017-05-16 22:34 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-16 23:48 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-05-16 23:49 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-05-16 23:49 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton

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