chat.freenode.net #tryton log beginning Thu Jan 18 00:00:01 CET 2018 | ||
2018-01-18 00:36 -!- swayf(~swayf@ipbcc14f49.dynamic.kabel-deutschland.de) has joined #tryton | ||
2018-01-18 04:11 -!- thaneor(~ldlc6@179.26.117.83) has joined #tryton | ||
2018-01-18 04:30 -!- zodman(~zodman@178.62.7.89) has joined #tryton | ||
2018-01-18 04:58 <csotelo> hi | ||
2018-01-18 04:59 <csotelo> I ma trying to set payment_terms bu default however it doesnt work, my models are https://pastebin.com/exLw9LVH, any sugges? | ||
2018-01-18 06:40 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton | ||
2018-01-18 07:02 -!- _2cadz(~2cadz@82.64.14.213) has joined #tryton | ||
2018-01-18 07:21 -!- JanGB(~jan@ipservice-092-216-127-053.092.216.pools.vodafone-ip.de) has joined #tryton | ||
2018-01-18 07:40 -!- zmijunkie(~Adium@200116b80af5a1009cdae495517edbc2.dip.versatel-1u1.de) has joined #tryton | ||
2018-01-18 07:57 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton | ||
2018-01-18 08:02 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2018-01-18 08:29 -!- csotelo(~csotelo@190.232.106.37) has joined #tryton | ||
2018-01-18 08:54 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2018-01-18 08:58 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2018-01-18 09:14 -!- rpit(~rpit@dslb-084-061-017-201.084.061.pools.vodafone-ip.de) has joined #tryton | ||
2018-01-18 09:29 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2018-01-18 09:52 -!- rpit(~rpit@ip-109-40-1-123.web.vodafone.de) has joined #tryton | ||
2018-01-18 10:09 -!- afibanez(uid207678@gateway/web/irccloud.com/x-lvdyqdostrvlifth) has joined #tryton | ||
2018-01-18 10:47 <afibanez> Good morning! From trytond 3.8 to trytond 4.0 ir.trigger condition was changed from Python to PYSON. It's not explained in the migrations at discuss. There is some migration script or something? | ||
2018-01-18 10:47 -!- VlijmenFileer(~VlijmenFi@139.193.196.139) has joined #tryton | ||
2018-01-18 10:49 <pokoli> afibanez: conditions should be re-written | ||
2018-01-18 10:50 <pokoli> afibanez: indeed if you created triggers by xml you only have to update the condition and use the pyson="1" attribute | ||
2018-01-18 10:58 <afibanez> pokoli: ok, thank you! Shourd we create a migration entry in discuss from 3.8 to 4.0 explaining this point? | ||
2018-01-18 10:59 <cedk> afibanez: it could be an information, yes | ||
2018-01-18 11:01 <csotelo> I ma trying to set payment_terms bu default however it doesnt work, my models are https://pastebin.com/exLw9LVH, any sugges | ||
2018-01-18 11:06 <csotelo> I mean, I am tryton to set a efault payment term for customers and suppliers, then I have created a module to do this job, however it is no working as expected | ||
2018-01-18 11:07 <csotelo> cause the default value is not been charged | ||
2018-01-18 11:07 <csotelo> any suggest please | ||
2018-01-18 11:11 <pokoli> csotelo: which tryton version? | ||
2018-01-18 11:11 <csotelo> hi pokoli, it is 4.2 version | ||
2018-01-18 11:11 <csotelo> running on python 3 | ||
2018-01-18 11:14 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | ||
2018-01-18 11:15 <pokoli> csotelo: this fields are Property fields, so you should define a default value for the property | ||
2018-01-18 11:18 <csotelo> sorry for the question, it is coding or configuration? | ||
2018-01-18 11:21 <pokoli> csotelo: configuration | ||
2018-01-18 11:21 <pokoli> csotelo: you should create a record on ir.property table for this field not linked to any record | ||
2018-01-18 11:21 <pokoli> csotelo: iirc correctly there is a menu option for this on the admin section | ||
2018-01-18 11:22 <pokoli> csotelo: btw properties have been removed on version 4.4. See https://bugs.tryton.org/issue2349 | ||
2018-01-18 11:24 <csotelo> ten, is there a way to solve it without property table, like de usual default value as my code? | ||
2018-01-18 11:26 <csotelo> then* | ||
2018-01-18 11:26 -!- catonano(~catonano@151.50.146.255) has joined #tryton | ||
2018-01-18 11:27 <pokoli> csotelo: I don't think so | ||
2018-01-18 11:27 <csotelo> I see | ||
2018-01-18 11:30 <pokoli> csotelo: well probablly overriding default_get you can set the values for the fields | ||
2018-01-18 11:31 <pokoli> csotelo: but the easiest way is to set the default value on the property table | ||
2018-01-18 11:31 -!- thaneor(~ldlc6@179.26.117.83) has joined #tryton | ||
2018-01-18 11:31 <csotelo> I just found how to do it on ir.property table, Sorry, wa a dumb question since I didnt see how to set it | ||
2018-01-18 11:34 <csotelo> pokoli, thanks a lot, I will be pendent on upgrade | ||
2018-01-18 11:38 <afibanez> pokoli: i can't create migration topics on discuss :( | ||
2018-01-18 11:41 <csotelo> I mean , when I do the upgrade to 4.4, I know now about the poperty table discusion :) | ||
2018-01-18 11:42 <pokoli> afibanez: just add a comment on the current one | ||
2018-01-18 11:43 <afibanez> pokoli: there is no "Migration from 3.6 to 3.8" topic | ||
2018-01-18 11:45 <pokoli> afibanez: indeed the migration was from 3.4 to 3.6: https://discuss.tryton.org/t/migration-from-3-4-to-3-6/17 | ||
2018-01-18 11:45 <pokoli> afibanez: and it's explained as: "Use pyson for fields that were evaluated using safe_eval" | ||
2018-01-18 11:56 -!- catonano_(~catonano@151.50.146.255) has joined #tryton | ||
2018-01-18 11:59 <afibanez> pokoli: it's not exactly the same. The condition in ir.trigger was Python in 3.6 too (https://bitbucket.org/tryton/trytond/src/dd324f6934ff59ffd8a2a737e84a38a61712a679/trytond/ir/trigger.py?at=3.6.19&fileviewer=file-view-default) | ||
2018-01-18 12:00 -!- JanGB(~jan@x59cc8ba1.dyn.telefonica.de) has joined #tryton | ||
2018-01-18 12:00 <afibanez> pokoli: and changed to pyson in 3.8: https://bitbucket.org/tryton/trytond/src/0a29a9dba7f56fbdef067772eea3f037934999c9/trytond/ir/trigger.py?at=3.8.0&fileviewer=file-view-default | ||
2018-01-18 12:01 -!- catonano(~catonano@151.50.146.255) has joined #tryton | ||
2018-01-18 12:04 -!- swayf(~swayf@ipbcc14f49.dynamic.kabel-deutschland.de) has joined #tryton | ||
2018-01-18 12:05 <pokoli> afibanez: on which changeset it was changed? | ||
2018-01-18 12:07 -!- JanGB1(~jan@ipservice-092-216-127-053.092.216.pools.vodafone-ip.de) has joined #tryton | ||
2018-01-18 12:07 <afibanez> pokoli: https://bitbucket.org/tryton/trytond/diff/trytond/ir/trigger.py?diff2=f86ece096c0c&at=default | ||
2018-01-18 12:07 -!- swayf(~swayf@ipbcc14f49.dynamic.kabel-deutschland.de) has joined #tryton | ||
2018-01-18 12:10 <pokoli> afibanez: ok, so this is the following changeset: http://hg.tryton.org/trytond/rev/f86ece096c0c | ||
2018-01-18 12:10 <pokoli> I will create the migration topic | ||
2018-01-18 12:10 <cedk> afibanez: this did not change the type, it was already a PYSON statement | ||
2018-01-18 12:10 <afibanez> pokoli: thank you! ;) | ||
2018-01-18 12:11 <cedk> pokoli: no, the migration was in 3.6 | ||
2018-01-18 12:11 <pokoli> cedk: ok, that I thought as tests where modified before 3.6 release | ||
2018-01-18 12:12 <pokoli> afibanez: so you have a 3.6 database with triggers working without pyson? | ||
2018-01-18 12:12 <cedk> pokoli: the changeset f86ece096c0c just avoid to use compile to validate a json | ||
2018-01-18 12:15 <afibanez> cedk: before this changeset, you could write pure python in ir.trigger.condition. Something like "self.id = 5 and self.type in (1, 2)" | ||
2018-01-18 12:16 <cedk> afibanez: it will be validated but not working | ||
2018-01-18 12:17 <afibanez> cedk: I have this working on 3.4 installation. In what point it changed? | ||
2018-01-18 12:18 <cedk> afibanez: in 8c3da23d1fb4 | ||
2018-01-18 12:18 <cedk> which is in 3.6 | ||
2018-01-18 12:21 <afibanez> cedk: ok, I see. So this is strage, because between 3.6 and 3.8 ir.trigger.condition was in a kind of limbo, explaining and checking for python but using pyson in eval time | ||
2018-01-18 12:24 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2018-01-18 12:25 <cedk> afibanez: a valid PYSON is a valid Python | ||
2018-01-18 12:37 <afibanez> cedk: ok that's True. So it worked always, and just had the description outdated | ||
2018-01-18 13:17 <andrespoliti> how can i get the list of ids of the selected records in a one2many field of a wizard view? | ||
2018-01-18 13:18 <cedk> andrespoliti: you can not | ||
2018-01-18 13:18 <cedk> andrespoliti: use a Many2Many | ||
2018-01-18 13:19 <cedk> which need to be filled | ||
2018-01-18 13:19 <andrespoliti> i'm filling it with a default_ method | ||
2018-01-18 13:20 <andrespoliti> and after i change the o2m to a m2m, how can i get the selected records? | ||
2018-01-18 13:32 -!- JanGB(~jan@x59cc8ba1.dyn.telefonica.de) has joined #tryton | ||
2018-01-18 13:36 -!- JanGB1(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton | ||
2018-01-18 13:36 <cedk> andrespoliti: you still can not, but you have the record put in the m2m | ||
2018-01-18 13:37 <andrespoliti> i should remove the records i don't want with the "-" button? | ||
2018-01-18 13:37 <cedk> andrespoliti: yes | ||
2018-01-18 13:38 <cedk> andrespoliti: but you can use the multiselection widget which is nicer for this case | ||
2018-01-18 13:39 <andrespoliti> ooh that's great | ||
2018-01-18 13:39 <andrespoliti> thank you | ||
2018-01-18 13:41 <cedk> andrespoliti: see an example in sale exception handler | ||
2018-01-18 13:49 -!- sisalp(~sisalpuse@ip39.ip-46-105-32.eu) has joined #tryton | ||
2018-01-18 14:03 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton | ||
2018-01-18 14:18 -!- lukio(~lukio@200.68.72.41) has joined #tryton | ||
2018-01-18 14:27 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton | ||
2018-01-18 14:45 -!- rpit(~rpit@p5B22B745.dip0.t-ipconnect.de) has joined #tryton | ||
2018-01-18 15:00 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton | ||
2018-01-18 15:11 -!- VlijmenFileer(~VlijmenFi@139.193.196.139) has joined #tryton | ||
2018-01-18 15:21 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton | ||
2018-01-18 15:35 -!- lukio(~lukio@200.68.72.41) has joined #tryton | ||
2018-01-18 15:37 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton | ||
2018-01-18 16:03 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton | ||
2018-01-18 16:13 -!- thaneor(~ldlc6@r179-24-114-61.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2018-01-18 16:30 -!- JanGB(~jan@x59cc8ba1.dyn.telefonica.de) has joined #tryton | ||
2018-01-18 16:35 -!- JanGB1(~jan@ipservice-092-216-127-053.092.216.pools.vodafone-ip.de) has joined #tryton | ||
2018-01-18 16:49 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton | ||
2018-01-18 17:13 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton | ||
2018-01-18 18:01 <_2cadz> Hi, how to delete/cancel a sale confirmed in error (it only contains service) ? | ||
2018-01-18 18:05 <cedk> _2cadz: you have to cancel all generated document and run the handle exception warning to not re-create the cancelled documents | ||
2018-01-18 18:08 -!- JanGB(~jan@ipservice-092-216-127-053.092.216.pools.vodafone-ip.de) has joined #tryton | ||
2018-01-18 18:17 <_2cadz> cedk: sorry, but which document ? i see nothing in Invoices or Shipements tabs ? | ||
2018-01-18 18:17 <cedk> _2cadz: ha indeed it is not yet processed | ||
2018-01-18 18:18 <cedk> _2cadz: so maybe you can still update with SQL to set cancel before the cron process the sale | ||
2018-01-18 18:19 <_2cadz> cedk: Just set the record to cancel by SQL ? | ||
2018-01-18 18:20 <cedk> _2cadz: yes or you can process it and cancel the documents | ||
2018-01-18 18:21 <_2cadz> cedk: ok i will try both solutions, thanks. | ||
2018-01-18 18:27 <_2cadz> cedk: to deepen the question, why a cron to handle sales confirmed? | ||
2018-01-18 18:33 <cedk> _2cadz: to confirm faster | ||
2018-01-18 18:37 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton | ||
2018-01-18 18:43 <_2cadz> I would like to use the scenarios to populate an existing base, is that possible ? | ||
2018-01-18 19:10 <cedk> _2cadz: yes you can run it with the doctest module | ||
2018-01-18 19:10 <cedk> _2cadz: http://hg.tryton.org/tryton-tips/file/tip/tips#l116 | ||
2018-01-18 19:14 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton | ||
2018-01-18 19:15 <andrespoliti> how can i set the value of the next view of a wizard from the transition method? | ||
2018-01-18 19:15 <andrespoliti> the value of a field of the next view* | ||
2018-01-18 19:19 <cedk> andrespoliti: with the get_defaults of the StateView: http://doc.tryton.org/4.6/trytond/doc/ref/wizard.html#trytond.wizard.StateView.get_defaults | ||
2018-01-18 19:19 <_2cadz> cedk: Yes, I saw this tips, thanks, I think I have a problem to load the config in my rst file : config = get_config() return none. | ||
2018-01-18 20:05 <andrespoliti> is there an example of how to use the get_defauls method of the StateView? | ||
2018-01-18 20:12 -!- mariomop(~quassel@host210.190-31-61.telecom.net.ar) has joined #tryton | ||
2018-01-18 20:31 -!- mariomop(~quassel@host210.190-31-61.telecom.net.ar) has joined #tryton | ||
2018-01-18 20:32 -!- _2cadz_(~2cadz@smtp.med-mag.com) has joined #tryton | ||
2018-01-18 20:37 -!- _2cadz(~2cadz@82-64-14-213.subs.proxad.net) has joined #tryton | ||
2018-01-18 21:15 -!- catonano(~user@151.50.159.183) has joined #tryton | ||
2018-01-18 22:00 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!