IRC logs of #tryton for Tuesday, 2017-07-25

chat.freenode.net #tryton log beginning Tue Jul 25 00:00:01 CEST 2017
2017-07-25 00:20 -!- kstenger(~karla@r167-56-243-148.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-07-25 01:41 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-07-25 02:07 -!- kstenger1(~karla@r186-54-21-85.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-07-25 03:36 -!- thaneor(~ldlc6@179.26.115.141) has joined #tryton
2017-07-25 07:00 -!- JanGB(~jan@ipservice-092-208-133-033.092.208.pools.vodafone-ip.de) has joined #tryton
2017-07-25 08:16 -!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton
2017-07-25 08:42 -!- rpit(~rpit@aftr-37-24-145-204.unity-media.net) has joined #tryton
2017-07-25 09:10 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-07-25 09:24 -!- JanGB(~jan@ipservice-092-208-133-033.092.208.pools.vodafone-ip.de) has joined #tryton
2017-07-25 10:14 -!- thaneor(~ldlc6@179.26.115.141) has joined #tryton
2017-07-25 10:17 -!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton
2017-07-25 10:41 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-07-25 11:23 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton
2017-07-25 13:04 -!- mariomop(~quassel@181.91.211.190) has joined #tryton
2017-07-25 13:39 <jcm> hi, I'm trying to understand product_price_list (that has no doc dir)
2017-07-25 13:39 <jcm> why does PriceList model not have a __register__ method?
2017-07-25 13:39 <jcm> whereas PriceListLine has one
2017-07-25 13:50 <cedk> jcm: it is for customization of the register process
2017-07-25 13:52 <pokoli> jcm: migration from older versions are included on the __register__ method
2017-07-25 13:57 <jcm> thks, it' necessary only to customize, registrations occurs automatically
2017-07-25 14:23 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-07-25 15:10 -!- csotelo(~csotelo@179.43.97.56) has joined #tryton
2017-07-25 15:39 -!- thaneor(~ldlc6@r179-24-115-25.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-07-25 16:04 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 16:23 -!- kstenger(~karla@r190-133-121-97.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-07-25 17:06 <jcm> me agin: always stuck on my module updating for 4.4. How can I debug a module? some fields should be created but after trytond-admin -u my_module I don't see them in postgresql table
2017-07-25 17:07 <jcm> is there a tutorial or a paid course to develop modules?
2017-07-25 17:11 <cedk> jcm: I guess the model is not registered in the Pool
2017-07-25 17:16 <kstenger> jcm: AFAIK there is no tutorial written yet for the 4.4 version, however learning the basics on a not too old version will help you through, for instance take a look at http://tryton-documentation.readthedocs.io/en/latest/developer_guide/example_library_1.html and http://downloads.tryton.org/TUL2014/crash-course.pdf
2017-07-25 17:16 <kstenger> jcm: also, any module that you can find is a good example
2017-07-25 17:20 <jcm> kstenger: thks, I'm studying modules to understand, will try the links you provided
2017-07-25 17:20 <jcm> cedk: should I register a module even when extending an existing one?
2017-07-25 17:21 <cedk> jcm: what do you name "module"?
2017-07-25 17:22 <jcm> apologies, Model
2017-07-25 17:22 <jcm> I extend Sale adding a field
2017-07-25 17:24 <cedk> jcm: yes, the extending class must be register in the Pool
2017-07-25 17:26 <jcm> cedk: in sale_advance_payment module, the Sale class has no registering: it adds three fields (sale.py line 286)
2017-07-25 17:28 <cedk> jcm: it is registered in __init__py line 16
2017-07-25 17:32 <jcm> cedk: thks, what is "registring" concept was not clear for me
2017-07-25 17:34 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 17:35 <cedk> jcm: trytond has a pool with all the pieces of class that are used on startup to create the actual classes
2017-07-25 17:40 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 17:43 -!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton
2017-07-25 18:19 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-07-25 18:20 -!- Xevi(~xevi@197.123.17.95.dynamic.jazztel.es) has joined #tryton
2017-07-25 18:24 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 18:36 -!- Xevi(~xevi@197.123.17.95.dynamic.jazztel.es) has joined #tryton
2017-07-25 18:59 -!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton
2017-07-25 19:23 <Xevi> Hi, I'm creating a simple module for tryton and I'm geting this error and I'm not able to understand why
2017-07-25 19:23 <Xevi> ERROR trytond.ir.ui.view Invalid XML view proxies.proxy:
2017-07-25 19:23 <Xevi> <string>:2:0:ERROR:RELAXNGV:RELAXNG_ERR_INVALIDATTR: Invalid attribute string for element form
2017-07-25 19:23 <Xevi> <?xml version="1.0"?>
2017-07-25 19:23 <Xevi> <form string="Proxy">
2017-07-25 19:23 <Xevi> <label name="ip"/>
2017-07-25 19:23 <Xevi> <field name="ip"/>
2017-07-25 19:23 <Xevi> </form>
2017-07-25 19:24 <kstenger> Xevi: use a pastebin service please
2017-07-25 19:24 <Xevi> sorry
2017-07-25 19:25 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 19:25 <Xevi> This is the error https://pastebin.com/8sQFsYuZ
2017-07-25 19:26 <kstenger> Xevi: the "string" attribute of form was removed IIRC for version 4.4
2017-07-25 19:27 <Xevi> kstenger: from tree too?
2017-07-25 19:28 <Xevi> I'm following a slides to create the module so I supose that they are outdated
2017-07-25 19:28 <kstenger> Xevi: yes, it was also removed
2017-07-25 19:28 <kstenger> Xevi: yes, sadly there are no tutorials updated to 4.4 for now
2017-07-25 19:29 <Xevi> Thank you kstenger
2017-07-25 19:29 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 19:29 <Xevi> I'm new with tryton and somtimes I try to follow others modules and are outdated
2017-07-25 19:30 <kstenger> Xevi: look for the module version at tryton.cfg
2017-07-25 19:31 <Xevi> on the tryton.cfg the version refeers to the module version or the tryton version?
2017-07-25 19:31 <kstenger> Xevi: tryton version
2017-07-25 19:33 <Xevi> ok
2017-07-25 19:52 -!- JanGB(~jan@ipservice-092-208-133-033.092.208.pools.vodafone-ip.de) has joined #tryton
2017-07-25 20:02 -!- csotelo(~csotelo@179.43.97.56) has joined #tryton
2017-07-25 22:00 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton
2017-07-25 22:57 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 23:02 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton
2017-07-25 23:37 <jcm> I don't find in the doc how to refactor when this warning appears: DeprecationWarning: on_change argument is deprecated, use the depends decorator
2017-07-25 23:37 <jcm> it's for a on_change named value in field declaration
2017-07-25 23:37 <jcm> http://doc.tryton.org/4.4/trytond/doc/ref/models/fields.html#trytond.model.fields.Field.on_change
2017-07-25 23:39 <jcm> @depends foo is not explained either: does it mean the next function is called when foo value changes?
2017-07-25 23:44 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-07-25 23:56 <jcm> anwering to myself: found here http://doc.tryton.org/4.4/trytond/doc/ref/models/fields.html#id1

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