Creating a module

82 views
Skip to first unread message

John

unread,
May 25, 2018, 3:11:28 AM5/25/18
to tryton
Hi,

I have been following this example guide on how to create my own module:
http://tryton-documentation.readthedocs.io/en/latest/developer_guide/example_library_1.html

However, when I get to the last step, where I am supposed to insert the module into the database using

TRYTOND_HOME/trytond/bin/trytond -d NAME_OF_THE_DATABASE -i MODULE_NAME

I get the following error:

trytond: error: unrecognized arguments: -i MODULE_NAME

(MODULE_NAME is replaced with the actual module name)

Can anyone tell me what I am doing wrong?

Thank you for your time,

Sergi Almacellas Abellana

unread,
May 25, 2018, 5:18:12 AM5/25/18
to try...@googlegroups.com
El 23/05/18 a les 20:12, John ha escrit:
> Hi,

Hi John,
>
> I have been following this example guide on how to create my own module:
> http://tryton-documentation.readthedocs.io/en/latest/developer_guide/example_library_1.html

This guide is a little bit outdated. It is based on 3.2 series and the
latest stable series is 4.8 series.
>
> However, when I get to the last step, where I am supposed to insert the module into the database using
>
> TRYTOND_HOME/trytond/bin/trytond -d NAME_OF_THE_DATABASE -i MODULE_NAME
>
> I get the following error:
>
> trytond: error: unrecognized arguments: -i MODULE_NAME
>
> (MODULE_NAME is replaced with the actual module name)
>
> Can anyone tell me what I am doing wrong?

Probably you have a newer version of trytond. You can check your trytond
version with trytond --version

On newer versions we have `trytond-admin` comandline to manage modules.
You can see the full commands available with:

trytond-admin --help

There is an option to refresh the database list which is what you are
looking for at this step.

Hope it helps.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Carlos Gálvez

unread,
May 25, 2018, 8:35:06 AM5/25/18
to try...@googlegroups.com
Hi John,

As Sergi says, you are probably using a trytond version later than the one described in the guide.

To register a single module, you could use the argument -u instead of the -i argument, indefinitely if you will use trytond or trytond-admin.

I hope this helps you!

Regards,

-------------------------------------------

Advertència Legal: aquest missatge i, en el seu cas, els fitxers adjunts poden contenir informació privada
i/o confidencial. Si vostè no és el destinatari del missatge, si us plau, elimini i notifiqui'ns-ho
immediatament, no el reenvii ni copi el seu contingut. Si us plau, avisi'ns d'immediat si vostè o la seva
empresa no admeten la utilització del correu electrònic via internet per a missatges d'aquest tipus.
NaN Projectes de Programari Lliure, S.L. no garanteix la confidencialitat, integritat, rapidesa o correcte
recepció del present correu, ni es responsabilitza de possibles perjudicis derivats de la captura,
incorporacions de virus o qualsevol altre manipulació efectuada per tercers. No s'autoritza la utilització
amb finalitats comercials o per a la seva incorporació a fitxers automatitzats de les direccions de
l'emissor o del destinatari. La informació continguda en aquest missatge de correu electrònic és confidencial i pot revestir el caràcter
de reservada. Està dirigida exclusivament a la persona destinatària. L'accés o qualsevol us per part de
qualsevol altra persona, no estan autoritzats i poden esdevenir il·legals. Si vostè no és la persona
destinatària, li preguem que procedeixi a esborrar-lo i a no fer-ne cap us ni transmetre'l a tercers.
Si ho considera oportú pot avisar al remitent que el missatge ha arribat a un destí no desitjat.
Advertencia Legal: este mensaje y, en su caso, los ficheros anexos pueden contener información privilegiada
y/o confidencial. Si usted no es el destinatario del mensaje, por favor, bórrelo y notifíquenoslo
inmediatamente, no lo reenvíe ni copie su contenido. Por favor, avísenos de inmediato si usted o su empresa
no admite la utilización del correo electrónico vía internet para mensajes de este tipo. Nan Projectes de
Programari Lliure, S.L. no garantiza la confidencialidad, integridad, rapidez o correcta recepción del
presente correo, ni se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de
virus o cualesquiera otras manipulaciones efectuadas por terceros. No se autoriza la utilización con fines
comerciales o para su incorporación a ficheros automatizados de las direcciones del emisor o del
destinatario. La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter
de reservada. Está dirigida exclusivamente a la persona destinataria. El acceso o cualquier uso por parte
de cualquier otra persona, no están autorizados y pueden llegar a ser ilegales. Si usted no es la persona
destinataria, le rogamos que proceda a borrarlo y no hacer ningún uso de él ni transmitirlo a terceros.
Si lo considera oportuno puede avisar al remitente que el mensaje ha llegado a un destino no deseado.


--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/1045c65d-82a4-8468-c5fb-6aa207d7b05e%40koolpi.com.

Cédric Krier

unread,
May 26, 2018, 4:20:07 AM5/26/18
to try...@googlegroups.com
On 2018-05-25 13:47, Carlos Gálvez wrote:
> To register a single module, you could use the argument -u instead of the
> -i argument, indefinitely if you will use trytond or trytond-admin.

The '-i' option has been removed for some times now. It has been merged
in the '-u' option.


PS: Please do not top-post on this mailing list and also avoid your
huge signature which has no meaning on mailing list, see
http://groups.tryton.org/netiquette
--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages