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

chat.freenode.net #tryton log beginning Tue Jul 25 00:00:01 CEST 2017
-!- kstenger(~karla@r167-56-243-148.dialup.adsl.anteldata.net.uy) has joined #tryton00:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:41
-!- kstenger1(~karla@r186-54-21-85.dialup.adsl.anteldata.net.uy) has joined #tryton02:07
-!- thaneor(~ldlc6@179.26.115.141) has joined #tryton03:36
-!- JanGB(~jan@ipservice-092-208-133-033.092.208.pools.vodafone-ip.de) has joined #tryton07:00
-!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton08:16
-!- rpit(~rpit@aftr-37-24-145-204.unity-media.net) has joined #tryton08:42
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:10
-!- JanGB(~jan@ipservice-092-208-133-033.092.208.pools.vodafone-ip.de) has joined #tryton09:24
-!- thaneor(~ldlc6@179.26.115.141) has joined #tryton10:14
-!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton10:17
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:41
-!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton11:23
-!- mariomop(~quassel@181.91.211.190) has joined #tryton13:04
jcmhi, I'm trying to understand product_price_list (that has no doc dir)13:39
jcmwhy does PriceList model not have a __register__ method?13:39
jcmwhereas PriceListLine has one13:39
cedkjcm: it is for customization of the register process13:50
pokolijcm: migration from older versions are included on the __register__ method13:52
jcmthks, it' necessary only to customize, registrations occurs automatically13:57
-!- smarro(~sebastian@181.16.7.104) has joined #tryton14:23
-!- csotelo(~csotelo@179.43.97.56) has joined #tryton15:10
-!- thaneor(~ldlc6@r179-24-115-25.dialup.adsl.anteldata.net.uy) has joined #tryton15:39
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton16:04
-!- kstenger(~karla@r190-133-121-97.dialup.adsl.anteldata.net.uy) has joined #tryton16:23
jcmme 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 table17:06
jcmis there a tutorial or a paid course to develop modules?17:07
cedkjcm: I guess the model is not registered in the Pool17:11
kstengerjcm: 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.pdf17:16
kstengerjcm: also, any module that you can find is a good example17:16
jcmkstenger: thks, I'm studying modules to understand, will try the links you provided17:20
jcmcedk: should I register a module even when extending an existing one?17:20
cedkjcm: what do you name "module"?17:21
jcmapologies, Model17:22
jcmI extend Sale adding a field17:22
cedkjcm: yes, the extending class must be register in the Pool17:24
jcmcedk: in sale_advance_payment module, the Sale class has no registering: it adds three fields (sale.py line 286)17:26
cedkjcm: it is registered in __init__py line 1617:28
jcmcedk: thks, what is "registring" concept was not clear for me17:32
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton17:34
cedkjcm: trytond has a pool with all the pieces of class that are used on startup to create the actual classes17:35
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton17:40
-!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton17:43
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:19
-!- Xevi(~xevi@197.123.17.95.dynamic.jazztel.es) has joined #tryton18:20
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton18:24
-!- Xevi(~xevi@197.123.17.95.dynamic.jazztel.es) has joined #tryton18:36
-!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton18:59
XeviHi, I'm creating a simple module for tryton and I'm geting this error  and I'm not able to understand why19:23
Xevi ERROR trytond.ir.ui.view Invalid XML view proxies.proxy:19:23
Xevi<string>:2:0:ERROR:RELAXNGV:RELAXNG_ERR_INVALIDATTR: Invalid attribute string for element form19:23
Xevi<?xml version="1.0"?>19:23
Xevi<form string="Proxy">19:23
Xevi    <label name="ip"/>19:23
Xevi    <field name="ip"/>19:23
Xevi</form>19:23
kstengerXevi: use a pastebin service please19:24
Xevisorry19:24
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton19:25
XeviThis is the error https://pastebin.com/8sQFsYuZ19:25
kstengerXevi: the "string" attribute of form was removed IIRC for version 4.419:26
Xevikstenger: from tree too?19:27
XeviI'm following a slides to create the module so I supose that they are outdated19:28
kstengerXevi: yes, it was also removed19:28
kstengerXevi: yes, sadly there are no tutorials updated to 4.4 for now19:28
XeviThank you kstenger19:29
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton19:29
XeviI'm new with tryton and somtimes I try to follow others modules and are outdated19:29
kstengerXevi: look for the module version at tryton.cfg19:30
Xevion the tryton.cfg the version refeers to the module version or the tryton version?19:31
kstengerXevi: tryton version19:31
Xeviok19:33
-!- JanGB(~jan@ipservice-092-208-133-033.092.208.pools.vodafone-ip.de) has joined #tryton19:52
-!- csotelo(~csotelo@179.43.97.56) has joined #tryton20:02
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:00
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton22:57
-!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton23:02
jcmI don't find in the doc how to refactor when this warning appears: DeprecationWarning: on_change argument is deprecated, use the depends decorator23:37
jcmit's for a on_change named value in field declaration23:37
jcmhttp://doc.tryton.org/4.4/trytond/doc/ref/models/fields.html#trytond.model.fields.Field.on_change23:37
jcm@depends foo is not explained either: does it mean the next function is called when foo value changes?23:39
-!- smarro(~sebastian@181.16.7.104) has joined #tryton23:44
jcmanwering to myself: found here http://doc.tryton.org/4.4/trytond/doc/ref/models/fields.html#id123:56

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!