| chat.freenode.net #tryton-fr log beginning Tue 24 Mar 2020 12:03:01 AM CET | ||
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton-fr | 00:20 | |
| -!- mrichez(~Maxime@2a02:a03f:4647:5600:4378:6ed6:aee7:54c0) has joined #tryton-fr | 07:08 | |
| -!- mrichez(~Maxime@2a02:a03f:4689:f200:299c:1bdb:9a6d:e07f) has joined #tryton-fr | 08:10 | |
| -!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton-fr | 08:57 | |
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton-fr | 08:59 | |
| -!- Sid(~Thunderbi@2a01:e34:ed05:f400:c7ca:b4c:e5f6:b9d2) has joined #tryton-fr | 09:13 | |
| -!- thaneor(~ldlc6@r186-54-248-213.dialup.adsl.anteldata.net.uy) has joined #tryton-fr | 09:44 | |
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton-fr | 12:37 | |
| -!- amprxc(b97aa1f7@gateway/web/cgi-irc/kiwiirc.com/ip.185.122.161.247) has joined #tryton-fr | 13:51 | |
| amprxc | Bonjour, je souhaite actuellement ajouter un champ many2many? J'obtiens l'erreur : AssertionError: <class 'trytond.modules.entity.entity.MyClassName'> has no docstring | 13:52 |
|---|---|---|
| amprxc | Que signifie l'erreur "has no docstring" ? | 13:52 |
| amprxc | Merci | 13:53 |
| mrichez | Bonjour, possibilité d'avoir ton code dans un pastebin pour comprendre ? | 14:21 |
| mrichez | souvent le docstring est en dessous du nom de la classe. C'est une chaine de caractères entre simple quotes qui reprend le nom de la classe de manière lisible... ex.: 'Supplier Quotation' | 14:24 |
| mrichez | exemple : https://hg.tryton.org/modules/sale_amendment/file/tip/sale.py#l173 | 14:24 |
| amprxc | https://pastebin.com/Ttr5snZG | 14:30 |
| amprxc | aaaah je vois | 14:30 |
| amprxc | j'ai mis mon commentaire de ma classe entre quotes et j'ai l'impression que le problème est réglé | 14:31 |
| amprxc | mais ça ne fonctionne toujours pas très bien. Dans l'interface web, le module ne charge pas et je n'ai aucune erreur dans mes logs tryton | 14:33 |
| amprxc | mrichez aurais-tu un exemple concret de l'utilisation d'un many2many ? | 14:40 |
| amprxc | un peu comme sur le lien que tu m'as passé | 14:40 |
| mrichez | https://hg.tryton.org/modules/product/file/tip/product.py#l73 | 14:43 |
| mrichez | le code source est la meilleure documentation | 14:43 |
| mrichez | faut créer une classe intermédiaire pour un many2many... ex: https://hg.tryton.org/modules/product/file/tip/product.py#l625 | 14:44 |
| amprxc | Merci ! Jusqu'à maintenant j'utilisais ça : https://github.com/coopengo/tryton-training/wiki/5.0-step2 | 14:44 |
| amprxc | je regarde ce que tu m'as passé | 14:45 |
| mrichez | très bon training de coopengo | 14:45 |
| -!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton-fr | 16:51 | |
| -!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton-fr | 16:51 | |
| -!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton-fr | 17:39 | |
| -!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton-fr | 17:57 | |
| -!- thaneor1(~ldlc6@r186-54-248-190.dialup.adsl.anteldata.net.uy) has joined #tryton-fr | 21:47 | |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!