Re: [tryton-dev] Checking Server connection on a text-only installation

2017-12-05 Thread Nicolas Évrard
* Axel Braun  [2017-12-05 22:45 +0100]: 

Am Donnerstag, 30. November 2017 07:51:23 UTC+1 schrieb Nicolas Évrard:

* Axel Braun  [2017-11-30 06:39 +0100]:
>Morning,

Hello,

>I can access a server with a working Tryton installation remote per SSH - no
>GUI installed.
>Is there a way to check if connections to the server are accepted? means, Can I
>simulate the server connection from the commandline somehow? Proteus maybe?
>(connection check via telnet is not working...)

If the server is running and listening and if telnet does not work
then you can not reach the server and it's probably a network
configuration issue.


notry
telnet localhost 8000
on a working installation. You should get:

telnet localhost 8000

Trying ::1...

   ^^^
telnet tries to connect in IPv6 to localhost


telnet: connect to address ::1: Connection refused


He was not able to do it


Trying 127.0.0.1...

   ^
Now telnet is trying IPv4


Connected to localhost.


And the connection is successful.

That's why you were able to use curl from pokoli's answer.

--
Nicolas Évrard - B2CK SPRL
E-mail/Jabber: nicolas.evr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20171205223010.amukrdtuuc3lswu7%40localhost.localdomain.


Re: [tryton-dev] Checking Server connection on a text-only installation

2017-12-05 Thread Axel Braun
Am Donnerstag, 30. November 2017 09:21:13 UTC+1 schrieb Sergi Almacellas 
Abellana:
> El 30/11/17 a les 07:51, Nicolas Évrard ha escrit:
> > * Axel Braun  [2017-11-30 06:39 +0100]:
> >> Morning,
> > 
> > Hello,
> > 
> >> I can access a server with a working Tryton installation remote per 
> >> SSH - no
> >> GUI installed.
> >> Is there a way to check if connections to the server are accepted? 
> >> means, Can I
> >> simulate the server connection from the commandline somehow? Proteus 
> >> maybe?
> >> (connection check via telnet is not working...)
> > 
> > If the server is running and listening and if telnet does not work
> > then you can not reach the server and it's probably a network
> > configuration issue.
> You can also use curl to list all the databases with the following comand:
> 
> curl -H "Content-Type: application/json" -d '{"method": 
> "common.db.list", "params": []}' -X POST http://localhost:8000/
> 
> This will validate that the server is up and it can connect to the 
> database.
> 
> Hope it helps.

Yes...worksbut nothing I could remember out of my head :D
Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/e8702a7d-ee8c-4cb1-928c-fc3f0cc65f0e%40googlegroups.com.


Re: [tryton-dev] Checking Server connection on a text-only installation

2017-12-05 Thread Axel Braun
Am Donnerstag, 30. November 2017 07:51:23 UTC+1 schrieb Nicolas Évrard:
> * Axel Braun  [2017-11-30 06:39 +0100]: 
> >Morning,
> 
> Hello,
> 
> >I can access a server with a working Tryton installation remote per SSH - no
> >GUI installed.
> >Is there a way to check if connections to the server are accepted? means, 
> >Can I
> >simulate the server connection from the commandline somehow? Proteus maybe?
> >(connection check via telnet is not working...)
> 
> If the server is running and listening and if telnet does not work
> then you can not reach the server and it's probably a network
> configuration issue.

notry 
telnet localhost 8000
on a working installation. You should get:
> telnet localhost 8000
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/f62f67c1-21ac-4b51-ac91-e30cabe2893e%40googlegroups.com.


Re: [tryton] migrating modules from odoo 8 to tryton

2017-12-05 Thread Cédric Krier
Hi,

On 2017-12-05 09:30, Henri-Damien LAURENT wrote:
> Congratulations for the work you did securing a true open source ERP
> software, not to mention the hard work on unit testing, building a
> community, and so on.

Thanks.

> I am quite new to the community, but I see the community is growing
> and has some key features and developments.

Discussion about new features happen here:
https://discuss.tryton.org/c/feature

> I have also some work on odoo 8. And I am missing some really
> important features such as XLS reporting, or exports.

What is exactly missing? Tryton has CSV import/export from the client.
Also on the desktop client, you can copy the selected rows of any
list/tree and paste them in any spreadsheet software.

And for special case, it is possible to generate with Relatorio a ods
file using the report engine.

> Therefore I was wondering whether some modules migrations from odoo 8
> to tryton were possible, and if so, is there some guidelines for that
> ?

The concepts are still quite similar so it should not be difficult to
port some modules. But you must be careful about business models which
may have different structure or workflow.
Also I would recommend to ask about the feature you are going to port
because it may already exist in a different form.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
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/20171205192550.GU7109%40kei.


Re: [tryton] migrating modules from odoo 8 to tryton

2017-12-05 Thread Dominique Chabord
2017-12-05 18:30 GMT+01:00 Henri-Damien LAURENT :
> Dear all,
> Congratulations for the work you did securing a true open source ERP 
> software, not to mention the hard work on unit testing, building a community, 
> and so on.
> I am quite new to the community, but I see the community is growing and has 
> some key features and developments.
> I have also some work on odoo 8. And I am missing some really important 
> features such as XLS reporting, or exports. Therefore I was wondering whether 
> some modules migrations from odoo 8 to tryton were possible, and if so, is 
> there some guidelines for that ?


What doesn't work in native format ?


>
> Thanks a lot.
> --
> Henri-Damien LAURENT

-- 
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/CAHZrxK5u44G78q9D2_-BUOkzXtUYr67k%3DTrwN5gi%2B11byT0QmQ%40mail.gmail.com.


Re: [tryton] Open a record from button click

2017-12-05 Thread Cédric Krier
On 2017-12-04 13:15, Khurram Shahzad wrote:
> How can I open a record from button's click event in order to view/edit
> this record?

Have you considered to use a Many2One?

Otherwise you must use a wizard that return an action window with the
record id in res_id. You can find an example in CreateMove.do_open_ of
account module.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
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/20171205181239.GT7109%40kei.


[tryton] migrating modules from odoo 8 to tryton

2017-12-05 Thread Henri-Damien LAURENT
Dear all,
Congratulations for the work you did securing a true open source ERP software, 
not to mention the hard work on unit testing, building a community, and so on.
I am quite new to the community, but I see the community is growing and has 
some key features and developments.
I have also some work on odoo 8. And I am missing some really important 
features such as XLS reporting, or exports. Therefore I was wondering whether 
some modules migrations from odoo 8 to tryton were possible, and if so, is 
there some guidelines for that ?

Thanks a lot.
-- 
Henri-Damien LAURENT

-- 
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/b8fb4e85-cd4e-450f-80b0-badcc02e3604%40googlegroups.com.


Re: [tryton-es] Redefinir valores del campo type en party.identifier

2017-12-05 Thread Karla Stenger
El 4 de diciembre de 2017, 13:28, Fernando Sánchez 
escribió:

> Hola Karla
>
> Gracias por tu respuesta,
>
> Probé haciendo lo que indicas, pero sigue igual.
>
> Por alguna razón no se esta remplazando _fields con la lista de campos de
> la tabla sunat_tipodocid al llamar al método search.
>
​Investigué un poco más, y encontré que el campo _fields se agrega al
modelo en la funcion __post_setup__ [1] por lo que si la llamas desde
__setup__ es de esperar que no exista.

Entiendo que esto es, o bien una limitación para la funcion __setup__ que
no te permite filtrar por el campo 'active' o bien un bug.


Podrías por ejemplo eliminar el filtro para ver si así te funciona, quizás
considerar si es realmente necesario en este caso.


O quizás alguien que lo entienda mejor te pueda dar otro consejo de como
manejarlo.
 Por ejemplo, me pregunto si usar __post_setup__ en tu caso ayudaría.
​


Saludos,
Karla.​

​[1]​ - http://hg.tryton.org/trytond/file/4.6/trytond/model/model.py#l56
​


Aquí la definición de tipodocid:
>
> class TipoDocId(ModelSQL, ModelView):
> 'Tipo de documento de identidad sunat'
> __name__ = 'sunat.tipodocid'
>
> code = fields.Char(u'Código Tipo Documento Identidad', size=1,
> help=u'Tipo Documento Identidad - SUNAT: Tabla 02')
> name = fields.Char(u'Documento de Identidad', size=50, help=u'Nombre
> del Documento')
> active = fields.Boolean(u'Activo',help=u'Estado del registro')
> Aquí el __init__.py
>
> def register():
> Pool.register(
> Party,
> Address,
> Template,
> Product,
> TipoCdp,
> TipoMdp,
> TipoExisteSUNAT,
> Bank,
> *TipoDocId,*
> AduanaId,
> OperaStock,
> CatalogoExiste,
> Company,
> ExportPLEStart,
> ExportPLEResult,
> PaymentType,
> Currency,
> Rate,
> TraerTCStart,
> TraerTCResult,
> FiscalYear,
> Sale,
> Purchase,
> *PartyIdentifier, *
> module='liberorbis_peru_loc', type_='model')
> Pool.register(
> ExportPLE,
> TraerTC,
> module='liberorbis_peru_loc', type_='wizard')
>
> Seguiré dándole vueltas al asunto, si se te ocurre algo mas bienvenidos
> los aportes.
>
> Gracias otra vez.
>
> Fernando
>
> El 04/12/17 a las 10:10, Karla Stenger escribió:
>
>
>
> El 1 de diciembre de 2017, 10:32, Fernando Sánchez 
> escribió:
>
>> Gracias Sergi y Raimon por su pronta y clara respuesta.
>> Ya logre personalizar la selection, pero solo de forma estatica.
>> Al poblarla dinamicamente con registros de una tabla que contiene los
>> valores me lanza un error.
>> Aqui el codigo:
>>
>> class
>> ​​
>> PartyIdentifier(ModelSQL, ModelView):
>> 'Party Identifier'
>> __metaclass__ = PoolMeta
>> __name__ =
>> ​​
>> 'party.identifier'
>>
>> @classmethod
>> def __setup__(cls):
>> super(PartyIdentifier, cls).__setup__()
>> tiposdocid = cls.get_types()
>> for tipos in tiposdocid:
>> if tipos not in cls.type.selection:
>> cls.type.selection.append(tipos)
>>
>> @classmethod
>> def get_types(cls):
>> #return [('0', 'Otros tipos de documentos'),('6', 'RUC'),('1',
>> 'DNI'),('4', 'C. EXT.'),('7', 'Pasaporte'),('A',u'Cédula Diplomática de
>> Identidad'),]
>> pool = Pool()
>> Type = pool.get('sunat.tipodocid')
>> types = Type.search([('active','=','True')])
>> return [(x.code, x.name) for x in types]
>>
>> El trace del error:
>> Traceback (most recent call last):
>>   File "/home/nando/.virtualenvs/liberorbis46/bin/trytond-admin", line
>> 21, in 
>> admin.run(options)
>>   File "/home/nando/.virtualenvs/liberorbis46/local/lib/python2.7/
>> site-packages/trytond/admin.py", line 54, in run
>> installdeps=options.installdeps)
>>   File "/home/nando/.virtualenvs/liberorbis46/local/lib/python2.7/
>> site-packages/trytond/pool.py", line 155, in init
>> lang=lang, installdeps=installdeps)
>>   File "/home/nando/.virtualenvs/liberorbis46/local/lib/python2.7/
>> site-packages/trytond/modules/__init__.py", line 462, in load_modules
>> _load_modules(update)
>>   File "/home/nando/.virtualenvs/liberorbis46/local/lib/python2.7/
>> site-packages/trytond/modules/__init__.py", line 432, in _load_modules
>> load_module_graph(graph, pool, update, lang)
>>   File "/home/nando/.virtualenvs/liberorbis46/local/lib/python2.7/
>> site-packages/trytond/modules/__init__.py", line 229, in
>> load_module_graph
>> pool.setup(classes)
>>   File "/home/nando/.virtualenvs/liberorbis46/local/lib/python2.7/
>> site-packages/trytond/pool.py", line 227, in setup
>> cls.__setup__()
>>   File "/home/nando/.virtualenvs/liberorbis46/local/lib/python2.7/
>> site-packages/trytond/modules/liberorbis_peru_loc/party.py", line 66, in
>> __setup__
>> tiposdocid = cls.get_types()
>>   File 

Re: [tryton-es] Informe Sumas y Saldos de account_jasper_reports con 3 o 4 dígitos

2017-12-05 Thread Àngel Fernández
Sergi, el problema es con las vistas, que no son forzadas por el modulo
account_code_digits (solo fuerza el ultimo nivel)
Como ejemplo, lo que queremos es que dado un plan:
1
·10
··101
···101001
··102
···1021
102101

Si imprimo Sumas y saldos a 3 digitos, me saldria:
101
102
De forma agrupada, y esto está OK.

Pero si imprimo a 4 digitos, me saldria:
1021
Y la información de 101 se perderia y no saldria en el informe.

Nuestra propuesta es que en el informe salgan tambien cuentas con menos
digitos si no tienen hijos con el número de digitos que hemos decidido.
De esta forma, con 4 digitos quedaria:
101
1021


El dt., 5 de des. 2017 a les 10:58, Àngel Àlvarez Serra (<
angel.alvarez.se...@gmail.com>) va escriure:

> 2017-12-05 10:31 GMT+01:00 Sergi Almacellas Abellana :
>
>> Creo que tu problema se soluciona con el modulo account_code_digits que
>> te permite crear el plan de cuentas con un numero fijo de digitos en las
>> cuentas raiz. Normalmente 6,7,8 o incluso 10.
>>
>> Si creas el plan de cuentas de esta forma, los de 4 o 5 digitos actuales
>> se sacaria utilizando el numero de digitos con el que has creado el plan de
>> cuentas.
>>
>>
> No solo eso, si no que el plan contable deberia tener en todas las cuentas
> los 4 dígitos para evitar que el usuario las deba crear.
>
>
>> Un saludo,
>>
>>
>> On 4 de desembre de 2017 17.54.31 CET, "Àngel Fernández" <
>> an...@calidae.com> wrote:
>>>
>>> Hola a todos!
>>> Alguien usa el modulo de tryton spain account_jasper_reports? Nos
>>> encontramos con que el imprimir el informe de sumas y saldos, que te
>>> permite escoger el número de digitos para agrupar, el funcionamiento no es
>>> el esperado.
>>> El plan contable español tiene agrupaciones a 3 y 4 digitos. Cuando
>>> imprimes agrupado a 3 todo bien, pero cuando imprimes agrupado a 4 sólo te
>>> salen las que tienen 4 digitos... y desde nuestro punto de vista las de 3
>>> digitos que no tienen por debajo subgrupos de 4 también deberian salir.
>>>
>>
> +1
>
>
>> Los demás creeis tambien que deberia funcionar así o somos los únicos? La
>>> pregunta es por saber si lo hacemos para nosotros o hacemos PR
>>>
>>>
> Por nosotros si hacemos un PR lo aceptamos.
>
>
>
>>
>>> www.calidae.com 
>>> Tel +34 93 865 44 33 <938%2065%2044%2033>
>>> Font i Boet, 10 -
>>> 
>>>
>>> 08140
>>> - Caldes de Montbui
>>> 
>>>
>>> Aquest correu és confidencial, llegiu-ne l' advertiment legal
>>> 
>>> Este correo es confidencial, lea la advertencia legal
>>> 
>>> This is a confidential email, please read the legal disclaimer
>>> 
>>>
>>
>> --
>> Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi
>> brevedad.
>>
>

-- 

www.calidae.com 
Tel +34 93 865 44 33
Font i Boet, 10 - 08140 - Caldes de Montbui

Aquest correu és confidencial, llegiu-ne l' advertiment legal 

Este correo es confidencial, lea la advertencia legal 

This is a confidential email, please read the legal disclaimer 



Re: [tryton-es] Informe Sumas y Saldos de account_jasper_reports con 3 o 4 dígitos

2017-12-05 Thread Àngel Àlvarez Serra
2017-12-05 10:31 GMT+01:00 Sergi Almacellas Abellana :

> Creo que tu problema se soluciona con el modulo account_code_digits que te
> permite crear el plan de cuentas con un numero fijo de digitos en las
> cuentas raiz. Normalmente 6,7,8 o incluso 10.
>
> Si creas el plan de cuentas de esta forma, los de 4 o 5 digitos actuales
> se sacaria utilizando el numero de digitos con el que has creado el plan de
> cuentas.
>
>
No solo eso, si no que el plan contable deberia tener en todas las cuentas
los 4 dígitos para evitar que el usuario las deba crear.


> Un saludo,
>
>
> On 4 de desembre de 2017 17.54.31 CET, "Àngel Fernández" <
> an...@calidae.com> wrote:
>>
>> Hola a todos!
>> Alguien usa el modulo de tryton spain account_jasper_reports? Nos
>> encontramos con que el imprimir el informe de sumas y saldos, que te
>> permite escoger el número de digitos para agrupar, el funcionamiento no es
>> el esperado.
>> El plan contable español tiene agrupaciones a 3 y 4 digitos. Cuando
>> imprimes agrupado a 3 todo bien, pero cuando imprimes agrupado a 4 sólo te
>> salen las que tienen 4 digitos... y desde nuestro punto de vista las de 3
>> digitos que no tienen por debajo subgrupos de 4 también deberian salir.
>>
>
+1


> Los demás creeis tambien que deberia funcionar así o somos los únicos? La
>> pregunta es por saber si lo hacemos para nosotros o hacemos PR
>>
>>
Por nosotros si hacemos un PR lo aceptamos.



>
>> www.calidae.com 
>> Tel +34 93 865 44 33 <938%2065%2044%2033>
>> Font i Boet, 10 -
>> 
>>  08140 - Caldes de Montbui
>> 
>>
>> Aquest correu és confidencial, llegiu-ne l' advertiment legal
>> 
>> Este correo es confidencial, lea la advertencia legal
>> 
>> This is a confidential email, please read the legal disclaimer
>> 
>>
>
> --
> Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi
> brevedad.
>


Re: [tryton-es] Informe Sumas y Saldos de account_jasper_reports con 3 o 4 dígitos

2017-12-05 Thread Sergi Almacellas Abellana
Creo que tu problema se soluciona con el modulo account_code_digits que te 
permite crear el plan de cuentas con un numero fijo de digitos en las cuentas 
raiz. Normalmente 6,7,8 o incluso 10. 

Si creas el plan de cuentas de esta forma, los de 4 o 5 digitos actuales se 
sacaria utilizando el numero de digitos con el que has creado el plan de 
cuentas.

Un saludo,

On 4 de desembre de 2017 17.54.31 CET, "Àngel Fernández"  
wrote:
>Hola a todos!
>Alguien usa el modulo de tryton spain account_jasper_reports? Nos 
>encontramos con que el imprimir el informe de sumas y saldos, que te 
>permite escoger el número de digitos para agrupar, el funcionamiento no
>es 
>el esperado.
>El plan contable español tiene agrupaciones a 3 y 4 digitos. Cuando 
>imprimes agrupado a 3 todo bien, pero cuando imprimes agrupado a 4 sólo
>te 
>salen las que tienen 4 digitos... y desde nuestro punto de vista las de
>3 
>digitos que no tienen por debajo subgrupos de 4 también deberian salir.
>Los demás creeis tambien que deberia funcionar así o somos los únicos?
>La 
>pregunta es por saber si lo hacemos para nosotros o hacemos PR
>
>-- 
>
>www.calidae.com 
>Tel +34 93 865 44 33
>Font i Boet, 10 - 08140 - Caldes de Montbui
>
>Aquest correu és confidencial, llegiu-ne l' advertiment legal 
>
>Este correo es confidencial, lea la advertencia legal 
>
>This is a confidential email, please read the legal disclaimer 
>

-- 
Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi 
brevedad.