[tryton] Re: account_invoice reports

2017-03-20 Thread Richard PALO

Le 20/03/2017 à 14:03, Richard PALO a écrit :

Le 20/03/2017 à 00:19, Cédric Krier a écrit :

On 2017-03-19 18:28, Richard PALO wrote:

I have some question concerning account_invoice reports:

1. How do I get rid of the last page, which only has a header/footer?


As far as I have seen it is a bug in open/libre—office.



Reference please to the LO bugreport?  work-around?


At least temporarily, it seems I can work-around this by deleting
the manual page break after ''

perhaps it's possible to put the pagebreak in a conditional if invoice <> None
upon successif records.

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/6b906016-dcdb-afa8-10dd-1816d10b50f7%40netbsd.org.


[tryton-dev] Adding different backend

2017-03-20 Thread Nicolas Évrard

Hello,

I am currently working on two patches that will make it easier to
create python modules adding a new backend to tryton:

   - https://tryton-rietveld.appspot.com/33951002/
 This patch moves the handling of the SQL type of the tryton
 fields to the backend.

 In order to have a kind of lingua franca between tryton and the
 backend we specify on the field the "abstract" SQL types it
 wants to use (a M2O will use an INTEGER, a TimeDelta an
 INTERVAL, and so on).

   - https://tryton-rietveld.appspot.com/26231002/
 This patch uses the abstract SQL types to create the column in
 the backend instead of the raw SQL type that was used before.

You can see those patch in action in the following patch adding a
postgis backend which inherits almost everything from the postgres
backend: https://codereview.appspot.com/322730043/

We wonder if there is some kind of interest to make this backend
supported by community or if we should keep it in the B2CK realm.
According to me we should definitely support this backend (I
personally know ∞-time more people that would use this backend then
the mysql one). And this last remarks makes me wonder if we shouldn't
make of the mysql backend this kind of python package (supported by
the community but not release critical at all).

What are your thoughts about it?

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

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


Re: [tryton-es] ¿Hay algún módulo para Contabilidad de Costos en Tryton?

2017-03-20 Thread Sergi Almacellas Abellana

El 20/03/17 a les 16:16, Fabyc ha escrit:

Con la explicación veo que es suficiente con uno de los módulos
account_stock_*
que indicas además de los de producción.



Si no me falla la memoria el más utilizado es el continental, por lo que 
yo probaría este primero :)





Muchas gracias estimado Sergi.


Un placer poder ayudar.

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


Re: [tryton] Supply period for production

2017-03-20 Thread Cédric Krier
On 2017-03-20 07:31, 'Artem Braga' via tryton wrote:
> понедельник, 20 марта 2017 г., 1:25:05 UTC+2 пользователь Cédric Krier 
> написал:
> >
> > On 2017-03-19 11:58, 'Artem Braga' via tryton wrote: 
> > > Is it possible to get some use case where supply period at Production 
> > > Configuration could be used? I've read module documentation 
> > > here: 
> > http://doc.tryton.org/4.2/modules/stock_supply_production/doc/index.html 
> > > but the meaning of Supply Period is not so clear for me though. 
> >
> > You need to produce in advance because production takes times. And also 
> > you may need to make production in cascade. So the system can not know 
> > until which date in the future does it need to look to see what needs to 
> > be produced. The period allow to define from now up to which date it 
> > will look the stock levels. 
> >
> 
> Thanks for this detailed explanation. Regarding stock levels you mention 
> here- do you mean stock levels of finished goods? 

In Tryton, there is no such concept as "finished goods". There are only
means to get goods which could be by buying or producing or taking from
another location etc. So every goods in every storage location are being
tracked for supply.

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

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


Re: [tryton-es] ¿Hay algún módulo para Contabilidad de Costos en Tryton?

2017-03-20 Thread Fabyc
On Monday, March 20, 2017 at 9:32:27 AM UTC-5, Sergi Almacellas Abellana 
wrote:
>
> El 20/03/17 a les 15:23, Fabyc ha escrit: 
> > Hola estimado Sergi. 
> > 
> > On Monday, March 20, 2017 at 9:03:37 AM UTC-5, Sergi Almacellas Abellana 
> > wrote: 
> > 
> > El 20/03/17 a les 14:41, Fabyc ha escrit: 
> > > Hola estimad@s, 
> > 
> > Hola Fabyc, 
> > > 
> > > Alguien sabe si existe algún módulo para manejo de Contabilidad de 
> > Costos 
> > > en Tryton? 
> > > 
> > > Los módulos production_*  que se requieren ya los tiene el core, 
> > lo que 
> > > faltaría 
> > > es tener algún módulo para la contabilidad de costos para 
> utilizarla 
> > > conjuntamente 
> > > en la producción de bienes. 
> > > 
> > 
> > De hecho los módulos de producción ya se encargan de establecer el 
> > precio de coste en los movimientos de salida de la producción. Una 
> vez 
> > tengas esta información la puedes explotar cómo quieras :) 
> > 
> > Si quieres trasladar estos costos en tu contabilidad, puedes 
> utilizar 
> > los módulos account_stock_continental o anglo_saxon dependiendo del 
> > método que quieras. 
> > 
> > 
> > Como que me hayo un poco confundido al respecto. ¿La contabilidad de 
> > costos no es lo mismo que la contabilidad analítica? ¿Si ese es el caso, 
> > entonces se deberían utilizar los módulos analytic_* que veo que hay en 
> > el core? 
> > O definitivamente no son necesarios los módulos de la contabilidad 
> > analítica? 
>
> La contabilidad analítica sirve para segmentar los apuntes contables 
> según criterios analíticos. Para ello se define un árbol de contabilidad 
> que tiene una estructura totalmente personalizable (por ejemplo por 
> departamentos, centros de coste o zonas geográficas). 
>
> La contabilidad analítica es un añadido en caso de que tengas la 
> necesidad de segmentar para cada ingreso o gasto a que departamento (o 
> centro de coste o zona geográfica) pertenecer para posteriormente 
> explotar esa información de forma analítica. 
>
> > 
> > En resumen, para tener los costos y también reflejados en los asientos 
> > contables 
> > con sus respectivas cuentas es suficiente con los módulos que mencionas? 
>
> Para tener los costes de inventario reflejados en el plan de cuenta es 
> suficiente con los módulos account_stock_continental o 
> account_stock_anglosaxon. Cada uno añade un método de coste. En cada 
> ejercicio fiscal deberas configurar el método de coste y luego para cada 
> producto/categoria las cuentas dónde quieres contabilizar el stock. A 
> partir de allí, el sistema se encargará de realizar los asientos 
> contables que se requieran para que el coste de inventario este 
> reflejado en las cuentas que le has configurado. 
>
> Luego, si requieres segmentar esta información en función de otros 
> criterios, tendrás que añadir los módulos de contabilidad analítica, 
> però estos sólo son un añadido a la contabilización (ya se de facturas o 
> inventarios). 
>

Me has aclarado mucho al respecto.

Con la explicación veo que es suficiente con uno de los módulos 
account_stock_* 
que indicas además de los de producción.

Muchas gracias estimado Sergi.

--
Saludos cordiales
 

>
> Un saludo, 
>
> > 
> > Gracias 
> > 
> > -- 
> > Saludos cordiales 
> > 
> > 
> > No me queda claro si con esto te contesto la pregunta, sinó deberías 
> > ser 
> > un poco mas concreto sobre lo que andas buscando. 
> > 
> > Un saludo, 
> > -- 
> > Sergi Almacellas Abellana 
> > www.koolpi.com  
> > Twitter: @pokoli_srk 
> > 
>
>
> -- 
> Sergi Almacellas Abellana 
> www.koolpi.com 
> Twitter: @pokoli_srk 
>


Re: [tryton] Supply period for production

2017-03-20 Thread Sergi Almacellas Abellana

El 20/03/17 a les 15:31, 'Artem Braga' via tryton ha escrit:

понедельник, 20 марта 2017 г., 1:25:05 UTC+2 пользователь Cédric Krier
написал:

On 2017-03-19 11:58, 'Artem Braga' via tryton wrote:
> Is it possible to get some use case where supply period at Production
> Configuration could be used? I've read module documentation
> here:
http://doc.tryton.org/4.2/modules/stock_supply_production/doc/index.html


> but the meaning of Supply Period is not so clear for me though.

You need to produce in advance because production takes times. And also
you may need to make production in cascade. So the system can not know
until which date in the future does it need to look to see what
needs to
be produced. The period allow to define from now up to which date it
will look the stock levels.


Thanks for this detailed explanation. Regarding stock levels you mention
here- do you mean stock levels of finished goods?


The system is going to create a forecast of stock quantities up to the 
given date and then create the production request required in order to 
satisfy the stock requirements (make the negative levels up to zero). 
The stock levels means the stock quantities on the forecast date (today 
+ supply period)



--
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/6b7898cc-8866-3e33-05c6-48aab725a890%40koolpi.com.


Re: [tryton] Supply period for production

2017-03-20 Thread 'Artem Braga' via tryton
понедельник, 20 марта 2017 г., 1:25:05 UTC+2 пользователь Cédric Krier 
написал:
>
> On 2017-03-19 11:58, 'Artem Braga' via tryton wrote: 
> > Is it possible to get some use case where supply period at Production 
> > Configuration could be used? I've read module documentation 
> > here: 
> http://doc.tryton.org/4.2/modules/stock_supply_production/doc/index.html 
> > but the meaning of Supply Period is not so clear for me though. 
>
> You need to produce in advance because production takes times. And also 
> you may need to make production in cascade. So the system can not know 
> until which date in the future does it need to look to see what needs to 
> be produced. The period allow to define from now up to which date it 
> will look the stock levels. 
>

Thanks for this detailed explanation. Regarding stock levels you mention 
here- do you mean stock levels of finished goods? 

 

> So the period should depend on your production delays and the number of 
> cascading production you could have. But also you must not give a too 
> big number if you do not want to produce too much in advance. 
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: cedric...@b2ck.com  
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

понедельник, 20 марта 2017 г., 1:25:05 UTC+2 пользователь Cédric Krier 
написал:
>
> On 2017-03-19 11:58, 'Artem Braga' via tryton wrote: 
> > Is it possible to get some use case where supply period at Production 
> > Configuration could be used? I've read module documentation 
> > here: 
> http://doc.tryton.org/4.2/modules/stock_supply_production/doc/index.html 
> > but the meaning of Supply Period is not so clear for me though. 
>
> You need to produce in advance because production takes times. And also 
> you may need to make production in cascade. So the system can not know 
> until which date in the future does it need to look to see what needs to 
> be produced. The period allow to define from now up to which date it 
> will look the stock levels. 
> So the period should depend on your production delays and the number of 
> cascading production you could have. But also you must not give a too 
> big number if you do not want to produce too much in advance. 
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: cedric...@b2ck.com  
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/d4293e9e-b7c1-446f-9c99-91f00995f923%40googlegroups.com.


Re: [tryton-es] ¿Hay algún módulo para Contabilidad de Costos en Tryton?

2017-03-20 Thread Sergi Almacellas Abellana

El 20/03/17 a les 15:23, Fabyc ha escrit:

Hola estimado Sergi.

On Monday, March 20, 2017 at 9:03:37 AM UTC-5, Sergi Almacellas Abellana
wrote:

El 20/03/17 a les 14:41, Fabyc ha escrit:
> Hola estimad@s,

Hola Fabyc,
>
> Alguien sabe si existe algún módulo para manejo de Contabilidad de
Costos
> en Tryton?
>
> Los módulos production_*  que se requieren ya los tiene el core,
lo que
> faltaría
> es tener algún módulo para la contabilidad de costos para utilizarla
> conjuntamente
> en la producción de bienes.
>

De hecho los módulos de producción ya se encargan de establecer el
precio de coste en los movimientos de salida de la producción. Una vez
tengas esta información la puedes explotar cómo quieras :)

Si quieres trasladar estos costos en tu contabilidad, puedes utilizar
los módulos account_stock_continental o anglo_saxon dependiendo del
método que quieras.


Como que me hayo un poco confundido al respecto. ¿La contabilidad de
costos no es lo mismo que la contabilidad analítica? ¿Si ese es el caso,
entonces se deberían utilizar los módulos analytic_* que veo que hay en
el core?
O definitivamente no son necesarios los módulos de la contabilidad
analítica?


La contabilidad analítica sirve para segmentar los apuntes contables 
según criterios analíticos. Para ello se define un árbol de contabilidad 
que tiene una estructura totalmente personalizable (por ejemplo por 
departamentos, centros de coste o zonas geográficas).


La contabilidad analítica es un añadido en caso de que tengas la 
necesidad de segmentar para cada ingreso o gasto a que departamento (o 
centro de coste o zona geográfica) pertenecer para posteriormente 
explotar esa información de forma analítica.




En resumen, para tener los costos y también reflejados en los asientos
contables
con sus respectivas cuentas es suficiente con los módulos que mencionas?


Para tener los costes de inventario reflejados en el plan de cuenta es 
suficiente con los módulos account_stock_continental o 
account_stock_anglosaxon. Cada uno añade un método de coste. En cada 
ejercicio fiscal deberas configurar el método de coste y luego para cada 
producto/categoria las cuentas dónde quieres contabilizar el stock. A 
partir de allí, el sistema se encargará de realizar los asientos 
contables que se requieran para que el coste de inventario este 
reflejado en las cuentas que le has configurado.


Luego, si requieres segmentar esta información en función de otros 
criterios, tendrás que añadir los módulos de contabilidad analítica, 
però estos sólo son un añadido a la contabilización (ya se de facturas o 
inventarios).



Un saludo,



Gracias

--
Saludos cordiales


No me queda claro si con esto te contesto la pregunta, sinó deberías
ser
un poco mas concreto sobre lo que andas buscando.

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




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


Re: [tryton-es] ¿Hay algún módulo para Contabilidad de Costos en Tryton?

2017-03-20 Thread Fabyc
Hola estimado Sergi.

On Monday, March 20, 2017 at 9:03:37 AM UTC-5, Sergi Almacellas Abellana 
wrote:
>
> El 20/03/17 a les 14:41, Fabyc ha escrit: 
> > Hola estimad@s, 
>
> Hola Fabyc, 
> > 
> > Alguien sabe si existe algún módulo para manejo de Contabilidad de 
> Costos 
> > en Tryton? 
> > 
> > Los módulos production_*  que se requieren ya los tiene el core, lo que 
> > faltaría 
> > es tener algún módulo para la contabilidad de costos para utilizarla 
> > conjuntamente 
> > en la producción de bienes. 
> > 
>
> De hecho los módulos de producción ya se encargan de establecer el 
> precio de coste en los movimientos de salida de la producción. Una vez 
> tengas esta información la puedes explotar cómo quieras :) 
>
> Si quieres trasladar estos costos en tu contabilidad, puedes utilizar 
> los módulos account_stock_continental o anglo_saxon dependiendo del 
> método que quieras. 
>

Como que me hayo un poco confundido al respecto. ¿La contabilidad de 
costos no es lo mismo que la contabilidad analítica? ¿Si ese es el caso, 
entonces se deberían utilizar los módulos analytic_* que veo que hay en 
el core?
O definitivamente no son necesarios los módulos de la contabilidad 
analítica?

En resumen, para tener los costos y también reflejados en los asientos 
contables 
con sus respectivas cuentas es suficiente con los módulos que mencionas?

Gracias 

--
Saludos cordiales


> No me queda claro si con esto te contesto la pregunta, sinó deberías ser 
> un poco mas concreto sobre lo que andas buscando. 
>
> Un saludo, 
> -- 
> Sergi Almacellas Abellana 
> www.koolpi.com 
> Twitter: @pokoli_srk 
>


Re: [tryton-es] ¿Hay algún módulo para Contabilidad de Costos en Tryton?

2017-03-20 Thread Sergi Almacellas Abellana

El 20/03/17 a les 14:41, Fabyc ha escrit:

Hola estimad@s,


Hola Fabyc,


Alguien sabe si existe algún módulo para manejo de Contabilidad de Costos
en Tryton?

Los módulos production_*  que se requieren ya los tiene el core, lo que
faltaría
es tener algún módulo para la contabilidad de costos para utilizarla
conjuntamente
en la producción de bienes.



De hecho los módulos de producción ya se encargan de establecer el 
precio de coste en los movimientos de salida de la producción. Una vez 
tengas esta información la puedes explotar cómo quieras :)


Si quieres trasladar estos costos en tu contabilidad, puedes utilizar 
los módulos account_stock_continental o anglo_saxon dependiendo del 
método que quieras.


No me queda claro si con esto te contesto la pregunta, sinó deberías ser 
un poco mas concreto sobre lo que andas buscando.


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


[tryton-es] ¿Hay algún módulo para Contabilidad de Costos en Tryton?

2017-03-20 Thread Fabyc
Hola estimad@s,

Alguien sabe si existe algún módulo para manejo de Contabilidad de Costos 
en Tryton?

Los módulos production_*  que se requieren ya los tiene el core, lo que 
faltaría 
es tener algún módulo para la contabilidad de costos para utilizarla 
conjuntamente 
en la producción de bienes.

Desde ya muchas gracias por su ayuda


[tryton] Re: account_invoice reports

2017-03-20 Thread Richard PALO

Le 20/03/2017 à 00:19, Cédric Krier a écrit :

On 2017-03-19 18:28, Richard PALO wrote:

I have some question concerning account_invoice reports:

1. How do I get rid of the last page, which only has a header/footer?


As far as I have seen it is a bug in open/libre—office.



Reference please to the LO bugreport?  work-around?


2. What would be the references to translate 'VAT:' to 'TVA:' in locale/fr.po
for both the company and the client/supplier?


It should be the translation of the option of the Selection field type
of PartyIdentifier. But I just saw that we used a function for the
selection which makes it not translatable.
https://bugs.tryton.org/issue6374



ok, I'll test this.


3. I have a need to kick up price_decimal for calculations, but I don't believe
it should be the resulting display precision for unit prices, how can I set this
to a different value on the report?


You can change the format_number call for unit_price to use the digits
you want.



I see that https://bugs.tryton.org/issue5386 changed the behaviour.

Seems perhaps this should be configurable, perhaps on an invoice
type basis...
e.g. on printed reports, for our case in hand, we would probably always
use the currency rounded default of cents, that is 2 decimal digits.


4. In the file store, final format should probably be pdf, is there a way to get
pdf stored, eventually a hybrid pdf?


It is the result of the report that is stored. So if the report is
configured to have pdf as output, it will be stored as-is.


In the current form (that is with extra pages) neither revisable nor pdf
is correct [yet}.

BTW, in the version of OpenERP we are preparing to deprecate, when an
invoice is printed, it is simply added to attachments where it can be
managed as any other attachment (including being deleted).

This would help not only the migration issues as indicated in the
filestore topic just prior, but also in fixing the formatting issues
of invoices already posted, or even finally adopting pdf when all is
ready.  In any event it helps nothing to store documents that need[ed]
editing into its final format.

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/302d4273-b5bd-265b-45b4-89a0d7792ee8%40netbsd.org.


Re: [tryton] Creating a group-by report

2017-03-20 Thread Cédric Krier
On 2017-03-20 11:46, Khurram Shahzad wrote:
> I am able to create reports using 'select' and 'join' in my custom
> table_query. I have also used 'where' clause with '==', '<=' and '>='
> operators but I am unable to figure out how to use 'IN' operator. I tried:
> where sale.state IN ('processing','done')
> 
> But failed. Can you please guide me the right syntax of using this
> operator. Also, can I find some documentation on 'select', 'join' and
> available operators?

See https://pypi.python.org/pypi/python-sql
All the operators are in `sql.operators`.

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

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


Re: [tryton] Creating a group-by report

2017-03-20 Thread Khurram Shahzad
Dear Cedric,
On Fri, Mar 17, 2017 at 1:41 PM, Khurram Shahzad 
wrote:

>
>
> On Fri, Mar 17, 2017 at 1:10 PM, Cédric Krier 
> wrote:
>
>> On 2017-03-17 12:38, Khurram Shahzad wrote:
>> > Dear All,
>> >
>> > I want to create a report which will show the summary of sales grouped
>> by
>> > the product category. The user will input the date range i.e. 'Date
>> From'
>> > and 'Date To'.
>> >
>> > I have tried to use the search method of model but I think it does not
>> > support the 'group by' clause. Any ideas or best practices of achieving
>> > this?
>>
>> Create a ModelSQL with a custom table_query [1] like that you will be
>> free to use the full features of SQL to make your group by.
>> Also for Date encoding, you can use the new context_model on
>> ir.action.act_window to get fast responsiveness to change dates.
>>
>> An example of that is the GeneralLedger report:
>> http://hg.tryton.org/modules/account/file/3f86af1e9ebd/account.py#l1197
>>
>>
>> [1] http://doc.tryton.org/4.2/trytond/doc/ref/models/models.html
>> ?highlight=table_query#trytond.model.ModelSQL.table_query
>>
>>
> Thank you so much for such a prompt and effective response!
>

I am able to create reports using 'select' and 'join' in my custom
table_query. I have also used 'where' clause with '==', '<=' and '>='
operators but I am unable to figure out how to use 'IN' operator. I tried:
where sale.state IN ('processing','done')

But failed. Can you please guide me the right syntax of using this
operator. Also, can I find some documentation on 'select', 'join' and
available operators?

Best Regards,
Khurram.

-- 
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/CAM3N3Czi7R-fn1998B4JZG6cFC23w%2B_pm%2BL1igtGR0x6aQSwLg%40mail.gmail.com.