chat.freenode.net #tryton log beginning Thu Jul 6 00:00:01 CEST 2017 | ||
2017-07-06 01:12 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2017-07-06 01:47 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-07-06 02:52 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2017-07-06 02:53 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton | ||
2017-07-06 02:53 -!- thaneor(~ldlc6@179.26.17.69) has joined #tryton | ||
2017-07-06 03:09 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2017-07-06 03:40 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2017-07-06 05:32 -!- kstenger(~karla@r190-134-55-99.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-07-06 06:49 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2017-07-06 07:09 -!- flachtassekasse(~flachtass@5.104.149.54) has joined #tryton | ||
2017-07-06 08:20 -!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton | ||
2017-07-06 08:20 -!- irclog(~irclog@moretus.b2ck.com) has joined #tryton | ||
2017-07-06 08:43 -!- udono1(~udono@078-058-210-188.ip-addr.inexio.net) has joined #tryton | ||
2017-07-06 08:56 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2017-07-06 09:00 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton | ||
2017-07-06 10:03 -!- asyncee(~asyncee@91.144.149.242) has joined #tryton | ||
2017-07-06 10:08 -!- asyncee(~asyncee@91.144.149.242) has joined #tryton | ||
2017-07-06 10:10 <asyncee> hello, can anyone help me? I need to implement custom authorization module for tryton. Can anyone point me direction how to start? | ||
2017-07-06 10:18 <flachtassekasse> cedk: i thing i found the problem from yesterday: https://bugs.tryton.org/issue6628 | ||
2017-07-06 11:01 <dmollerm> asyncee: since tryton 4.2 custom authentication methods can be plugged. Have a look to the SMS auth module http://hg.tryton.org/modules/authentication_sms/ | ||
2017-07-06 11:02 <asyncee> dmollerm: great, thank you very much! | ||
2017-07-06 11:02 <dmollerm> asyncee: or to this dummy auth module https://bitbucket.org/calidae/trytond-authentication_dummy/ (intended for development use only) | ||
2017-07-06 11:04 <asyncee> nice, i'll check it out | ||
2017-07-06 11:07 <dmollerm> asyncee: and remember to configure the server to use your custom auth! http://doc.tryton.org/4.4/trytond/doc/topics/configuration.html#authentications | ||
2017-07-06 11:08 <asyncee> dmollerm: thank you. Don't you know if there are some tutorial how to start basic project with tryton for novices on the internet? | ||
2017-07-06 11:09 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-07-06 11:36 <dmollerm> asyncee: I'm not aware of any. I think a skeleton project exists that can be fetched with cookiecutter, but aside from that... the first steps with tryton are tough, take it easy. My approach is to clone lots of known modules in a folder and search for code examples in there | ||
2017-07-06 11:39 <asyncee> that's what i do, actually. Anyway, thank you for idea to use cookiecutter skeleton template) | ||
2017-07-06 11:42 -!- csotelo(~csotelo@2001:1388:49c6:3697:d466:59f2:8025:271d) has joined #tryton | ||
2017-07-06 12:35 -!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton | ||
2017-07-06 12:57 -!- mariomop(~quassel@181.90.131.198) has joined #tryton | ||
2017-07-06 14:02 -!- flachtassekasse(~flachtass@5.104.149.54) has joined #tryton | ||
2017-07-06 14:05 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | ||
2017-07-06 14:14 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton | ||
2017-07-06 14:35 -!- thaneor(~ldlc6@179.26.17.69) has joined #tryton | ||
2017-07-06 14:37 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2017-07-06 14:48 -!- alexbodn(~alex@213.57.190.189) has joined #tryton | ||
2017-07-06 14:55 -!- thaneor1(~ldlc6@179.26.63.100) has joined #tryton | ||
2017-07-06 15:11 -!- jcm(~jcm@78.194.214.115) has joined #tryton | ||
2017-07-06 15:17 -!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton | ||
2017-07-06 15:20 <jcm> hi cedk ; I'm porting the sale_rebate you wrote for 2.6 to 4.4. Lurking on some modules extending SaleLine, I see that some use __setup__, like sale_price_list, some other don't, like sale_supply | ||
2017-07-06 15:20 <jcm> is there a good way to proceed? | ||
2017-07-06 15:34 <nicoe> jcm: I don't remember if 2.6 was already using the ActiveRecord pattern (it was almost 5 years ago) you might want to dig in the mailing lists/bugs about pointers on the migration | ||
2017-07-06 15:51 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2017-07-06 16:30 -!- kstenger(~karla@r186-49-254-216.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-07-06 17:35 -!- kstenger(~karla@r186-49-254-216.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-07-06 17:57 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton | ||
2017-07-06 18:14 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton | ||
2017-07-06 19:00 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2017-07-06 19:34 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton | ||
2017-07-06 19:41 <csotelo_at_work> dear coders | ||
2017-07-06 19:42 <csotelo_at_work> I could find a way to add identifiers to a party using proteous, and I couldnt find an example :( any suggest https://pastebin.com/22MhC3UK, thanks | ||
2017-07-06 19:45 <kstenger> csotelo_at_work: create the Identifier with the party.identifier model, then append it to party.identifiers | ||
2017-07-06 19:47 <csotelo_at_work> kstenger, thanks!!! I will try | ||
2017-07-06 19:50 -!- smarro(~sebastian@host52.181-0-198.telecom.net.ar) has joined #tryton | ||
2017-07-06 20:18 <kstenger> Wouldn't it be nice to have examples like this https://bugs.tryton.org/msg23706 in the override translation doc (or at least a link to this msg) ? | ||
2017-07-06 20:18 -!- flachtassekasse(~flachtass@p5DD1940E.dip0.t-ipconnect.de) has joined #tryton | ||
2017-07-06 20:22 <kstenger> or at least a clarification that the final dot which separates module and xml_id is mandatory even if xml_id is empty | ||
2017-07-06 20:36 <jcm> nicoe: sure, my question was about the two different ways to proceed, with and without __setup__ | ||
2017-07-06 20:41 <csotelo_at_work> coders, is there a way on proteus to avoid domain restrictions in a model field? | ||
2017-07-06 20:43 <kstenger> csotelo_at_work: shouldn't, up to where I know, proteus respects all the tryton modules' code. Why would there be such need? | ||
2017-07-06 20:46 <kstenger> csotelo_at_work: if you need to modify the domain, shouldn't you instead extend the class on another module and modify the domain there? | ||
2017-07-06 20:47 <csotelo_at_work> kstenger, I am trying to use proteus to migrate date fropm database to gnuhealth ( tryton finally ) where I have PersonName "gnuhealth.person_name", it has a field depending on party, wich a domain for field "is_person", the issue is : if I update party.party and set is_person = True, it would tell me that I need given on gnuhealth.person_name, but if I try to create gnuhealth.person_name instance, it would tellme I need is_person on part_party | ||
2017-07-06 20:49 <csotelo_at_work> kstenger, this is my code https://pastebin.com/DVrs01av | ||
2017-07-06 20:49 <csotelo_at_work> I am fighting with it the whole day | ||
2017-07-06 20:51 <kstenger> csotelo_at_work: try not to save person_name, append it and then do party.save() | ||
2017-07-06 20:52 <csotelo_at_work> kstenger, I have done that | ||
2017-07-06 20:53 <csotelo_at_work> I will try again | ||
2017-07-06 20:53 <kstenger> Can you give me a link to see how PersonName is defined ? | ||
2017-07-06 20:55 <csotelo_at_work> kstenger, do you mean on gnuhealth repository?? | ||
2017-07-06 20:55 <kstenger> yeah | ||
2017-07-06 20:56 <csotelo_at_work> when I do party.person_names = person_names gives me AttributeError | ||
2017-07-06 20:56 <csotelo_at_work> I will look for it | ||
2017-07-06 20:57 <kstenger> csotelo_at_work: append | ||
2017-07-06 20:57 <csotelo_at_work> http://hg.savannah.gnu.org/hgweb/health/file/6a9b86767b34/tryton/health/health.py#l791 | ||
2017-07-06 20:59 <csotelo_at_work> kstenger, when I try to append to party.person_names(person_name) it gives me an error related to a person_name field restriction, "given" | ||
2017-07-06 21:00 <kstenger> csotelo_at_work: Probably you should create the party, use is_person=True, don't save it, then create the PersonName, and do person_name.party = party, then do person_name.save() | ||
2017-07-06 21:02 <csotelo_at_work> I ma working on existing data values.. | ||
2017-07-06 21:02 <csotelo_at_work> that is the reason on working on existing datat.. where is_person is False, them I try to set it to True and add person_names | ||
2017-07-06 21:03 <csotelo_at_work> on both model demain an restrictions restrcit to me to update data | ||
2017-07-06 21:04 <kstenger> csotelo_at_work: what happens if you modify your party.is_person to True without saving? | ||
2017-07-06 21:05 <csotelo_at_work> And try to save person_name? it told me that is no part of the domain is_person | ||
2017-07-06 21:06 <kstenger> csotelo_at_work: can I see the code where you tried this ? | ||
2017-07-06 21:06 <csotelo_at_work> I al so try to update a field on the client, neither is possible | ||
2017-07-06 21:07 <csotelo_at_work> if the record was created with is_person as false, trying to set it to is_person to True is no possible | ||
2017-07-06 21:08 <csotelo_at_work> I guess is a bidrectional restriction | ||
2017-07-06 21:08 <csotelo_at_work> I must try editing on database before doing and update | ||
2017-07-06 21:08 <csotelo_at_work> I will try thya | ||
2017-07-06 21:08 <csotelo_at_work> that* | ||
2017-07-06 21:17 <csotelo_at_work> kstenger, doing some fixes on database it works | ||
2017-07-06 21:19 <kstenger> csotelo_at_work: I guess doing it from proteus is not the best, I wonder if you should instead use __register__ | ||
2017-07-06 21:19 <kstenger> as it seems you are converting from some previous version | ||
2017-07-06 21:19 <csotelo_at_work> I could solve this issues | ||
2017-07-06 21:20 <csotelo_at_work> I am miugrating from mssql to tryton database | ||
2017-07-06 21:20 <csotelo_at_work> from a invoincing system toa tryton / gnuhealth | ||
2017-07-06 21:21 <kstenger> then you should be able to create the party as you create the person_name... but if you already got it working... | ||
2017-07-06 21:47 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2017-07-06 22:01 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | ||
2017-07-06 22:19 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!