Re: [tryton-es] Configuración de las font en el cliente de tryton via theme.css
On 21/12/18 21:50, Favio Dutria wrote: > Buenas tardes. > Hola Favio, > Estoy buscando info sobre las configuraciones custom de los tamaños de las > fonts para el cliente vía el theme.css. > > Alguien me puede decir cual es el parámetro para el tamaño de las fonts de > los títulos de las ventanas, de los títulos de las solapadas y de los botones? > > Solo he encontrado el valor font_size que modifica las fonts de los textos. Esta lista ya no se utiliza, puedes utilizar el foro de discusión internacional para publicar ahí tus dudas. Lo puedes encontrar en la siguiente dirección: https://discuss.tryton.org Aunque la lengua oficial es el ingles, esta activado el sistema de traducción automàtico por lo que puedes publicar en castellano y los otros miembros de la comunidad veran tus textos en su propio idioma. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Templates creation on tests standarized
On 16/11/18 11:41, Javier Uribe wrote: > Hello, I've noticed that we have to create products very often on scenario > testing. I would like to propose a create_template method on > product/tests/tools.py that would simplify this, so the scenarios that > created templates were cleaner and more modular. I think think it will be very usefull as depending on the scenario you will use diferent parameters: Use Services, Goods, With Diferent unit prices, With Account Categories, without them, so we will end up with a create_template method that will accept all the fields of the template. In this case it's simpler to create the template directly. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/4426889c-6cf8-a503-8309-23778f4f54bc%40koolpi.com.
Re: [tryton] Upgrade documentation
On 14/11/18 11:53, Axel Braun wrote: > Hi, > > does anyone know where the upgrade documentation (e.g. 4.6 -> 4.8 ) of Tryton > went to? I cant find it on the website nor in the source package (of 4.8) All the migration notes are on the migration category of the discuss forum: https://discuss.tryton.org/c/migration Hope it helps! -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/49565d92-5f7c-0eac-94a2-167b93d6d367%40koolpi.com.
Re: [tryton-es] Mermas en producción
On 7/11/18 0:03, Fernando Sánchez wrote: > Saludos Comunitarios, Hola Fernando, > > Me gustaría saber de los que implementaron el modulo de producción, como > se ha manejado el tema de las mermas. Alguna guía o lineamiento para su > manejo. > > Concretamente, tu puedes hacer una lista de materiales con los cuales se > deben producir por ejemplo 100 unidades de un producto determinado, pero > al finalizar el proceso real solo se obtuvieron 95, y hubieron perdida > de material por algunos errores en la fabricación. Como se registra en > el sistema ese diferencial en stock y en costo? La lista de material es solo una estimación de forma que una vez tengas la producción en curso puedes modificar las cantidades de salida para reflejar que sólo se obtuvieron 95 en vez de 100. Esto hará que los costes de los materiales se repartan entre 95 unidades en vez de los 100 previstos, de forma que el precio unitario de esa producción serà superior a una producción sin mermas. Espero que te sirva de ayuda. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Configurar nueva empres y bd en tryton 4.8 o 5.0 en win 10
On 19/10/18 19:16, J S wrote: > Buenas tardes, soy nuevo en le tema de tryton, instale la version 4.8 y > luego la 5.0, de escritorio en win 10, pero no logro poder crear una > nueva base de datos y una nueva empresa, no me aparece esa opcion en mi > menu. > que podra estar pasando, agradezco ayuda por favor. > gracias. El cliente de escritorio se debe conectar a un servidor para que funcione. Debes instalar un servidor y crear la base de datos en el. Puedes utilizar la imagen de docker para crear un servidor de forma ràpida en windows 10. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Campo Many2Many no trabaja con el required=True
On 10/17/18 5:54 PM, Maicoly Guerrero wrote: > Hola amigo@s, tengo un campo Many2Many que es requerido, pero en la > vista ésta no se valida como tal. > > 1er cambio --> al comienzo lo tenía así: > > periods = fields.Many2Many('purchase.pac.line.period','line','period', > 'Periods', required=True, states=_STATESLINES, depends=DEPENDSLINES) > > 2do cambio --> luego de esta manera pero igual no se valida: > periods = fields.Many2Many('purchase.pac.line.period','line','period', > 'Periods', > states={ > 'readonly':_STATESLINES['readonly'], > 'required':True, > }, depends=DEPENDSLINES) > > Los demás campos que están puestos requeridos funcionan correctamente. > También en la vista el campo periods es un multiselection widget Lo has probado sin el multiselection widget? Es possible que sea un bug del widget multiselection, si es así deberías reportarlo en el bug tracker. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Formato a campo TimeDelta
On 10/11/18 3:17 PM, Galk G wrote: > Gracias por responder Sergi! > > Soy bastante nuevo usando Tryton, así que espero que disculpes tantas > preguntas. > > No entendí bien, tendría que poner: fields.TimeDelta('Seniority', > converter=*) y ahí dentro el diccionario con el formato que deseo? Como dice en la documentación, debes poner el nombre de la clave del contexto que define el diccionario. > Me darías algún ejemplo.. En el módulo company creo que se define un convertidor que se usa en el módulo timesheet. > > Saludos! > -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Formato a campo TimeDelta
On 10/10/18 10:29 PM, Galk G wrote: > Buenas tardes! Hola, > > Quería hacerles una consulta a ver si me pueden ayudar. > Tengo un campo TimeDelta donde guardo un cálculo en días, y (como > sabran) se muestra como Años-Mes-Semanas-Días, por ejemplo: 4A 5M 2S 3d. > Yo quisiera hacer que se muestre unicamente en Años-Mes-Días es decír, > por ejemplo 4A 5M 17d. > > Sabrán alguna forma de hacerlo? Tienes que utilizar el argumento converter del campo TimeDelta para especificar su formato. Aquí tienes su documentación: http://docs.tryton.org/projects/server/en/latest/ref/models/fields.html?highlight=timedelta#timedelta Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] herencia en tryton super() no tiene atributo (AttributeError)
On 9/28/18 8:02 PM, Maicoly Guerrero wrote: > > Además se solucionó de otra manera con ayuda de @perilla > se observa que no se importa 'CreatePurchase' es decir: > from trytond.modules.purchase_request import CreatePurchase No debes importar la misma classe para hacer herencia de ella misma en el pool, sinó que lo debes registrar con el mismo __name__ y Tryton se encarga de construir la classe final Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] herencia en tryton super() no tiene atributo (AttributeError)
On 9/28/18 5:03 PM, Maicoly Guerrero wrote: Buenos dias amig@s, tengo un problema en una herencia: Clase Padre: class CreatePurchase(Wizard): __name__ = 'first.something1' // data @staticmethod def _group_purchase_key(requests, request): return ( ('company', request.company), /// mas data ) y en otro archivo tengo class CreatePurchase: __metaclass__ = PoolMeta __name__ = 'first.something1' @staticmethod def _group_purchase_key(requests, request): result = super(CreatePurchase,CreatePurchase)._group_purchase_key( requests,request) result += (('poa', request.poa), ('department', request.department)) return result y me arroja esto en consola: AttributeError: 'super' object has no attribute '_group_purchase_key' Para heredar un método estatico lo tiense que hacer convertir a classmethod (de hecho en python ambos son equivalentes). Tu código deberia ser: @classmethod def _group_purchase_key(cls, requests, request): result = super(CreatePurchase, cls)._group_purchase_key( requests,request) result += (('poa', request.poa), ('department', request.department)) return result Si estas en python3 usando super() te deberia funcionar sin problemas. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Complemento o etiqueta de seleccion multiple
On 9/21/18 9:23 PM, Maicoly Guerrero wrote: Buenas tardes alguien sabe que componente usar para escoger varias opciones (de 3) como este ejemplo: https://www.primefaces.org/showcase/ui/input/checkboxMenu.xhtml lo que quiero es el componente básico solo escoger uno o más de n opciones. Puedes utilizar el widget multiselection. Tienes un ejemplo el en módulo stock_lot [1] Espero que sirva de ayuda. Un saludo, [1] http://hg.tryton.org/modules/stock_lot/file/288fa0975f4e/view/template_form.xml#l8 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Iterar en objeto
On 9/21/18 5:02 PM, Maicoly Guerrero wrote: Buenos días amig@s: Soy nuevo en tryton sabe alguien como iterar en un objeto (purchase_pac_line), lo que quiero es que en la clase A tengo un objeto llamado budget y en una clase B tambien un objeto budget, quiero de alguna manera relacionarlos y sacar la linea (purchase_pac_line) purchase_pac_line = fields.Many2One('purchase.pac.line' , 'PAC Line') //nose como relacionar y sacar esta linea dependiendo el budget Desde tu código puede acceder a los campos relacionados utilizando el punto. En tu caso deberias utilizar: budget.purchase_pac_line para acceder al pac.line Si quieres acceder a la lsita de budgets del pac_line debes crear un campo One2Many y acceder con el punto utilizando el nombre del campo. UN saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] How to return a file from an action
On 9/21/18 8:27 AM, Richard V. wrote: On Thursday, January 4, 2018 at 4:20:04 AM UTC-6, Cédric Krier wrote: You have two options: - return the PDF file as the result of Report.render. - put the PDF data in a Binary field (may be a Function field) and display the field on a Model (ModelSQL or ModelView of a wizard). I am very interested in doing something very similar, but instead of downloading a PDF, it is an XML file that is created on the fly with some invoice information. Can anyone help me with some sample code on how to do this? I tried Cédric's option #2 using a function field wrapping a binary field and have the function field's getter method return the XML text, but on the view, the field is shown as a file-upload widget with a text saying 0.00 bytes and a button to select the file to be uploaded next to it. It seems that I can't download the XML file. If you want to create an XML file you can use the report engine to build it and show them using the print option of the clients. This way you don't have to create a wizard to lunch the XML, but just select the records you want to export as XML. Hope it helps! -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/f867efa9-7752-78e0-bcb6-3dad9ef24e6f%40koolpi.com.
Re: [tryton-es] Llamar metodo en boton guardar
Hola Maicoly, On 9/13/18 12:13 AM, Maicoly Guerrero wrote: Buenas tardes amig@s, Existe alguna manera de llamar a algun metodo cuando se hace clic en el booton guardar del menu en el encabezado Captura de pantalla 2018-09-12 a la(s) 17.10.44.png Al momento sé como llamar teniendo un boton es decir: @classmethod @ModelView.button @Workflow.transition('done') def done(cls, purchases): pero quiero hacer o llamar un metodo en el icono de guardar de la imagen. Debes sobrescribir los métodos create o write (o ambos), para llamar un método cuando se crean nuevos registros o se modifican el valor de unos (esto es lo que hace el botón guardar). Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Error al abrir modulo
On 9/12/18 6:32 PM, Maicoly Guerrero wrote: Buenos días amig@s , tengo un error cuando hago clic en mi modulo public_pac (TDR) al momento me sale Traceback (most recent call last): File "/trytond/wsgi.py", line 71, in dispatch_request return endpoint(request, **request.view_args) File "/trytond/protocols/dispatcher.py", line 41, in rpc request, database_name, *request.rpc_params) File "/trytond/wsgi.py", line 42, in auth_required return wrapped(*args, **kwargs) File "/trytond/protocols/wrappers.py", line 122, in wrapper return func(request, pool, *args, **kwargs) File "/trytond/protocols/dispatcher.py", line 173, in _dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File "/trytond/model/modelview.py", line 280, in fields_view_get tree = etree.fromstring(result['arch'], parser=parser) File "src/lxml/etree.pyx", line 3213, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1876, in lxml.etree._parseMemoryDocument ValueError: can only parse strings Alguien me puede guiar ? En tu módulo tienes una vista definida que no existe el fichero xml con la definición de la misma. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-dev] Impossible to install a custom module which inherit from other custom module
On 9/4/18 10:42 PM, Richmond Fiko wrote: Hello, I create a custom module which inherit from some others custom modules. I follow all steps and I mark the parent modules inside tryton.cfg file inside "depends:" part. If you are using the default cookiecutter template it reads the tryton.cfg to download the dependencies from pypi using the trytond prefix. You should modify your setup.py to include your company prefix on the MODULES2PREFIX to make the module download the name with your custom prefix. If you do not have your parent module uploaded to pypi you should manually install it before installing the dependant module or modify setup.py to include the location for where the module should be downloaded and installed. Hope it helps! -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/31d5ce84-94e0-b6e4-9f0c-dfea33cf22df%40koolpi.com.
Re: [tryton-es] Movimientos Internos de Albaranes con Transito en Tryton 4.4
On 8/31/18 10:27 PM, Favio Dutria wrote: Buenas tardes. Estoy tratando de entender como funciona un movimiento interno de albaranes con Transito y no logro darme cuanta cuales son las condiciones por las cuales el movimiento lo hace en dos pasos. Ya tengo configurada la ubicación de Tránsito, pero no logro que lo haga. Alguien me pude dar una mano? Tienes que configurar el tiempo de envío entre ubicaciones, indicando que el desplazamiento entre las dos ubicaciones es superior a un dia. En este caso tryton te creará los dos pasos y así poder reflejar que la mercancia no esta en ninguna de las dos ubicaciones sinó que actualmente esta "En Tránsito". Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
[tryton-ca] Nou forum de discusió
Estimats companys, Desde la comunitat internacional s'ha decidit utilitzar el forum del discuss [1] com a canal de comunicació per a tots els dubtes [2]. Encara no hi ha data prevista per tancar les llistes, pero en un futur es posaran en mode només lectura. Estaría bé que a partir d'ara s'utilitzi aquest canal com a comunicació. Pels que teniu problemes amb el ingles, s'ha activat el servei de traducció automàtica al forum de forma que podeu escriure amb català/castellà i el missatge es podra veure en altres idiomes. Ens veiem per allí. Salutacions, [1] https://www.google.com/url?q=https%3A%2F%2Fdiscuss.tryton.org%2F=D=1=AFQjCNFluMpZVcU7fZO6kEgWX4gYVYWhww [2] https://groups.google.com/d/msg/tryton/FSAE7xDl9Ho/FfWQ-fW4AQAJ -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
[tryton-es] Nuevo foro de discusión
Hola, Desde la comunidad internacional se ha decido utilitzar el foro de discuss [1] como a canal de comunicación para todas las dudass [2]. En un futuro estas lista de correo quedaran en modo solo lectura. Así que la recomenadación es que a partir de ahora utilicéis el foro de discussión. Aunque el idioma oficial del foro sea el ingles, este tiene activado el sistema de traducción automàtico por lo que podéis escribir en castellano y vuestros mensajes serán traducidos de forma automàtica. Os espero por allí. Saludos, [1] https://www.google.com/url?q=https%3A%2F%2Fdiscuss.tryton.org%2F=D=1=AFQjCNFluMpZVcU7fZO6kEgWX4gYVYWhww [2] https://groups.google.com/d/msg/tryton/FSAE7xDl9Ho/FfWQ-fW4AQAJ -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Proposal to replace mailing lists by discuss
On 8/7/18 9:58 AM, Cédric Krier wrote: On 2018-06-28 10:49, Cédric Krier wrote: As you are the main subject of this proposal, I think it is good to warn you about this proposal I made: https://discuss.tryton.org/t/replace-mailing-list-by-discuss/599?u=ced As we have mainly positive feedback about this proposal. I would like to encourage everyone on this mailing list to start to use https://discuss.tryton.org/ as soon as possible. I'm wondering if we should send the same advice to the language specific list. There is some schedule date on which the mailing list will be put on readonly mode? -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/8518a24a-1d97-1129-11ab-4e407cda14ac%40koolpi.com.
Re: [tryton-es] Ejecutar tarea diaria con trytond-cron
On 8/16/18 1:03 AM, Fernando Sánchez wrote: Saludos Comunitarios, Hola Fernando, Estoy tratando de echar a andar la funcionalidad de trytond-cron en la versión 4.2, ya lo tengo ejecutandose como servicio en linux debian stretch de esta forma: trytond-cron -d dbname -c config.conf En este punto debo indicar que el archivo conf es el mismo que uso con trytond, hay que definir algunas variables especificas para el cron en este archivo? Por otro lado tengo registrada una tarea en acciones planificadas de tryton de acuerdo a la imagen adjunta. Tengo extendida la clase currency.currency.rate con un classmethod get_tc_sunat que debe leer el tipo de cambio de un sitio externo y guardarlo en la tabla currency.rate de tryton. AL ejecutarlo manualmente funciona pero no logro que se haga a traves del cron. No se si me este faltando activar o configurar algo, pero el cron no se ejecuta hasta ahora. Si alguien puede darme alguna luz al respecto estaré agradecido. Por lo que parece hay alguna cosa que no se esta executando correctamente. Deberias mirar los logs del servicio trytond-cron y allí tendras un mensaje de error. Si lo ejecutas manualmente desd eel terminal te va a mostrar en la consola los mensajes de errores. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Trying out Tryton via Docker
El 08/08/18 a les 05:56, RisP ha escrit: Hi, I would like to try out Tryton, and decided to use Docker. The instructions seem to be ok, but the latest version didn't work. What does not work? So I tried version 4.6 and that started no problem. So now my issue is, that on the localhost:8000, I get the login box. However, I cannot find the credentials to use. When setting up the database the server will ask you for the password of the admin user. You should use 'admin' and login and the password you entered on the first run. If you did not remember the password, you can reset it using the -p flag of the trytond-admin command. Hope it helps! -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/0ba157b7-0721-6c17-8f09-84ed7119859b%40koolpi.com.
Re: [tryton-es] Actualizar fecha de movimiento contable
El 01/08/18 a les 17:17, Josias Pérez ha escrit: De momento estoy pensando en cancelar el asiento contable y crear uno nuevo, pero aún deseo conocer si existen otras posibilidades para este caso especial. Este es justo el procedimiento para modificar cualquiera de los campos que te aparezcan como solo lectura. Desde el menú de acciones hay un asistente llamado "Cancelar Asiento" que te va a generar un asiento de cancelación. Luego puedes duplicar el asiento actual para tener una copia en estado borrador y modificar la información que necessites. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Actualizar fecha de movimiento contable
El 01/08/18 a les 17:15, Josias Pérez ha escrit: Hola, La fecha de contabilización, por error, fue mal colocada, entonces refleja un movimiento incorrecto en la fecha y también en el periodo, y no estoy seguro, pero si no afecta la contabilidad, creo que debería haber alguna forma de poder actualizar la fecha y el periodo. Pero no estoy seguro si afecta el actualizar la fecha y el período de un movimiento. Es la "Fecha efectiva" la que sirve para determinar el periodo. Un saludoo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Actualizar fecha de movimiento contable
El 31/07/18 a les 22:50, Josias Pérez ha escrit: Hola, Quisiera solicitar apoyo para un error que he tenido, y es en la fecha de contabilización de un movimiento. Estuve leyendo [1] sobre el caso pero en realidad no sé como hacer para actualizar el movimiento (¿existe algún wizard o algo por el estilo?). La fecha de contabilizacion solo indica cuando se contabilizo el asiento y es un campo de solo lectura gestionado por el sistema. ¿Porqué necessitas modificarla? Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Time clock module
El 28/07/18 a les 15:51, Jon Levy ha escrit: Does anyone know of an existing module for employees to clock in/clock out? Probably you are looking for the nantic's timetracker module: https://bitbucket.org/nantic/trytond-timetracker/ -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/077bbef2-767e-b43a-8b49-8049201d2bfd%40koolpi.com.
Re: [tryton-es] Modulo Calendario Tryton -Gnuhealth
El 27/07/18 a les 12:34, hospital arthur rausch ha escrit: el servidor que estás hablando es este demo4.8.tryton.org <http://demo4.8.tryton.org>? No estoy hablando de incluir el código en el código fuente de tryton para que este disponible en las proximas versiones. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Modulo Calendario Tryton -Gnuhealth
El 25/07/18 a les 16:56, Carlos Eduardo Sotelo Pinto ha escrit: Hola Es correcto lo que mencionas, yo solucioné este tema extendiendo la clase DateTime ¿Porqué no lo propones su inclusión el propio servidor de Tryton? Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Re: Informe "Imprimir libro mayor" devuelve balance anterior erróneo
El 13/07/18 a les 12:01, Sergio Morillo ha escrit: Ok. Pero ahora mismo los tests fallan en "test_fiscalyear_not_closed" (en 4.2) Para mi habría que revisarlo primero porqué si el test falla es que alguna cosa esta mal. (o el test o el programa ejjej) De todos modos, si ves que es mucho trabajo siempre puedes añadir el test en una nueva función y dejar este fallo como pendiente.
Re: [tryton-es] Re: Informe "Imprimir libro mayor" devuelve balance anterior erróneo
El 13/07/18 a les 11:30, Sergio Morillo ha escrit: Creo que el problema va más allá, porque revisando de nuevo el código justo debajo de estas líneas se obtiene el balance anterior de la cuenta por tercero [1]. La cuestión es que si un tercero X tiene balance anterior en una cuenta, luego al componer la información [2] no tiene en cuenta si hay movimiento con ese tercero en el ejercicio consultado, de modo que ese saldo se pierde. Hola Sergio, Este modulo tiene bastante buena cobertura de tests, estaría bien que añadas tambien una funció que compruebe que los saldos por tercero se arrastran del ejercicio anterior. Miraté el fichero de test, sinó recuerdo mal ya hay alguno que comprueba que los saldos de años anteriores se estan arrastrando correctamente, seria questión de copiar uno de esos para añadir la comprobación de que el saldo por tercero se esta arrastrando correctamente. Saludos,
Re: [tryton-es] Crear Campo derivado de otro (Saleline)
El 12/07/18 a les 00:40, depor2004216...@gmail.com ha escrit: > > > El miércoles, 11 de julio de 2018, 16:29:20 (UTC-5), raimonesteve escribió: > > Hola > > El dc., 11 de jul. 2018, 23:11, > > va escriure: > > Saludos > > Porque no añades un impuesto a la línia de venta y asi te calcula el > precio y total según % o fijo? > > > Gracias por la respuesta , lo que sucede es que no encuentro el > campo donde este sumado el unit_price y el impuesto por linea así como > el monto por linea sumado con el impuesto para colocarlo en un > impreso , alguna idea para colocarlo en un impreso (.odt) . Creo que lo mejor es que nos expliques un póco lo que quieres hacer así te podriamos dar una mejor solución. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Escribir en un fields.Text
El 11/07/18 a les 16:56, Galk G ha escrit: > Hola! Hola, > A ver si alguien puede ayudarme con esto: > > Tengo el campo Text: > *product_data = fields.Text('Product data')* > > > Y en algun momento hago el proceso: > *for product in products:* > * product_list.append({ > 'name': product.name, > 'value': product.value,* > * # otras caracteristicas* > * })* > > Cómo puedo hacer para guardar todos los datos del diccionario > (product_list) en el campo product_data? > > Probé haciendo esto, pero solo me guarda el ultimo producto, es decir > que no se como actualizar o agregar una nueva linea: > for p in product_list: > cls.write(products, { > 'product_data': '%s -- $%s \n' % (p['name'], p['value']), > }) El código parece correcto (aunque no es muy optimo hacer un write dentro de un for). Si solo te guarda el último seguramente es porqué no estes passando correctamente el valor del primer parámetro de la función write. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Unload hg.tryton.org
El 06/07/18 a les 10:16, Cédric Krier ha escrit: > * Use a local mirror of the Tryton repositories (like > drone.tryton.org does with hgwebcachingproxy [1]) We've setup an hgwebcachingproxy and setup dnsmasq to use the proxy ip for cloning the repositories on our testing environment. Cloning the repositories using the http protocol works well but when using the https server we've get a certificate error. Which is expected as we do not have any valid certificate for hg.tryton.org Could you explain how do you solved this issue on drone.tryton.org? -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/816ee72a-3e46-05cf-5e91-c362a2c5875e%40koolpi.com.
Re: [tryton-es] Re: Cálculo información modelo 347
El 04/07/18 a les 10:57, Sergio Morillo ha escrit: > > El mié., 4 jul. 2018 a las 10:38, Sergi Almacellas Abellana > (mailto:se...@koolpi.com>>) escribió: > > El 03/07/18 a les 18:35, Sergio Morillo ha escrit: > > > > Quizás se podría añadir el país del tercero, para poder filtrar esos > > casos (al igual que el límite de 3.000€ que no se ha puesto en la > consulta). > > El límite de 3000€ no se ha incluido ya que puede ser suceptible a algun > cambio de legislación. > > > Veo bien que no se haya puesto. Quería decir que se podría añadir el > país para filtrar los resultados, al igual que tendríamos que filtrar (o > no) manualmente o via filtro de acción los importes menores de esa cifra. La idea es que en el informe sólo aparezcan los campos que se requieren para enviar la información a hacienda. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Re: sao and comma decimal separator
El 04/07/18 a les 18:38, Josias Pérez ha escrit: > I will thanks how to change dot per comma (or the other way around) in tryton > and sao. I work with spanish localization and in my country use dot for > decimals and comma for miles separator. > > I can use dot for enter decimals but after entering the data it is display > with comma for decimals and dots per commas. > > I reviewed the custom location setting on windows but it's correctly > configured. The numeric fields are displayed using the numeric format on the language. If you have diferent settings you should create a derivative language (so all the translations are inherit) and set your custom formating. This is how the "Spanish (Latin American)" language works. I'm wondering if you should not use this Language instead of the Spanish one as it has the numeric settings as you are requesting. Hope it helps. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/04e50c75-196a-00c4-b952-771302edb337%40koolpi.com.
Re: [tryton-es] Re: Cálculo información modelo 347
El 03/07/18 a les 18:35, Sergio Morillo ha escrit: > > Quizás se podría añadir el país del tercero, para poder filtrar esos > casos (al igual que el límite de 3.000€ que no se ha puesto en la consulta). El límite de 3000€ no se ha incluido ya que puede ser suceptible a algun cambio de legislación. De todos modos, no es muy complicado modificar la acción para que por defecto te aplique este límite. Incluso se puede hacer sin la programación de ningún módulo. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Re: Cálculo información modelo 347
El 03/07/18 a les 18:20, Raimon Esteve ha escrit: > hola > > 2018-07-03 18:05 GMT+02:00 Sergi Almacellas Abellana : >> El 03/07/18 a les 16:44, Sergio Morillo ha escrit: >>> >>> >>> El martes, 3 de julio de 2018, 13:52:09 (UTC+2), Sergi Almacellas >>> Abellana escribió: >>> >>> Buenos dias, >>> >>> Acabo de abrir una incidencia [1], donde se propone añadir un nuevo >>> modelo al módulo account_es para calcular las operaciones con terceras >>> personas en España. Esta información es la que se envía en el modelo >>> 347. >>> >>> >>> Lo veo bien. Simple. >> >> Esa es la intención que sea simple de usar y cumpla con la funcionalidad. >> >> En el modulo de trytonspain había una marca para "exluir algunos >> terceros del 347", pero la verdad que yo no he visto por ningún lado de >> la normativa porqué se tienen que excluir algunos Terceros. Si alguien >> conoce el caso de uso estaría bien que lo comentara. > > Hay unos casos muy especiales que nos hemos encontrado que la empresa > es de Francia y tiene un CIF español y no se requiere incluir al 347. Tal como esta diseñado el módulo ahora mismo si que se incluirían estas operaciones ya que el CIF es de España y ese es el criterio que se esta aplicando para filtrar las operaciones. De todos modos, no hay problema en extender la vista para que no se incluían ciertos terceros añadiendo una clausula adicional en el filtro. > >>> ¿Hay intención de generar fichero para importación? >> >> Si, hay otra propuesta para añadir un asistente para generar los >> ficheros a partir de los modelos, la idea es añadir también el fichero >> del 347 allí. Una vez calculado los datos no debería ser complicado >> generar el fichero, es solo tener un poco de paciencia en generar el >> fichero. > > Lo que no veo claro, es porque los informes que propones, estan dentro > del Plan contable y no modulos separados como hemos propuesto a > TrytonSpain y poder extender con cualquier módulo de plan contable que > se desea usar. Porqué son informes exclusivos para la legislación Española y son susceptibles de ser usados por cualquier Persona/Empresa que utilice el Plan Contable Español. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Re: Cálculo información modelo 347
El 03/07/18 a les 16:44, Sergio Morillo ha escrit: > > > El martes, 3 de julio de 2018, 13:52:09 (UTC+2), Sergi Almacellas > Abellana escribió: > > Buenos dias, > > Acabo de abrir una incidencia [1], donde se propone añadir un nuevo > modelo al módulo account_es para calcular las operaciones con terceras > personas en España. Esta información es la que se envía en el modelo > 347. > > > Lo veo bien. Simple. Esa es la intención que sea simple de usar y cumpla con la funcionalidad. En el modulo de trytonspain había una marca para "exluir algunos terceros del 347", pero la verdad que yo no he visto por ningún lado de la normativa porqué se tienen que excluir algunos Terceros. Si alguien conoce el caso de uso estaría bien que lo comentara. > ¿Hay intención de generar fichero para importación? Si, hay otra propuesta para añadir un asistente para generar los ficheros a partir de los modelos, la idea es añadir también el fichero del 347 allí. Una vez calculado los datos no debería ser complicado generar el fichero, es solo tener un poco de paciencia en generar el fichero. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
[tryton-es] Cálculo información modelo 347
Buenos dias, Acabo de abrir una incidencia [1], donde se propone añadir un nuevo modelo al módulo account_es para calcular las operaciones con terceras personas en España. Esta información es la que se envía en el modelo 347. Estaría bien que le hecharáis un vistazo. Cualquier comentario sera bienvenido. Saludos, [1] https://bugs.tryton.org/issue7558 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Agregar campo para la formula en el calculo de tarifas: modulo product_price_list y product_price_list_formula
El 01/07/18 a les 21:04, Fernando Sánchez ha escrit: > Saludos a la comunidad Hola Fernando, > Necesito cambiar la funcionalidad al definir la formula de trarifa con > el modulo product_price_list. Solo acepta unit_price, cost_price y > list_price. He agregado un campo unit_segus a la plantilla de producto > que necesito se pueda ingresar en el calculo de la tarifa, pero al > configurarlo directamente me sale un error. > Cuales son los posibles cursos de accion que debo tomar para lograr esto? En el mismo módulo dónde has definido el campo unit_segus debes sobreescribir el método get_context_formula para añadir el valor del campo que vas a utilizar. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-dev] Vibora similar to Flask
El 29/06/18 a les 11:10, Cédric Krier ha escrit: > Indeed at B2CK after some experiences with Flask-Tryton, we think that > this is no more a best way to interface website with trytond. We think > about using dedicated RPC calls in the future. When you talk about RPC calls you mean also a specific endpoint using the new custom routing feature? How do you think it's better to consume those APIs? Using javascript directly or by using an intermediary webserver? -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/568fa7e4-3492-35cb-40ff-355d31ed8639%40koolpi.com.
Re: [tryton-dev] Open a view as result of button click
El 29/06/18 a les 09:52, Carlos Gálvez ha escrit: > > The way I have done it is returning on my Modelview.button an Action id > that points to an act_window that open the desired view: > > return Action.get_action_id(ModelData.get_id('mymodule', 'myaction')) > This is the same as button_acciont('mymodule.myaction') which is simplier. > and adding a domain to this act_window: > > Of course, if the new created records are related to the current records a domain can be used to remove the wizard. Just for the record if myfield is a many2one field, there is no need to include the '.id' part and this will avoid and extra join to the target table. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/b408dab5-6b33-2c24-3c43-c488037d46ac%40koolpi.com.
Re: [tryton-dev] Open a view as result of button click
El 28/06/18 a les 14:15, Carlos Gálvez ha escrit: > Hi all, Hi Carlos, > > I would like to know if is possible to open another view when a button > placed in a form view is clicked. > > For example: > I'm in a form view of a model named 'foo' and through a button click i > want to create an instance of another model named 'bar' and show the > form view of this instance. > > Would it be possible?? Yes, it is possible. You should use the button_action decorator to returns an wizard with an StateAction from the model of the new created instance. You should set the res_id of the action on the wizard to the ids of the new created instances. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/2b2dab86-a098-83b9-f5f4-a08a4bd510db%40koolpi.com.
Re: [tryton-dev] Generate General Balance Report and Income Statement
El 27/06/18 a les 01:34, Josias Pérez ha escrit: > I have already created a report for account.account.type but I have doubts on > how to order the data to print, I was thinking something like tree view but > in a printed report, I will be perfect. > Normally a report work with the selected records. So the user selects the records she wants to print and then the template is rendered for each one of. In your case, you can include the type childs if interested. BTW, Could you explain which report are you going to develop? Maybe it's interesting for other and can be included on account module. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/41f61123-ab09-f158-84f5-661c0ebae687%40koolpi.com.
[tryton-es] Exportación modelos 111, 115 y 303 de la AEAT
Hola, Llevo unos días trabajando en la generación de los modelos 111, 115 y 303 de Hacienda a través desde el mnódulo account_es [1] Ya he conseguido generar correctamente los ficheros para la importación de los 3 modelos, os escribo para que le echéis un vistazo y lo probéis para detectar si hay algún error. Una vez aplicado el parche de la issue y actualizado la base de datos debéis ir a la opción: Contabilidad -> Planes Contables -> Plan de Impuestos y seleccionar los períodos para lo que lo queréis calcular. En la pantalla que se os abre están disponible los 3 modelos como informe. Este fichero que os genera lo debéis guardar e importar a la web de hacienda. Podéis importar el fichero sin problemas ya que antes de firmarlo y enviarlo como definitivo os va a mostrar el resultado en la pantalla. Espero vuestros comentarios. Saludos, [1] https://bugs.tryton.org/issue7484 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Tiempo que me pide la contraseña el cliente tryton por inactividad
El 14/06/18 a les 18:06, juliojesuscaquirob...@gmail.com ha escrit: > Estimada Comunidad Tryton. > > Saludos , quisiera su apoyo para poder cambiar el tiempo en que el > cliente tryton me pide la contraseña debido a inactividad : gracias. > Hola, Lo puedes especificar con el valor timeout [1] del sección session de tú fichero de configuración. Te adjunto el enlace en la sección de documentación dónde se explica: http://doc.tryton.org/4.8/trytond/doc/topics/configuration.html#timeout Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-dev] Import data from CSV
El 13/06/18 a les 21:41, Josias Pérez ha escrit: > Hi, > > I was trying to import data with CSV with a multi-company stage and all the > companies with the same accounting plan. > > I'm trying to import a file that require to import the a group of accounts > but I found with an error that say that encounter many ocurrences. I dont > know how to import that. It seems that this is because the program finds the accounts for several companies and does not know which to pick. > > At the same time, I need to import with a tree structure child / parent. > Actually I do it manually one by one (first parent and after the child) > because if I put all together I can not import that (the parent doesn't be > found and can create the child). You can use the Children One2Many field to import all the childs of a tree. Something like: Name, Children/Name Test, Child 1 , Child 2 , Child 3 Test2, Child 4 , Child 5 Will create the following tree: Test: - Child 1 - Child 2 - Child 3 Test2: - Child 4 - Child 5 Hope it helps. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/5ff3f0d6-6de3-a067-a414-6256c3619c3e%40koolpi.com.
Re: [tryton-es] Registro de Centavos por diferencia de decimales y/o redondeo.
El 13/06/18 a les 18:17, Fernando Sánchez ha escrit: > Saludos a la comunidad. Hola Fernando, > > Me gustaría saber como se manejan las diferencias por redondeo en tryton 4.2, > al menos un esquema de como configurar esta característica. > Ejemplo: > > Genero una orden de compra cuyo total incluido impuestos es 450.34, con su > respectiva factura de proveedor creada de forma automática. > El proveedor atiende el pedido y envía su factura y su total de 450.00, el > pago en el sistema debe ser igual a la factura física del proveedor con lo > cual me estaría generando una diferencia de 0.34. Como y donde se debe > registrar esta diferencia a fin que se pueda dar el estatus de pagada a la > factura en el sistema. En ese caso lo mejor es que modifiques la factura creada de forma automática antes de contabilizarla para reflejar lo que realmente te ha enviado el proveedor. De esa forma tu contabilidad será la real y no tendrás que contabilizar diferencias de decimales. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] ¿Dependencia? en módulo trytond_account_jasper_reports
El 13/06/18 a les 17:05, José Salvador ha escrit: > ¿Dónde está en el código la dependencia que hace que en el tryton.cfg de > trytond-account_jasper_reports tenga que declarar a > trytond-account_invoice_company_currency como módulo dependiente? En el informe [1] se utiliza el campo company_total_amount que esta definido en el modulo account_invoice_company_currency. Saludos, [1] https://bitbucket.org/trytonspain/trytond-account_jasper_reports/src/e921d4778391bd81da28540d1a809cdf3674cf38/taxes_by_invoice.jrxml#lines-67 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] ¿Dependencia? en módulo trytond_account_jasper_reports
El 11/06/18 a les 20:30, José Salvador ha escrit: > Hola, > > Estoy pensando en instalar el módulo trytond_account_jasper_reports para > poder tener acceso al balance de sumas y saldos contable. > > Antes de instalarlo he estado echando una ojeada al repositorio y > declara una dependencia (en tryton.cfg) con el módulo > trytond_account_invoice_company_currency que no entiendo. > > ¿Porque declara dependencia a un módulo que no parece necesitar? Se utiliza en el informe de impuestos por factura para mostrar el importe en la divisa de la empresa. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Restablecer contraseña usario admin en tryton 3.4
Hola Fernando, La opción de modificar la contraseña del usuario admin fue añadida en la version 4.2 y no esta disponible para versiones anteriores. De todos modos, se puede actualizar por base de datos utilizando el hash de una contraseña conocida para recuperar el aceso. Aprovecho la ocasion para recordarte que la version 3.4 no esta soportada, deberias pensar en actualizar como mínimo a la version 4.0 que es la ultima soportada. Saludos, El 7 de juny de 2018 21.52.15 CEST, "Fernando Sánchez" ha escrit: >Gracias Jose por tu aporte, pero lo que busco es en la versión 3.4 de >tryton > >Un Saludo > > >El 07/06/18 a las 14:45, José Salvador escribió: >> Hola, >> >> (Creo) que (al menos) desde la versión 4.2 puedes conseguirlo >> ejecutando el siguiente comando por consola: >> >> trytond-admin -c fichero_configuracion_tryton -d bbdd_tryton -p >> >> Un saludo. >> >> El 07/06/18 a las 21:33, Fernando Sánchez escribió: >>> Hola a todos, estoy reconstruyendo una instancia de tryton 3.4 y no >>> recuerdo la forma de restablecer la contraseña del usuario admin >para >>> entrar al sistema. Ojo no confundir con el usuario admin del >servidor >>> que se usaba para hacer los backups desde el cliente. Lo que >necesito >>> es restablecer la contraseña olvidada del usuario admin que se >>> almacena en la tabla res.user. >>> Agradeceré las respuestas. >>> >>> Saludos >>> >>> Fernando Sanchez >> -- Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi brevedad.
Re: [tryton-dev] Generate General Balance Report and Income Statement
El 07/06/18 a les 01:28, Josias Pérez ha escrit: > Hi, > > I would like to generate report for General Balance and Income Statement. > > The report is generated from account.account.type and I can have all the > field, but I would to stylize the report with different font size for > parent/childs. > You should create a report template an add it to the account.account.type to be able to export the data in the report format. Have a look at the report documentation: http://doc.tryton.org/4.8/trytond/doc/topics/reports/index.html I think this will be a nice addition to the account module so it will be great if you can propose a patch to include it. Have a look at: http://www.tryton.org/how-to-contribute.html -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/edcf97e1-e657-f6b6-e90c-5f0c8c3930d5%40koolpi.com.
Re: [tryton-es] Modulo para manejo de fondos fijos o caja chica
El 07/06/18 a les 01:02, Fernando Sánchez ha escrit: > Estimada Comunidad Hola Fernando, > > Reciban mi saludo cordial, en esta oportunidad para hacer la consulta si > existe o alguien conoce de algún modulo para manejo de fondos fijos o > caja chica. Si lo que quieres es gestionar movimientos de efectivo para luego contabilizarlos héchale un vistazo al módulo account_statement que sirve para registrar movimientos de caja/banco. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Reglas de impuestos
El 05/06/18 a les 12:46, José A. Salvador Vanaclocha ha escrit: > El 05/06/18 a las 10:20, Sergi Almacellas Abellana escribió: >> El 04/06/18 a les 17:34, José Salvador ha escrit: >>> Aplicando tus consejos e obtenido un resultado válido pero no con el >>> comportamiento que yo hubiera esperado. >>> >>> Me explico. Dado: >>> >>> Tercero: Rentención 15% + IVA 21% (Nueva regla de impuesto con 2 hijos >>> (retención e iva)) >>> >>> Producto: IVA 10% >>> >>> >>> Esperaría obtener: >>> >>> Factura: Retención 15% + IVA 21% + IVA 10% >>> >>> y obtengo: >>> >>> Factura: Retención 15% + IVA 10% >>> >>> ¿Porqué? >> >> Las reglas de impuesto sustituien el impuesto origen por el impuesto >> destino. >> >> En el caso de la regla de retención lo mas fàcil es no incluir un >> impuesto de origen, sinó solo un impuesto de destino de forma que este >> se añadirá siempre independientemente de cual sea el impuesto original. >> >> Si te fijas en las reglas de impuesto del plan contable de España así >> esta definido. > > Cierto. Esto creo que lo entiendo. Lo que no entiendo es porqué cuando > defino una regla de impuestos con DOS impuestos (p.e. retencion e IVA) > SIN NINGUN IMPUESTO DE ORIGEN, NO SE AÑADAN LOS DOS IMPUESTOS (retención > e IVA) Y SOLO SE AÑADA UNO DE LOS DOS.. Si dentro de una regla de impuestos hay varias lineas que cumplen la condición de impuesto original solo se aplica la primera que se encuentra. Si quieres añadir mas de un impuesto, debes utilizar un impuesto que contenga varios hijos, de forma que se coje solo el impuesto padre y una vez se crean las lineas de impuestos se crea uno para cada hijo. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Reglas de impuestos
El 04/06/18 a les 17:34, José Salvador ha escrit: > Aplicando tus consejos e obtenido un resultado válido pero no con el > comportamiento que yo hubiera esperado. > > Me explico. Dado: > > Tercero: Rentención 15% + IVA 21% (Nueva regla de impuesto con 2 hijos > (retención e iva)) > > Producto: IVA 10% > > > Esperaría obtener: > > Factura: Retención 15% + IVA 21% + IVA 10% > > y obtengo: > > Factura: Retención 15% + IVA 10% > > ¿Porqué? Las reglas de impuesto sustituien el impuesto origen por el impuesto destino. En el caso de la regla de retención lo mas fàcil es no incluir un impuesto de origen, sinó solo un impuesto de destino de forma que este se añadirá siempre independientemente de cual sea el impuesto original. Si te fijas en las reglas de impuesto del plan contable de España así esta definido. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Reglas de impuestos
El 31/05/18 a les 20:03, José Salvador ha escrit: > Hola, > > Me gustaría conseguir que para un tercero en concreto se aplicaran por > defecto 2 impuestos: > > - Retención 15% > > - IVA 21% > > sobre cualquier factura de proveedor del propio tercero que dé de alta > en el sistema. Entonces solo tienes que instalar el plan contable español y en la regla de impuestos de proveedor utilizar la que pone "Retención 15%". > > Como no he encontrado una regla de impuesto conformada por IVA + > Retención he creado una nueva compuesta por los dos impuestos citados. > > A la hora de añadir una linea de factura sólo me añade uno de los 2 > impuestos definidos en la regla de impuesto asignado al tercero. > > ¿Las reglas de impuestos se utilizan para esto? Si, las reglas de impuestos se utilizan para modificar/cambiar impuestos. > > Si es así, ¿en que me puedo estar equivocando? Que impuestos has definido en el producto? Los impuestos se definen en la configuración de productos (IVA Normal, IVA Reducido, etc.). Al crear una factura se utiliza la regla de impuesto del cliente para modificar los impuestos por defecto, de forma que en el caso que comentas se añadirá la retención de IRPF del proveedor. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
[tryton] Using different credit and debit accounts on statement journal
Hi All, We are moving the accounts used by statement journal from the accounting journal to the statement journal [1]. This avoids the need to create a different statement journal to use different accounts on the statement. During the review of this change [2] we thought about merging the credit and debit accounts into a single account and use one unique account on bank statement as we nmormally use the same account on both options. Is anybody using different debit and credit accounts to import their statements? Or everybody is using the same account as us? Your feedback will be much appreciated. Thanks in advance. [1] https://bugs.tryton.org/issue7450 [2] https://codereview.tryton.org/50391002/diff/20001/journal.py#newcode48 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/ea152edf-8636-b77c-9dc2-f1a2fb9ca9c0%40koolpi.com.
Re: [tryton] Creating a module
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 -- 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.
Re: [tryton] Analytic Account Usage
El 24/05/18 a les 23:34, Josias Pérez ha escrit: > Hi community, > > I'm trying analytic accounts and this works perfectly for financial analysis, > but I have a question. I have the follow tree: > > - ROOT > - Analytic Revenue > - Analytic Expense > > With this information I want to calculate the result of the division of these > accounts: > > ROOT = Analytic Revenue / Analytic Expense. > > How could I do that? I do not think this is supported by tryton standard as we only allow to cumulate balances. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/e4bf3103-72bb-5813-ea74-a37ded8b7035%40koolpi.com.
Re: [tryton-dev] Replace doc.tryton.org by readthedocs
El 19/05/18 a les 02:37, Cédric Krier ha escrit: > Hi, > > Today we talked on IRC about the documentation [1] and that there are > many places where documentation can be found. Yes, that's one of our drawbacks which adds complexity for newbies. > One place is the readthedocs [2][3] and another place is doc.tryton.org > The readthedocs was an attempt to automate the publication but it was > never finished. > I made some tests and here is my proposal to merge both: > > I create a repository which contains a single index.rst [4], the idea is > to have this repository as the main project on rtfd. As you can see it > lists all the documentation using sub-projects [5] which allow to share > index. Also we could manage the index.rst file per branches so we could > have the documentation per series. > We could also set a custom domain [6] as 'doc.tryton.org' > > I think it will be a good improvement to have automate documentation > build on such platform.> > What do you think? I like the idea as it will allow us to have the trunk version also documented as sometimes we include documentation on trunk that's also useful for older releases. Lets go for it. > > > [1] http://www.tryton.org/~irclog/2018-05-18.log.html#t11:05 > [2] https://trytond.readthedocs.io/en/latest/ > [3] https://tryton.readthedocs.io/en/latest/ > [4] http://hg.tryton.org/readthedocs/ > [5] https://docs.readthedocs.io/en/latest/subprojects.html > [6] https://docs.readthedocs.io/en/latest/alternate_domains.html > -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/d51a8cdf-336c-a717-3eeb-c4f81042622b%40koolpi.com.
[tryton-es] Información de los modelos 347 y 349
Buenas tardes, He redactado una propuesta [1] para que el módulo del plan contable Español sea capaz de calcular la información necesaria para presentar los modelos 347 [2] y 349 [3] de la Agencia Tributaria. Cualquier comentario sera mas que bienvenido. Saludos, [1] https://discuss.tryton.org/t/spanish-vat-listing/559 [2] http://www.agenciatributaria.es/AEAT.internet/Modelos_formularios/modelo_347.shtml [3] http://www.agenciatributaria.es/AEAT.internet/Modelos_formularios/modelo_349.shtml -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
[tryton] Generate Tax Authorities Files
Hi All, Tryton uses tax codes in order to compute the information needed to report VAT to the Tax Authorities. Some Tax Authorities may accept the formation in a file format (or a webservice) which can be generated from tryton. For example for the Spanish Chart of accounts we can generate three different models for the tax authorities. I'm wondering if other countries tax authorities also allow to report tax by using a file or other digital format. If hey allow it: how are you managing this files now? For example in Spain we have separate modules to generate them but I think that they should be probably part of the standard chart of accounts module. Any comments will be much appreciated. Thanks in advance for your time. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/52fe18a0-9815-d1a6-932f-e58c5e474da9%40koolpi.com.
Re: [tryton-es] Nueva versión del plan contable
El 06/04/18 a les 10:28, Sergi Almacellas Abellana ha escrit: > El 29/03/18 a les 18:04, Sergi Almacellas Abellana ha escrit: >> Estaría bien si le pudierais echar un ojo y comprobar que todo el >> cálculo de impuestos sale correctamente. Cualquier cosa no os cuadre lo >> comentamos aquí o en la misma incidencia. > Por si os va mejor de probar he subido los cambios a un repositorio de > bitbucket: > > https://bitbucket.org/pokoli/account_es/ Voy a borrar el repositorio ya que los cambios ya estan incluidos dentre de la rama oficial. También esta disponible la versión para la rama 4.8 con los cambios incluidos. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Modulo de Producción - Puede producir servicios?
El 22/05/18 a les 02:14, Fernando Sánchez ha escrit: > Saludos a la comunidad. > Hola Fernando, > Mi inquietud pasa por saber si el modulo de producción de tryton produce > solo bienes o se puede adaptar para servicios. El modulo de producción esta pensado solo para la producción de bienes y calcular el coste de la misma, pudiendo incluir costes de tareas. El caso es el siguiente: > En una clínica se producen servicios de salud como puede ser una > cirugía, pero detrás de este servicio se deben registrar el consumo de > medicamentos, dispositivos médicos, honorarios médicos, uso de equipos e > infraestructura en cantidades estandarizadas o tipo plantillas, mezcla > de bienes y servicios. > Estoy analizando como implementar este tipo de atenciones en gnu health, > el modulo health_services no es adecuado pues esta clínica tiene una > farmacia incorporada y estoy tratando de adaptar el modulo sale_pos, > para ventas rápidas en farmacia, pero me queda el tema de cirugías y > atenciones medicas, se me ocurrió que podía hacerse en el modulo sale > estándar, usando ademas el modulo kits, pero la duda va por el lado si > en los kits puedo mezclar bienes y servicios. Creo que lo mejor es que lo discutas con la comunidad de gnuhealth para adaptar el módulo de servicios y que este sea lo suficientemente genérico para soportar todos los casos. Sinó siempre puedes hacer un modelo que represente una cirugía y desde allí guardar toda la información que quieras. > > Si alguien tuvo alguna experiencia parecida agradeceré un comentario al > respecto, o indicarme algún otro modulo que pueda utilizar. > > Uso tryton 4.2 con módulos de gnu health 3.2. > > Saludos > > -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Restrict manual creation of account's journal type
El 21/05/18 a les 16:41, Cédric Krier ha escrit: > Hi, > > On 2018-05-21 14:05, Sergi Almacellas Abellana wrote: >> When does a system administrator want to create an account journal type? >> >> If I understand correctly the journal type is thought to be only created >> by developers so it's possible to restrict which kind of journals are >> applicable on some models. (I.E: Statement journals when importing an >> statement journal). >> >> >> I'm wondering if it will be great to restrict the creation of new >> records from the User Interfice and allow only creation via xml. Does >> anyone have any use case which requires a manual creation of a journal >> type? >> >> Some of our users created some journal types which only generated >> confusion. >> >> P.S: Probably the same is applicable for Sequence Type. > > I would say it is a legacy of OpenERP and it should be replaced by a > selection field that Tryton can managed the modular extension correctly. > I thought so. Just filled https://bugs.tryton.org/issue7451 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/ad8ddf7a-6e50-72c3-56de-4efc7166afed%40koolpi.com.
Re: [tryton-es] III Jornadas Tryton Barcelona: Llamada a la participación
Hola, El 09/05/18 a les 00:21, Albert Cervera i Areny ha escrit: > Hola, > com sabéis y seguro que ya tenéis en vuestras agendas los próximos 25 > y 26 de Junio celebraremos unas nuevas Jornadas Tryton Barcelona. > > Así que queríamos invitaros a participar con alguna charla que > estiméis que pueda ser de interés. La charla no debería durar más de > 20 minutos. Importante ceñir-se al tiempo para no poner en apuros al > responsable de mantener los timings. > > Igual que en ediciones anteriores el lunes lo estará orientado a > usuarios finales y el 26 a desarrolladores así que las charlas pueden > ir enfocadas a cualquiera de ambos públicos. > > Si necesitáis ideas para las charlas, los temás habituales para > usuarios finales son casos de éxito, desarrollos específicos o > verticales. > > Para desarrolladores son habituales temas de rendimiento, testing, > nuevas APIs, integraciones, etc. > > Venga! Animaros, seguro que tenéis mucho que aportar! > > Por favor, mandar un correo a jornadas.try...@gmail.com con vuestras > propuestas. > > Cerraremos el programa de las jornadas el día 25 de Mayo. > Solo comentar dos cositas: 1. Este viernes es el último dia para presentar vuestras charlas 2. Si alguno tiene algún tema de que le gustaría hablar pero no se ve capaz de hacer una charla al respecto que hable ahora y valoraremos la posibilidad de hacer un propuesta para hablar sobre ellos nosotros mismos. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
[tryton] Restrict manual creation of account's journal type
Hi, When does a system administrator want to create an account journal type? If I understand correctly the journal type is thought to be only created by developers so it's possible to restrict which kind of journals are applicable on some models. (I.E: Statement journals when importing an statement journal). I'm wondering if it will be great to restrict the creation of new records from the User Interfice and allow only creation via xml. Does anyone have any use case which requires a manual creation of a journal type? Some of our users created some journal types which only generated confusion. P.S: Probably the same is applicable for Sequence Type. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/eb9e1b69-782f-3808-2a8c-47c5cb1710fd%40koolpi.com.
Re: [tryton-es] isntalacion tryton ubuntu 16.04 raspberry
El 20/05/18 a les 10:40, Francesc Furroy ha escrit: > buenas estoy instalando tryton en ubuntu 16.04 en una raspberry, sigo > las instrucciones > > de este link > http://www.tryton.org/es/descarga.html > > he puesto lo siguiente: > > pip install trytond > pip install tryton > > ahora no se como proceder, > > tengo que ir a > > ip_raspberry/tryton ? > > tryton sale por el puerto 8000? > > > he buscado con "netstat -a | grep try" > pero no aparece , sin embargo, si pongo: > > sudo service tryton-server status > > me dice active runnig > Si te dice que el servicio esta running es que has instalado tambien trytond a traves de los paquetes de systema ya que la instal·lación por pip no instal·la ningún servicio. A continuación te dejo un ejemplo de los passos a realizar: https://stackoverflow.com/questions/41144739/tryton-erp-installation-with-sao-on-ubuntu#41161308 Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Re: III Jornadas Tryton Barcelona
On 18 de maig de 2018 15.29.43 CEST, Francesc Furroywrote: >hola a todos, estas jornadas estan abiertas a todos o solo a >desarolladores >autorizados? > Estab abiertas a todo el mundo, ya sean usuarios de tryton, desarroladores o gente que este interesada en el proyecto. Un saludo, >gracias > > > >El divendres, 13 abril de 2018 9:44:30 UTC+2, Albert Cervera i Areny va > >escriure: >> >> Hola, >> sólo quería comunicaros que tenemos reservado nuevamente el Movistar >> Centre (hasta hace poco llamado Mobile World Centre) los próximos >días 25 y >> 26 de Junio para unas nuevas Jornadas Tryton Barcelona. >> >> De momento, sólo reservar fechas, próximamente más información. >> >> ¡Un saludo! >> >> -- >> Albert Cervera i Areny >> http://www.NaN-tic.com >> Tel. 93 553 18 03 >> -- Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi brevedad.
Re: [tryton] Quite lost how to contribute
El 18/05/18 a les 10:25, Jean-Michel Pouré ha escrit: > Dear all, > > First, I would like to congratulate you for the hard work around Tryton. > > Tryton seems a nice alternative to OpenERP/Odoo and I am willing to > contribute. Welcome aboard, > > But frankly, I am quite lost and need some advice. > > First, I am looking for documentation: > http://doc.tryton.org/4.8/ > https://github.com/tryton/trytond/blob/develop/INSTALL > https://trytond.readthedocs.io/en/latest/ > > What is the main documentation and how to contribute to it? The main documentation is http://doc.tryton.org > > Secondly, I am quite lost how to install Tryton latest version. What do you undestand by latest version? Stable version or development version. Stable version can be installed with pip or with packages from your distrubtion. But normally distributions does not contain the latest version so pip is (for me) the best option. > > Again, there are several sources. Tryton is available on Github. It is only > when visiting http://www.tryton.org/download.html that I understand hg should > be used. But downloading modules is not documented. We have mirrors on github and on bitbucket, but main development happens on our mercurial repositories that are hosted on hg.tryton.org We have on repository for each component: trytond (the server). tryton (the desktop client), sao (the webclient) and one for each module (You can see them on hg.tryton.org/modules) > > Lastly, when trying to use web client, I don't understand whether it is > Werkzeug or SAO and how to install it. The webclient is sao. You can install it from npm if you want: https://www.npmjs.com/package/tryton-sao > > My personal point of view is that a lot of energy is being lost between > several "entry points". At this point of development, maybe Tryton needs a > single board system and a single repository and a single documentation > system, but this is just a beginner thought.> > I am willing to write some documentation if guide me. An example > documentation I have written: > https://github.com/ffries/Debian-installer-with-serial-console That will be great, we miss some documentation for sure. > > Please tell me how to update documentation and we can use this thread to > update the installation documentation and make it more simple. You should propose a patch to the doc folder of the trytond server. Here is our how to contribute: http://www.tryton.org/how-to-contribute.html We are normally online on the #tryton chanell on freenode. So feel free to ask there if you have simplier doubts. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/27d4a35b-ef59-3bc6-942b-f7e2f8052b3e%40koolpi.com.
Re: [tryton-dev] NSIS new string PreviousInstall
El 11/05/18 a les 17:28, Cédric Krier ha escrit: > On 2018-05-08 09:41, Sergi Almacellas Abellana wrote: >> Spanish: "Tryton ja esta instalado.$\n$\nPulse `OK` para eliminar la >> versión anterior o `Cancelar` para cancelar la actualitzación." > On 2018-05-08 10:41, Xavier Codinas wrote: >> Spanish: "Tryton ya esta instalado.$\n$\nPulse `OK` para eliminar la >> versión anterior o `Cancelar` para cancelar la actualización." > On 2018-05-11 07:14, Sergio Morillo wrote: >> Spanish: "Tryton ya está instalado.$\n$\nPulse `OK` para eliminar la >> versión anterior o `Cancelar` para cancelar la actualización." > On 2018-05-11 16:26, Raimon Esteve wrote: >> Spanish: "Tryton ya está instalado.$\n$\nPulse `OK` para eliminar la >> versión anterior o `Cancelar` para cancelar la actualización." > On 2018-05-11 16:25, Raimon Esteve wrote: >> Spanish: "Tryton ya está instalado.$\n$\nPulse `OK` para eliminar la >> versión anterior o `Cancelar` para cancelar la actualización." > Guys, this starts to become ridiculous. Is it possible to have a > definitive correct translation. Sergio and Raimon (both times) use the correct sentence, which I will repeat here to clarify: Spanish: "Tryton ya está instalado.$\n$\nPulse `OK` para eliminar la versión anterior o `Cancelar` para cancelar la actualización." Sorry for the mess. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/59030516-1371-b852-c576-3959d9e9f2c1%40koolpi.com.
Re: [tryton-es] Pagos parciales de facturas
El 15/05/18 a les 01:55, Josias Pérez ha escrit: > Hola, buenas tardes, > > Quería consultar sobre un posible error al momento de realizar un pago > parcial, en la versión 4.8. > > Para reproducirlo se realiza lo siguiente: > 0. Tener los módulo de account_invoice y bank > 1. Crear y confirmar una factura > 2. Realizar el pago parcial de la misma > 3. Al momento de guardar aparece el siguiente mensaje: Los valores de > "Líneas de pago" no son válidos. > > Se puede hacer la prueba en el servidor http://demo.tryton.org Deberias reportar-lo en https://bugs.tryton.org Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] bug in carrier-weight ?
El 15/05/18 a les 10:51, JC Michel ha escrit: > Hi, > > When using carrier-weight to compute an invoice line for a carrier > depending on weight: > when coming back, in Sale, to Draft state to edit the Carrier, the > generated carrier invoice line is not deleted, > and creates an error > File "/trytond/modules/sale_shipment_cost/sale.py", line 207, in > set_shipment_cost > with Transaction().set_context(self._get_carrier_context()): > File "/trytond/modules/carrier_weight/sale.py", line 33, in > _get_carrier_context > lines = sorted(lines, key=keyfunc) > TypeError: unorderable types: NoneType() < NoneType() > > Seems that the carrier line doesn’t have a weight! > Deleting manually the invoice line seems to fix this. > IMHO the carrier line should be deleted when going back in Draft state. > Should I open a bug? Yes, you should open a bug with the steps to reproduce it on a fresh database and with the stack trace generated. > > PS : tryton version 4.6 > It seems that you are also using python3 version. It will be great if you can confirm it on the issue. > Jean-Christophe Michel > -- > > > SYMÉTRIE, livres et partitions > > 30 rue Jean-Baptiste Say > 69001 LYON > FRANCE > > www.symetrie.com <https://symetrie.com> > > www.facebook.com/symetrie <http://facebook.com/symetrie> | > www.twitter.com/symetriecom <http://twitter.com/symetriecom> | > www.linkedin.com/company/symetrie-music-publisher > <http://www.linkedin.com/company/symetrie-music-publisher> > > tél : +33 (0) 478 29 52 14 > > -- > 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/4CD16F9A-49E1-4E41-9F0C-C1443E8B27B8%40symetrie.com > <https://groups.google.com/d/msgid/tryton/4CD16F9A-49E1-4E41-9F0C-C1443E8B27B8%40symetrie.com?utm_medium=email_source=footer>. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/d8ab9510-4480-e2d4-50e6-5a1f0152fb74%40koolpi.com.
Re: [tryton-es] Partida contable inicial
El 14/05/18 a les 06:07, Josias Pérez ha escrit: > Hola comunidad, > > Quisiera saber si pueden ayudarme a hacer una partida de saldos inicial > para cuentas, tanto del debe como del haber. > > He intentado crear un asiento pero no sé realmente de qué cuentas se > puede realizar. Se puede realizar de todas las cuentas que no sean de tipo vista. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Ventas por consignación
El 13/05/18 a les 05:43, Fernando Sánchez ha escrit: > Saludos a la Comunidad > > En este caso para consultar si existe algún modulo para ventas en > consignación. Esto significa que tu proveedor te entrega mercadería para > ser vendida sin que el mismo nos haya hecho una venta formal de esos > productos. Solo al momento de nosotros venderlo debería generarse la > compra (producto y cantidad vendida) con ingreso al almacén y generación > de factura de proveedor, al mismo tiempo que la venta . > (despacho y factura de cliente). Desde la versión 4.6 existe el módulo stock_consignement para gestionar la consignación de existèncias: http://doc.tryton.org/4.8/modules/stock_consignment/doc/index.html -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Asset yearly depreciation on fiscal years that do not end on December
El 09/05/18 a les 14:49, Cédric Krier ha escrit: > So I would say that it will be better to define on the asset instead of > depending on fiscal year when it is yearly which month to use. Agree, this allows more use cases. And maybe > we could also have such option for the day of the month (with a fallback > to the last day of it is out of the month). For me it makes sense to allow to specify the day for both frequencies and the month only for yearly frequencies. Adding a default value of -1 for those fields will keep the current behavior (use last day and last month). I will open an issue an propose a patch for it. Thanks. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/451a6203-b0cd-f3c6-dc52-37ac35857460%40koolpi.com.
[tryton] Asset yearly depreciation on fiscal years that do not end on December
Hi, We've detected a strange behavior (at least for our costumers) when using yearly deprecation on a company that it's fiscal year does not end on December. The current behavior is to always create the deprecation lines on December but our user expected to have it created on the last month of the fiscal year (which for us is September). I'm wondering if we should change the current module behavior to always use the last month of the fiscal year when creating the deprecation table of an asset. Thoughts? -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/4602fb87-9ea1-48b4-d098-a31700dae43d%40koolpi.com.
Re: [tryton-dev] NSIS new string PreviousInstall
El 08/05/18 a les 00:15, Cédric Krier ha escrit: > Hi, > > @translators, I'm working on support automatic uninstallation of > previous version on Windows [1]. For that, the string PreviousInstall > has changed and must be retranslated: > > LangString PreviousInstall ${CURLANG} "Tryton is already > installed.$\n$\nClick `OK` to remove the previous version or `Cancel` to > cancel this upgrade." Catalan: "Tryton ja està instal·lat.$\n$\nPremeu `OK` per eliminar la versió anterior o `Cancel·la` per cancel·lar l'actualització." Spanish: "Tryton ja esta instalado.$\n$\nPulse `OK` para eliminar la versión anterior o `Cancelar` para cancelar la actualitzación." -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/75de9126-94bd-02fd-07b1-7ccf730a6a86%40koolpi.com.
Re: [tryton-dev] Missing translations for release 4.8
El 07/05/18 a les 14:38, Udo Spallek ha escrit: > Is it correct that there are more than 5000 entries to edit? This probably because you get results from country and currency modules. Skipping this modules gives (at least for catalan) less words to translate. See: translation=# select count(1) from ir_translation where lang = 'ca' and src = value; count --- 5944 translation=# select count(1) from ir_translation where lang = 'ca' and src = value and module not in ('currency', 'country'); count --- 978 Also it's possible that there are common word on your language that are not correctly translated. For example in catalan we translate model and id with the same wording. Skipping them gives less entries to translate: translation=# select count(1) from ir_translation where lang = 'ca' and src = value and src not in ('Model', 'ID') and module not in ('currency', 'country'); count --- 489 The number depends on the languages but expect to have from 500 to 1000 missing translations as (at least) all buttons strings, helps and confirms translations are missing. Hope it helps. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/3e5499f2-d57d-1b24-effe-9936730087ef%40koolpi.com.
[tryton-dev] Missing translations for release 4.8
Hi Translations, We found that there are some missing translations on the 4.8 release [1] which should be fixed by adding new translations on pootle. We've scheduled a new minor release on 21th of May which may exceptionally contain the new translations. Translations have two weeks to upload them. We will publish a news on the release date explaining the issue and encouraging people to do the database update for this release so new translations are loaded. In order to find the missing translations the best is to create a new database with all the modules installed. This can be achieved by the following command: trytond-admin -d translation -l -u ir res `curl https://downloads.tryton.org/4.8/modules.txt | tr '\n' ' '` Once you have a the database created all missing translations can be found with the following SQL QUERY: SELECT * FROM ir_translation WHERE lang = AND src = value AND fuzzy = false; Those translations must be resubmitted to pootle before the release date. Thank you for collaboration and sorry for the inconvenience. [1] https://bugs.tryton.org/issue7414 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/f08f67da-d35d-c234-c6d7-a2ba62e226b2%40koolpi.com.
Re: [tryton] Usage of Spanish accounting module
El 02/05/18 a les 10:06, Esteve Boix ha escrit: > Hi Sergi, > > Thanks for your reply. > > In fact, I suspect that the module that is giving the problems is indeed > account_es, since it remains at 4.6 as there is no 4.8 version available > in PIP. Yes probably. The problem is that it requires trytond 4.6, which is incompatbile with other modules in 4.8 series. > As I understand, there is no way to remove it before the upgrade. Yes you can uninstall it with: pip uninstall trytond_account_es > I'll give a go at the new test version. Will be great to have your feedback about the new version :) -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/2edc774a-bd95-4c58-28ee-f5a6b5e79de5%40koolpi.com.
Re: [tryton-es] Albaranes Internos solo controla stock a fecha de hoy
El 01/05/18 a les 00:33, Favio Dutria ha escrit: > Es bastante complejo dar una solución de fondo y es entendible que la > solución actual sea la mas acorde. > En nuestro caso lo que hicimos que mitiga el error pero no lo soluciona > de fondo: > 1- fue pasar como parámetro de búsqueda del stock la fecha efectiva, con > lo cual controlo que exista stock a esa fecha, esto no da garantías de > que luego no tenga stock negativo a fecha posteriores de este > movimiento...pero mitiga el problema. > Ejemplo: > -al 31/10 100 stock > -al 12/12 consumo 100, stock 0 > -si genero un mov hoy con fecha efectiva el 01/12 puedo consumir 100 > ya que tendría stock a esa fecha. Pero luego el mov ya generado el 12/12 > me daría -100 Entonces si por olvido no se entra correctamente el movimiento de entrada del producto y tienes estoc zero no te dejarà hacer el movimiento (aunque la fecha sea la correcta), por lo que a mi entender tampoco se arregla nada. > > 2- no permitir cambiar la fecha efectiva si el RI esta en estado > distinto de borrador o en espera.> > Como ves nuestra solución solo mitiga el problema. Creo que aquí lo importante es entender cual es el problema. Si tienes el stock negativo es que hay alguna información que no se ha entrado correctamente en el sistema y por ende solo lo puedes solucionar de dos formas: 1. Entrando la información correctamente 2. Corrigiendo la información que se ha entrado mal haciendo regularizaciones. Si el problema que quieres solucionar es otro, igual se puede dar otra solución. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Usage of Spanish accounting module
El 01/05/18 a les 16:41, Esteve Boix ha escrit: > I understand that if I have 4.6.0 installed with this module, I cannot > upgrade (easily) to 4.8.0, am I right ? Well, you can upgrade without problems but all the taxes and accounts that are removed on newer versions will not be removed from your existing database. Otherwise everything works as expected. > > I've tried the upgrade, but it clashes while doing the database update. I > understand that this happens because Tryton is using functionality that is > not present in 4.6's implementation of es ES chart of accounts module.> > I'm not in production. This is just a test server to check if Tryton can > fulfill our needs. > To upgrade, I did: > > ALTER TABLE ir_lang ADD parent VARCHAR; > > (as root) > pip install tryton trytond trytond-account trytond-account-eu > trytond-account-invoice trytond-account-invoice-stock trytond-account-product > trytond-company trytond-company-work-time trytond-country trytond-currency > trytond-party trytond-product trytond-product-attribute > trytond-product-price-list trytond-production trytond-production-routing > trytond-production-work trytond-production-work-timesheet trytond-purchase > trytond-sale trytond-sale-extra trytond-sale-opportunity > trytond-sale-price-list trytond-stock trytond-timesheet --upgrade > > ...all fine and succesfully updated. > Then I try to update the database: > > trytond-admin -c tryton/tryton.conf -d tryton --all > Traceback (most recent call last): > File "/usr/local/bin/trytond-admin", line 21, in > admin.run(options) > File "/home/esteve/.local/lib/python2.7/site-packages/trytond/admin.py", > line 54, in run > installdeps=options.installdeps) > File "/home/esteve/.local/lib/python2.7/site-packages/trytond/pool.py", > line 144, in init > self.start() > File "/home/esteve/.local/lib/python2.7/site-packages/trytond/pool.py", > line 97, in start > register_classes() > File > "/home/esteve/.local/lib/python2.7/site-packages/trytond/modules/__init__.py", > line 373, in register_classes > mod_file, pathname, description) > File > "/usr/local/lib/python2.7/dist-packages/trytond/modules/currency/__init__.py", > line 5, in > from .currency import * > File > "/usr/local/lib/python2.7/dist-packages/trytond/modules/currency/currency.py", > line 11, in > from trytond.model import ( > ImportError: cannot import name DeactivableMixin > > I'm stuck here. This error is beccause you are mixin some modules of 4.6 series with modules from 4.8 series. If you want to test the new version of account_es version on 4.8 series I have published bitbucket repository which I keep in sync with the development changes. You can download it from: https://bitbucket.org/pokoli/account_es/ Hope it helps. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/3b12067b-97aa-3cf8-a760-5bfde3a9b267%40koolpi.com.
Re: [tryton-es] ayuda para empezar a desarrollo
El 28/04/18 a les 17:18, francisco nataren ha escrit: > Hola bueno días foro, > > Escribo para solicitar su ayuda, ya que estoy aprendiendo esta > herramienta, me gustaría saber un poco mas de cosas especificar o > concretas, para empezar a desarrollar, mi pregunta es de donde debo de > partir, > > Ya vi su instalacion > estoy trabajando con el sistemas > > que mas me falta > Puedes mirar la documentación en http://doc.tryton.org Si quieres un poco de pràctica, puedes seguir este workshop: https://bitbucket.org/pokoli/tryton_workshop Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Albaranes Internos solo controla stock a fecha de hoy
El 23/04/18 a les 16:29, Favio Dutria ha escrit: > Buenos días. > Hola Favio, > Hago estas lineas porque he detectado que al crear un albarán interno, > el control de stock al ejecutar la acción "Reserva" lo hace siempre a > fecha de hoy, sin importar si se ingresa una fecha efectiva del > movimiento anterior a hoy. Esto genera un stock negativo si se crea el > albarán en una anterior a hoy donde no hay stock. He revisado el código y el comportamiento es reproducible en todas los procesos de asignación, no solo en el albarán interno. De todos modos, para mi me parece un comportamiento bastante aceptable, ya que si le has puesto una fecha efectiva en el pasado es que realmente este movimiento ya lo has hecho. La única mejora que se podría hacer es no validar ni el stock a día de hoy ya que cómo el movimiento es en el pasado, representa que ya se hizo y lo que introduce el usuario prevalece sobre lo que calcula el sistema. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] default cost and list price
El 23/04/18 a les 17:17, Francisco Maria Moyano Casco ha escrit: > El lunes, 23 de abril de 2018, 4:25:03 (UTC-3), Sergi Almacellas Abellana > escribió: >> El 22/04/18 a les 00:12, Francisco Maria Moyano Casco ha escrit: >>> Hi, >>> I am trying to put a default cost and list price, but had no success. >>> >>> The code am working on is the next one: >>> >>> >>>@staticmethod >>>def default_list_price(): >>>return 1.0 >>> .. >>> >>>I know that both fields are Property fields, and that is why my code >>> doesn't work. >>> >>>I am inventoring all my assets, and I need to have some defaults values >>> on the product.template >>> >>>Regards. >>>Francisco >>> >> Property fields have their default on the Property table. You should >> create a record with the field and not related to any record and this >> will be used as default value. >> > Sorry for bothering again. Is there any example on any module I could use? > I understand your reply, but I am not sure how to use it. You should create a record on the ir.property model. There is an example on the product module: http://hg.tryton.org/modules/product/file/4.2/configuration.xml#l32 Just adapt the field search and the value. For the value make sure to use , as prefix which is required by design. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/b272ce15-90ff-5736-9318-a68474cc3342%40koolpi.com.
Re: [tryton-dev] Mobile Apps
El 21/04/18 a les 03:40, Richmond Fiko ha escrit: > Hello, > > I thinks about a mobile apps in order to transfert information > from mobile user to a tryton (or GNU Health server). > Are there similar opensource projects or examples? > How can I connect to tryton server throught web services or API? > As an example application you have chronos [1][2] which connects tryton using a rest API and using user_applications. With the same structure you can develop your mobile app that connects to the tryton server via a custom designed api and sends the information. Hope it helps [1] https://addons.mozilla.org/en-US/firefox/addon/tryton-chronos/ [2] http://hg.tryton.org/chronos -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/47608583-913e-859b-d42c-e3d758c19dc9%40koolpi.com.
Re: [tryton] default cost and list price
El 22/04/18 a les 00:12, Francisco Maria Moyano Casco ha escrit: > Hi, > I am trying to put a default cost and list price, but had no success. > > The code am working on is the next one: > > >@staticmethod >def default_list_price(): >return 1.0 > .. > >I know that both fields are Property fields, and that is why my code > doesn't work. > >I am inventoring all my assets, and I need to have some defaults values on > the product.template > >Regards. >Francisco > Property fields have their default on the Property table. You should create a record with the field and not related to any record and this will be used as default value. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/a8d49ca2-6277-11b0-3b52-4cfa315b2c29%40koolpi.com.
Re: [tryton-es] III Jornadas Tryton Barcelona
El 19/04/18 a les 16:42, Oscar Alvarez ha escrit: > > On 16/04/18 04:18, Sergi Almacellas Abellana wrote: >> El 15/04/18 a les 16:52, Oscar Alvarez ha escrit: >>> On 13/04/18 02:44, Albert Cervera i Areny wrote: >>>> Hola, >>>> sólo quería comunicaros que tenemos reservado nuevamente el Movistar >>>> Centre (hasta hace poco llamado Mobile World Centre) los próximos días >>>> 25 y 26 de Junio para unas nuevas Jornadas Tryton Barcelona. >>>> >>>> De momento, sólo reservar fech >>> Buenas comunidad >> Hola Oscar, >>> Desde Presik (Colombia) nos encantaría participar con alguna charla para >>> dar a conocer y exponer el funcionamiento de algunos de los modulos que >>> hemos desarrollado y os cuales queremos compartir con ustedes: >>> >>> * Gestión Personal (Nómina - Roles de pago) >>> * Gestión Hotelera >>> * Gestion de Mantenimiento >>> * Cliente Tryton TPV (POS) desarrollado en Qt5 >>> >>> >>> Adicionalmente tenemos un pequeño desarrollo funcional de integración de >>> Tryton Flask con React <https://reactjs.org/> para desarrollo de Web >>> Apps. >> ¿Vais a venir a España para las jornadas o queréis hacer la presentación >> por video conferencia? > Hola Sergi y comunidad > > La idea o al menos lo que me gustaria es ir para tambien tener la > oportunidad de compartir experencias con ustedes, pero el presupuesto > creo que no nos da para cubrir todo el viaje, pero quizas exista una o > algunas empresa de España o un cliente de ustedes interesada en > patrocinar la conferencia por algun modulo que iriamos a exponer, el > modulo de hoteles por ejemplo tiene mucho potencial y los hoteles pagan > un alto valor por este tipo de software, se que no es facil pero bueno > dicen que tocar no es entrar ;) Entonces quizá valdria la pena que hicieras algún tipo de exposición vendiendo tu producto para los que no sabemos de que se trata. Igual podemos valorar también la opción de grabar la presentación en video y lo passamos allí para los asistentes (recuerdo que alguna vez hicimos algo parecido). Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-dev] import_data and model account with account_account_type (RESEND)
El 19/04/18 a les 18:14, Richard PALO ha escrit: > Le 19/04/2018 à 17:38, Cédric Krier a écrit : >> On 2018-04-18 17:40, Richard PALO wrote: >>> In the French plan, there are unfortunately 7 instances of >>> account_account_type_template >>> with the name 'Autres'... but in the xml, there are indeed unique >>> ID's... >>> >>> Is the mapping of these (xml id => sql id) stored somewhere it can be >>> accessed >>> to somehow facilitate import? >> >> In "ir.model.data". > > Great, for example in my case in hand I find a record with > fs_id = 'creances_autres' having db_id = 196 > which is correct for account_account_type_template > > Guess I'm not sure what do I need to do to get 'creances_autres' (unique > xml id) > to work instead of using the name 'Autres' for the 'type' (last field in > account.csv) > Seems account_account_type_template record id's differ from > account_account_type ids. You can use the following code to get the db ids: pool = Pool() ModelData = pool.get('ir.model.data') db_id = ModelData.get_id('account_fr', 'creances_autres') And then you can get the type of your company with: Type = pool.get('account.type') type, = Type.search([('company', '=', company.id), ('template', '=', db_id)]) -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/51bd2d6a-680e-5556-5b94-eea42d0eb58d%40koolpi.com.
Re: [tryton-dev] Error on creation of Chart of account from Template
El 19/04/18 a les 23:56, Richmond Fiko ha escrit: > Hello, > > I create a COA template. Just for curiosity, for which country is the CoA? > I install it but when I want to create a new chart of account from this > template, I got this error. > > Traceback (most recent call last): > File "/trytond/wsgi.py", line 47, in dispatch_request > return endpoint(request, **request.view_args) > File "/trytond/protocols/dispatcher.py", line 41, in rpc > request, database_name, *request.rpc_params) > File "/trytond/wsgi.py", line 39, in auth_required > return wrapped(*args, **kwargs) > File "/trytond/protocols/wrappers.py", line 106, in wrapper > return func(request, pool, *args, **kwargs) > File "/trytond/protocols/dispatcher.py", line 163, in _dispatch > result = rpc.result(meth(*c_args, **c_kwargs)) > File "/trytond/wizard/wizard.py", line 287, in execute > return wizard._execute(state_name) > File "/trytond/wizard/wizard.py", line 318, in _execute > result = self._execute(transition()) > File "/trytond/modules/account/account.py", line 1923, in > transition_create_account > template2type=template2type) > File "/trytond/modules/account/account.py", line 117, in create_type > assert self.parent is None > AssertionError > > > Can someone help me to understand it? The type you used on the root account of your CoA has a parent set. As it's the type of the root account is should not have any parent set. Hope it helps. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/c3e06789-7c09-d52b-85c1-576db6c8bf6f%40koolpi.com.
Re: [tryton-es] Re: Nueva versión del plan contable
El 19/04/18 a les 23:46, Raimon Esteve ha escrit: > Buenas Sergi Hola Raimon, > > la idea que agrupastes el account_es + account_es_pyme, ahora que las > versiones más recientes permiten varios planes contables un sólo módulo, > me gustó la idea de simplifcación. Siempre se ha permitido varias versiones de un plan contable en un módulo, solo hacía falta buscar una forma fácil de mantenerlo ;-) > > Este lunes y hoy, lo hemos estado dando un vistazo y la simplificación > para nosotros NO nos vale -más cuando estamos "competiendo" con otros > proyectos "made in spain"-. Estaría bien que expliquéis porqué no os vale y que es lo que tiene vuestra competencia que os hace falta. > > Ahora bien, si crees que en ciertos proyectos ves que esta > simplificación va a servir, y dispones dels visto y bueno del Céd, > adelante, pero por nuestra parte, me sale mal, no vamos a continuar por > este camino. Me sale mal. Continuaremos con la escena de varios > proyectos de planes contables españoles en Tryton. Creo que te sabría menos mal si en vez de seguir por otro camino todos fuéramos por el mismo camino con un solo plan contable. Desde luego yo no soy nadie para obligarlos a seguir este camino, por mi cómo si os queréis cambiar a otro ERP de cuyo nombre no me quiero acordar :P Lo que si tengo claro es que un pena que no hagamos ni el mínimo esfuerzo en comentar (y discutir) lo que creéis que esta mal y os hace tomar esta decisión. Estoy seguro que si lo intentamos dejaremos de tener varios proyectos de plantes contables españoles. Si lo que queremos es tener una comunidad potente en España, debemos dar ejemplo de ello. Saludos, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Mensaje de alerta/error dentro de Wizard (StateView)
El 16/04/18 a les 15:54, Gloworms Glow ha escrit: > Si, así lo tengo y hasta el mensaje de error funciona, el problema es > después. Cuando apreto 'Ok' al mensaje de error, no me vuelve a llevar a > la ventana del wizard, sino que me da el error que dije antes. Que versión del cliente tienes? Recuerdo que se incluyó alguna corrección de errores de este tipo en la última versión menor. Debería estar solucionado en la versión 4.6.5 > > Acá escribo el código que tengo: > > class ChangeStateAsk(ModelView): > __name__ = 'change_state.ask' > date = fields.Date('Date') > > class ChangeDate(Wizard): > __name__ = 'change_state.date' > > start = StateTransition() > ask = StateView('change_state.ask', > 'md_hhrr.change_state_ask_view_form', [ > Button('Cancel', 'end', 'tryton-cancel'), > Button('Activate', 'confirm', 'tryton-ok', > default=True), > ]) > confirm = StateTransition() > > def transition_start(self): > return 'ask' Puedes utilizar la propiedad _start_state para indicar que empieze en ask. Así te ahorras la transición start. > > @classmethod > def __setup__(cls): > super(ChangeDate, cls).__setup__() > cls._error_messages.update({ > 'incorrect_date': 'No se puede cambiar la fecha', > }) > > def transition_confirm(self): > if (self.ask.date > date.today()): > self.raise_user_error('incorrect_date') > return 'end' Esto lo puedes hacer también con un dominio en el campo: date = fields.Date('Date', domain=[('date', '<=', Date())]) de forma que el cliente ya no te va a dejar confirmar si pones un valor incorrecto. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Mensaje de alerta/error dentro de Wizard (StateView)
El 16/04/18 a les 15:12, Gloworms Glow ha escrit: > Hola! A ver si alguien me puede ayudar.. > Hice un wizard que me pide una fecha. Y si la fecha no es correcta le > digo que me mande un mensaje de error con "_error_messages". > Al probar, cuando pongo la fecha me aparece el cartel que dice el error, > pero cuando apreto el boton de 'Ok' me sale el error: > > ERROR:tryton.common.common:Traceback (most recent call last): > File ".../tryton-4.6.0/tryton/common/common.py", line 1196, in process > rpc_execute=rpc_execute) > File ".../tryton-4.6.0/tryton/common/common.py", line 1057, in > process_exception > raise RPCException(exception) > RPCException: > > > > Alguien sabe porque me aparece este error? O como hago para poner un > mensaje dentro de una ventana de wizard? > Gracias! Debes utilizar el siguiente estructura: class Wizard: @classmethod def __setup__(cls): super(Wizard, cls).__setup__() cls._error_messages.update({'my_error': 'No puede...'}) def transition_ok(self): self.raise_user_error('my_error') Si no publicas el código de tu assitente te podremos ayudar mejor. Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] III Jornadas Tryton Barcelona
El 15/04/18 a les 16:52, Oscar Alvarez ha escrit: > > On 13/04/18 02:44, Albert Cervera i Areny wrote: >> Hola, >> sólo quería comunicaros que tenemos reservado nuevamente el Movistar >> Centre (hasta hace poco llamado Mobile World Centre) los próximos días >> 25 y 26 de Junio para unas nuevas Jornadas Tryton Barcelona. >> >> De momento, sólo reservar fech > > Buenas comunidad Hola Oscar, > > Desde Presik (Colombia) nos encantaría participar con alguna charla para > dar a conocer y exponer el funcionamiento de algunos de los modulos que > hemos desarrollado y os cuales queremos compartir con ustedes: > > * Gestión Personal (Nómina - Roles de pago) > * Gestión Hotelera > * Gestion de Mantenimiento > * Cliente Tryton TPV (POS) desarrollado en Qt5 > > > Adicionalmente tenemos un pequeño desarrollo funcional de integración de > Tryton Flask con React <https://reactjs.org/> para desarrollo de Web Apps. ¿Vais a venir a España para las jornadas o queréis hacer la presentación por video conferencia? Un saludo, -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Re: Nueva versión del plan contable
El 13/04/18 a les 18:39, Albert Cervera i Areny ha escrit: > 2018-04-13 12:23 GMT+02:00 Sergi Almacellas Abellana <se...@koolpi.com > <mailto:se...@koolpi.com>>: > > El 29/03/18 a les 18:04, Sergi Almacellas Abellana ha escrit: > > Se ha mantenido la misma > > estructura de cuentas pero se simplificado la estructura de impuestos > > incluyendo solo los que se utilizan mas habitualmente. > En la última versión se ha simplificado también la estructura de cuentas > eliminando cuentas de tipo vista que no eran necesarias ya que solo > tenían un hijo. También se ha simplificado las cuentas de impuestos como > se comento en [1] > > > No tengo muy clara esta última modificación que comentas de eliminar las > cuentas vista que sólo tienen un hijo. Al final una cuenta vista solo sirve para sumar las cuentas hijas. Si por defecto tienes solo un hijo, no hace falta sumar nada ya que el saldo de la vista y la de las hijas será siempre el mismo. > > Por un lado veo que por ejemplo en la cuenta con ID "pgc_6690_pyme" se > ha cambiado el código a "669". Entiendo que lo que quieres en realidad > es llamarle "pgc_669_pyme"? He intentado mantener los id para simplificar la actualización de versiones anteriores. > > Por otro lado el módulo account_es "original" estaba pensado sobretodo > para ser utilizado con el account_code_digits para dejar todas las > cuentas no-vista a un número fijo de dígitos.> > Entiendo que esto se hace raro a otros países pero diría que es > imprescindible para poder ofrecer la contabilidad en España. > > ¿Tienes alguna idea de como abordar esta cuestión sin utilizar estas > cuentas vista que se suprimen en este commit? El account_code_digits solo afecta a las cuentas que no son de tipo vista [3] y estas no se han modificado. Por lo que seguirá funcionando exactamente igual. [3] https://bitbucket.org/trytonspain/trytond-account_code_digits/src/85d60c7f2c6d37c7b8f2c5327dc1204958fb20f6/account.py?at=default=file-view-default#account.py-57 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton] Re: Creating a release leader
El 13/04/18 a les 18:40, Cédric Krier ha escrit: > On 2018-04-13 17:54, Sergi Almacellas Abellana wrote: >> El 09/04/18 a les 15:20, Cédric Krier ha escrit: >>> B2CK spent more than 10% of its revenue to support and maintain Tryton. >>> This work include: preparing releases, fixing reported bugs, cleaning >>> code, upgrading new dependencies, publishing news, answering questions >>> etc. >> >> For the release may be can do as other projects an split the work >> between several companies. For example in the kubernetes project a >> "Release Leader" (not sure if this is the right term) is elected for the >> next release and this person is responsible for all the work related to >> the next release. >> >> What do you think? > > Doing the actual release is not much time consuming as I have wrote > scripts to automate it. But it is all the related works like writing a > new, setup the demo server, update the documentation, prepare the > translations etc. that is time consuming. And I do not think it is fair > to delegate all the tasks to a single "release leader". Those tasks > should be divided between some people that can be trusted to do the job. > So we should have a list of tasks to do and a list of people to divide the job on. I think it will be great to ask for help before the feature freeze so others can offer themselves to help and we can divide the work for each release. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/2b597224-3c1c-06f4-36ad-34e04d73147d%40koolpi.com.
Creating a release leader (was: Re: [tryton] Financial campaign for Tryton task queue and notification)
El 09/04/18 a les 15:20, Cédric Krier ha escrit: > B2CK spent more than 10% of its revenue to support and maintain Tryton. > This work include: preparing releases, fixing reported bugs, cleaning > code, upgrading new dependencies, publishing news, answering questions > etc. For the release may be can do as other projects an split the work between several companies. For example in the kubernetes project a "Release Leader" (not sure if this is the right term) is elected for the next release and this person is responsible for all the work related to the next release. What do you think? -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/31f5746f-c7f3-53db-c4c1-3c666f347a48%40koolpi.com.
Re: [tryton-dev] Package release announce
El 01/04/18 a les 14:39, Cédric Krier ha escrit: > Hi, > > The package release announce on tryton-annou...@googlegroups.com relies > on rss2email [1] and farmhouse [2], a service that B2CK is running to > generate RSS feeds. > farmhouse relies on the XML-RPC API of the now legacy PyPI website. But > it is going to be deprecated [3]. There is no planned date yet but I > think it is better to act before. > There is a service that provides also RSS feed of packages on PyPI (and > also npm): https://libraries.io/ > It is based on AGPL code: https://github.com/librariesio > I think we could use this feed instead of farmhouse. > Here is an example of the RSS feed: > https://libraries.io/pypi/trytond/versions.atom > The only different is about the text and title. It is limited to just > the version number. So the email will contain only the version number, > the sender name will be " versions - Libraries.io" and the link > will point to libraries.io page. > But I think it is only minor changes compare to the benefit of not > having to run farmhouse and have continuous plan after the close of > XML-RPC API. Looks as a good plan for me. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/bdeab37d-8edd-fe2f-441b-f728299bec9b%40koolpi.com.
Re: [tryton-dev] ImportError: cannot import name register_default_jsonb
El 13/04/18 a les 10:59, Carlos Ibrahim Arias ha escrit: > Hello, > > I'm testing tryton version 4.6 on a centos 7 host. I did the installation > with no errors using the following script > https://bitbucket.org/carlos_ia/trytoninstall/src/454963514b8270619c948c376a2318dcfb86c3cc/tryton-install?at=default=file-view-default > based on nantic tools. > > When trying to the init setup I got the following error: > > [tryton@trytontest ~]$ /home/tryton/trytonERP/trytond/bin/trytond-admin > --config /etc/trytond.conf -d cialDB --logconf /etc/trytond_log.conf --all > [Fri Apr 13 08:51:01 2018] INFO:server:using /etc/trytond_log.conf as logging > configuration file > Traceback (most recent call last): > File "/home/tryton/trytonERP/trytond/bin/trytond-admin", line 21, in > > admin.run(options) > File "/home/tryton/trytonERP/trytond/trytond/admin.py", line 20, in run > Database = backend.get('Database') > File "/home/tryton/trytonERP/trytond/trytond/backend/__init__.py", line 34, > in get > raise exception > ImportError: cannot import name register_default_jsonb The error is due to this changeset: http://hg.tryton.org/trytond/rev/5eb2714a75da which raised the required version of psycopg2 to 2.5.4 It seems that you have an older version. You should upgrade pyscopg2 in order to fix it. Hope it helps. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/6fe89384-6d15-c9db-a78c-1dad2def6669%40koolpi.com.