Re: [tryton] Attachments not reachable after restoring tryton 3.8 dump pg through psql

2017-09-25 Thread Axel Braun


Am 25. September 2017 19:39:19 OESZ schrieb Maah Moussa :
>Hello,
>Restoring a dump of tryton 3.8 to a new server tryton 3.8. Names of
>attachments are available but nil size. 
>What may cause that?

Backup was not correct?
Check the content of the backup file

HTH
Axel

-- 
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/DCA58DBF-3D01-4DF8-9FA0-085B6CC66E82%40gmx.de.


Re: [tryton-es] Re: Agregar datos en Campo One2Many en un on_change

2017-09-25 Thread Josias Pérez
Funciono muy bien para agregar los datos. Tengo duda remover las líneas 
generadas si el elemento que genera el on_change cambia o se deja en 
blanco. Creo que solo reconoce las líneas si ya está guardado el archivo. 

El viernes, 22 de septiembre de 2017, 17:43:00 (UTC-6), Sergi Almacellas 
Abellana escribió:
>
>
>
> On 23 de setembre de 2017 1.32.21 CEST, "Josias Pérez"  > wrote: 
> > def on_change_product(self): 
> >res = {} 
> >res['lines'] = {} 
> >if self.lines: 
> >Tengo problemas en esta línea 
> >res['lines']['remove'] = [x['id'] for x in self.lines] 
> > 
> >if not self.product: 
> >return res 
> > 
> > name = self.product+'%' 
> > products = Product.search([('name', 'ilike', name)]) 
> > for p in products: 
> > 
> >product_line = { 
> >'product': p.id, 
> >'precio_venta':p.list_price, 
> >} 
> >Y en esta también 
> >   res['lines'].setdefault('add', []).append((0, product_line)) 
> > 
> >Quiero que al efectuar un on_change en un campo me actualice un campo 
> >one2many, estoy en la versión 4.4 
> > 
>
> En la version 4.4 los on_change ya no tienen que devolver un diccionario 
> sino que tienes que modificar directamente la instancia con ActiveRecord. 
> Seria algo como: 
>
> self.lines = [] 
>
> for p in products: 
>line = Line() 
>line.product = product 
> 
>self.lines.append(line) 
>
> I ya lo tendrias. Asegurate de que el metodo no devuelva nada, sino que 
> simplemente modifique la instancia. 
> >Desde ya muchas gracias 
>
> Espero que te servia de ayuda. 
>
> Saludos, 
> > 
> >El miércoles, 20 de septiembre de 2017, 1:24:11 (UTC-6), Sergi 
> >Almacellas 
> >Abellana escribió: 
> >> 
> >> El 19/09/17 a les 23:29, Josias Pérez ha escrit: 
> >> > No me funciona el código, alguna actualización? Gracias. 
> >> En que version de tryton trabajas? 
> >> 
> >> Que intentas hacer? 
> >> 
> >> Si nos das mas información quizás te podamos ayudar con mas detalle. 
> >> 
> >> Un saludo, 
> >> 
> >> -- 
> >> Sergi Almacellas Abellana 
> >> www.koolpi.com 
> >> Twitter: @pokoli_srk 
> >> 
>
> -- 
> Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi 
> brevedad. 
>


[tryton] Attachments not reachable after restoring tryton 3.8 dump pg through psql

2017-09-25 Thread Maah Moussa
Hello,
Restoring a dump of tryton 3.8 to a new server tryton 3.8. Names of attachments 
are available but nil size. 
What may cause that?
Thanks 
Maah Moussa

-- 
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/54f634a1-0701-4a09-a596-1fd7e65827ba%40googlegroups.com.


[tryton] Sorting Model List in proteus

2017-09-25 Thread Maxime Richez
Hi,

I'm trying to sort a model list in proteus with sorted function... so i apply 
sort on each element of my model list and store them in a list, pop each record 
of my "unordered" model list, then try to append each record in my empty model 
list but get an error "assert record._parent is None"...
What's wrong with my scenario ?

https://pastebin.com/mcd2iTAA

Thanks for help !

-- 
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/2ca0a546-9990-4fea-8f44-20278fa8742a%40googlegroups.com.


Re: [tryton] SEPARATE ACCOUNT JOURNALS

2017-09-25 Thread Armand Mpassy-Nzoumba
Hi

On Sun, Sep 24, 2017 at 7:33 PM, Joa3  wrote:
>
> I am using GNU Health 3.2.2. When I have posted some cash expenses, I
> would like to see the cash (only) account / journal, the equivalent of the
> cash book in manual bookkeeping, with debits and credits (just as I may
> want to see the journals of other accounts). Is this possible with GNU
> Health? How do I navigate to it?
>

I don't have specific details of the configuration of your accounting
module. So my answer may not be specific enough.
It is recommended (not mandatory) to configure one cash/bank journal for
each cash/bank account:

*Financial - Configuration - Journal - Journal*

Expenses and Revenues should be processed using the Supplier and Customer
invoices functionalities respectively:

*Financial - Invoices - Supplier Invoices*
*Financial - Invoices - Customer Invoices*

When processing an invoice or a payment, you should select the journal
(revenues/expenses or cash/bank journal). Tryton will automatically credit
and debit the corresponding accounts:

Kind regards,

Armand

-- 
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/CAGb%2BB3f0%3DJzzYfdafx1E5%3DjEa%2BhGGtb_rUs2sycBvwka5k0xZQ%40mail.gmail.com.


Re: [tryton] proteus: is it possible to dynamically add/remove simple field to existing model

2017-09-25 Thread Richard PALO

Le 23/09/2017 à 22:41, Cédric Krier a écrit :

No, I'm only answering to the removing a field, adding is possible and
the basis of Tryton modularity.


OK, noted.
Works fine to add/remove programatically a module with the field.
No problem then manually dropping the field afterwards with psql.

cheers,
--

Richard PALO

--
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/cb9858f6-82ff-025c-c7d6-f3db0055369f%40free.fr.


Re: [tryton-es] Contract no no fija el tipo de pago al factuarar

2017-09-25 Thread Sergi Almacellas Abellana

El 25/09/17 a les 12:09, Manuel Bailen ha escrit:

Hola a todos,

Estoy desde que migré de la versión 3.8 a 4.0 las facturas generadas 
desde el modulo contratos aparecen sin "tipo de pago" tengo que 
reescribir el tercero para que asigne su tipo de pago. >

Alguna idea?


El problema es que el módulo contract no depende del 
account_payment_type por lo que no "conoce" este campo.


Se deberia desarrollar un módulo que depenga de los dos i ponga el valor 
en el campo.




Un saludo.



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


Re: [tryton-es] Re: Instalar Tryton 4.0

2017-09-25 Thread Sergi Almacellas Abellana

Hola,

El 08/09/17 a les 14:09, Pedro Enrique José de León Ayçaguer ha escrit:
Buenos días a todos... Como ven voy a paso de tortuga. Finalmente me 
resolví, siguiendo el consejo de Karla, y la opinión del Dr. González 
Barbone, a instalar la versión 4.4 de Tryton.. En una máquina instalé 
Servidor y Cliente, y en otra solo Cliente.  Todo bien. Pero ahora 
volvemos al tema original de mi inquietud sobre el manejo de los precios 
de facturación (en economías con inflación alta) cuando se factura en 
dólares pero la contabilidad se lleva en Moneda local.


Primer "postulado":  Tryton asume que los precios de COSTO y VENTA de 
los productos están fijados en la MONEDA POR DEFECTO de la Empresa.  Uds 
dirán si esto es en efecto así. Yo no encuentro como decirle otra cosa. 
Por ahora vamos a aceptar que esto funciona así para que les pueda 
explicar mi preocupación


Compro producto "A" que me lo facturan (y debo pagar) en U$S  15 con una 
Tasa de Cambio de 27 pesos uruguayos =>  costo  $   405,00
Fijo precio de venta con margen 25 %  =>   15 * 1,25 =  U$S  
18,75    a   Tasa de Cambio de 27 pesos uruguayos =>  venta  $   506,25


Un año después  Tasa de Cambio  U$S 1 =>  35,10    facturo en dólares 
ese producto y Tryton "le dice a mi cliente" que vale  $ 506,25 / 35,1 
=  U$S 14,4231 *con lo que ni siquiera cubro los costos...


Supongo que debe haber algún modo de sortear esta dificultad,  pero no 
la estoy viendo por ahora,  de modo que cuento con Uds para "salir del 
pantano".  Cordiales saludos


Si utilizas el módulo de facturación (account_invoice). Allí podras 
introducir la divisa en la que compras i si es distinta de la de la 
empresa se aplicarà la tasa de cambio en al contabilizar los apuntes.


Un saludo,

P.D: Deberias abrir un nuevo hilo para nuevas consultas.

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


[tryton-es] Contract no no fija el tipo de pago al factuarar

2017-09-25 Thread Manuel Bailen
Hola a todos,

Estoy desde que migré de la versión 3.8 a 4.0 las facturas generadas desde 
el modulo contratos aparecen sin "tipo de pago" tengo que reescribir el 
tercero para que asigne su tipo de pago.

Alguna idea?

Un saludo.


Re: [tryton] Posting Expenses

2017-09-25 Thread Sergi Almacellas Abellana

El 24/09/17 a les 20:15, Joa3 ha escrit:

HI group

HOW WOULD WE POST A DIRECT EXPENSE THAT HS TO BE PAID STRAIGHT BY CASH IN 
TRYTON?


You can enter and invoice (if any) using the expense account. Once the 
invoice is posted, you will have a wizard in order to pay it.


If you don't have any invoice, you can enter the move line directly as 
Account Move and enter the cash movement on the cash account.


I am running GNU Health version 3.2.2

Someone help




--
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/d505e05b-bf43-7472-a564-fc7d697c447b%40koolpi.com.