Re: [tryton-dev] Mock object
* Cédric Krier [2014-06-23 18:37 +0200]: Hi, Hello, For the review [1], I started to use a Mock object for testing because it was easier this way. I choose to use the backport of the Python3 unittest.mock [2] [3]. I think we should stick to this library if we need to do some mocking in the unittest. Yesterday I took some time[1] to use mocks on some code I have written during the day. Here are some observation I made: - it's really interesting to test only the small part of the code you've written. You can rely on the assumption that everything is working as expected it brings the true meaning of unit in unittest! - a lot of boilerplate code is needed to write a correct test - due to the amount of boilerplate code needed I am a bit afraid that the test will be difficult to maintain - patching object is awesome but nesting patch in with statements is a real indentation killer All in all it's a very nice tool to have in our box because it makes test more 'unitary' but there is some little annoyances (but I might have missed the obvious). [1]: No girlfriend at home and no world cup games to watch ;) -- Nicolas Évrard - B2CK SPRL E-mail/Jabber: nicolas.evr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ signature.asc Description: Digital signature
[tryton-es] Re: EXPANDING VIEWS
Ok, era que no estaba seguro del formato de comunicarme por aqui, pero ya ahora sere mas breve y ortografico al respecto Vi la documentacion, lo unico que aunque entiendo en ingles, uno no esta familiarizado, porque uno habla mas espanol, pero tratare
Re: [tryton-es] Albarán interno desde Producción
El 04/07/14 12:42, Sergio Morillo ha escrit: Buenos días, Me gustaría saber si es posible o existe algún módulo oficial/no-oficial para crear un albarán interno a partir de una Producción. Que yo conozca no. En concreto, lo que busco es que a la hora de crear un albarán interno se pueda elegir una Producción. Al elegirla se crearían en el albarán los movimientos correspondientes a los productos de salida de la producción, con las cantidades de la producción existentes en la ubicación origen. No me queda claro de donde a donde vas a mover los productos. De todos modos, puedes implementarlo tu mismo, simplemente añadiendo el campo, y haciendo un on_change para que te rellene las líneas del albarán interno con los movimientos que creas convenientes. He estado buscando en los módulos estándares y no he visto ninguno que implemente esta funcionalidad. Gracias de antemano. De nada :) -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Albarán interno desde Producción
El 04/07/14 14:31, Sergio Morillo ha escrit: El viernes, 4 de julio de 2014 13:56:08 UTC+2, Sergi Almacellas Abellana escribió: El 04/07/14 12:42, Sergio Morillo ha escrit: Buenos días, Me gustaría saber si es posible o existe algún módulo oficial/no-oficial para crear un albarán interno a partir de una Producción. Que yo conozca no. En concreto, lo que busco es que a la hora de crear un albarán interno se pueda elegir una Producción. Al elegirla se crearían en el albarán los movimientos correspondientes a los productos de salida de la producción, con las cantidades de la producción existentes en la ubicación origen. No me queda claro de donde a donde vas a mover los productos. Simplemente es para registrar el cambio de ubicación de los productos de salida de una producción. El objetivo es simplificar la creación del albarán. De todos modos, entiendo que tendrás algún documento (estoy pensando en la venta) que te dirá dónde vas a subministrar esa producción al cliente, igual haciéndolo por aquí puedes ligar el flujo completo y crear los albaranes internos que se necesiten directamente desde la venta. No se si me explico De todos modos, puedes implementarlo tu mismo, simplemente añadiendo el campo, y haciendo un on_change para que te rellene las líneas del albarán interno con los movimientos que creas convenientes. Tenía intención de implementarlo, sólo quería asegurarme que no re-inventaba la rueda. :) Gracias por las pautas. Más o menos lo tengo claro; lo quiero hacer bien y controlar también en el albarán las ubicaciones (de origen) con stock de la producción así como la cantidad disponible de cada producto a precargar en el albarán. Cuando lo tenga os aviso para que dispongáis de él. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
[tryton-es] Re: Plan de cuentas - niveles
On Thursday, July 3, 2014 7:11:08 PM UTC-5, Luis Deiana wrote: El miércoles, 2 de julio de 2014 16:18:35 UTC-3, Fabyc escribió: On Wednesday, July 2, 2014 8:30:58 AM UTC-5, Luis Deiana wrote: He creado algunas cuentas con 8 niveles en tryton 3.2 y el problema persiste. Si me mantengo moviendo el puntero del mouse sobre las cuentas del octavo nivel un nucleo del procesador sube al 100% y no baja hasta que no paro de mover el mouse. Hola Luis. Trata de responder siguiendo el hilo de la conversación. Es decir poner tu comentario bajo la línea que quieres responder así como lo estoy haciendo con tu pregunta. Con esto se nos hace más fácil responderte. :-) Hola Fabyc. Gracais por la respuesta y voy a hacerlo entre lineas a partir de ahora. Respecto a tu problema, por favor mira aquí [1] que dan la respuesta al mismo problema (en la lista en inglés). voy a intentar instalar los parches. No me quedo claro si estos parches se van a incorporar a la version 3.2 o si quedara para alguna version posterior. Recién liberaron Tryton 3.2.2 (con fecha 2014-07-02) y vi que no está incorporado el parche que está con fecha anterior (2014-05-23) a dicha liberación. Pueda que ya lo apliquen en la versión siguiente pero de todas formas tienes que estar al pendiente del mismo. Lo que puedes hacer es mantener anotado el parche para que lo apliques en las versiones nuevas que salgan. Por supuesto que esto habría que hacerlo hasta cuando veas que en alguna nueva versión que liberen ya esté aplicado. -- Saludos Fabyc [1] https://groups.google.com/forum/#!topic/tryton/lzikpHIKmwY -- Saludos Fabyc El sábado, 28 de junio de 2014 12:16:08 UTC-3, Luis Deiana escribió: Al crear ocho niveles en el plan de cuentas se cuelga el sistema. Probé con dos planes de cuentas diferentes y me pasa lo mismo. Utilizo Tryton 3.0 en Debian 8 Alguien me puede ayudar con esto ? Gracias.
[tryton-es] Consulta descripcion de modulos
Buen dia, estoy intentando descubrir para que sirven algunos modulos que no he podido encontrar información de ellos, si alguien tiene alguna idea por favor comentar de los siguientes modulos: -) account_invoice_line_standalone -) party_siret Desde ya muchas gracias !!
Re: [tryton-es] Consulta descripcion de modulos
2014-07-04 17:32 GMT+02:00 Ale Pari alee.pa...@gmail.com: Buen dia, estoy intentando descubrir para que sirven algunos modulos que no he podido encontrar información de ellos, si alguien tiene alguna idea por favor comentar de los siguientes modulos: los instalas y juegas. o miras el código ;) -) account_invoice_line_standalone para añadir lineas en facturas. por ejemplo, un módulo que genera solamente lineas y tu cuando quieras, las puedes agrupar en una sola factura. -) party_siret http://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27identification_du_r%C3%A9pertoire_des_%C3%A9tablissements -- Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette Please, DO NOT send attachment files with your answers, just copy and paste only the text you need to send into the body of your mails. Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette
Re: [tryton-es] Albarán interno desde Producción
El 04/07/14 16:49, Sergio Morillo ha escrit: El viernes, 4 de julio de 2014 15:46:49 UTC+2, Sergi Almacellas Abellana escribió: El 04/07/14 14:31, Sergio Morillo ha escrit: El viernes, 4 de julio de 2014 13:56:08 UTC+2, Sergi Almacellas Abellana escribió: El 04/07/14 12:42, Sergio Morillo ha escrit: Buenos días, Me gustaría saber si es posible o existe algún módulo oficial/no-oficial para crear un albarán interno a partir de una Producción. Que yo conozca no. En concreto, lo que busco es que a la hora de crear un albarán interno se pueda elegir una Producción. Al elegirla se crearían en el albarán los movimientos correspondientes a los productos de salida de la producción, con las cantidades de la producción existentes en la ubicación origen. No me queda claro de donde a donde vas a mover los productos. Simplemente es para registrar el cambio de ubicación de los productos de salida de una producción. El objetivo es simplificar la creación del albarán. De todos modos, entiendo que tendrás algún documento (estoy pensando en la venta) que te dirá dónde vas a subministrar esa producción al cliente, igual haciéndolo por aquí puedes ligar el flujo completo y crear los albaranes internos que se necesiten directamente desde la venta. No se si me explico Creo que no me he explicado con claridad. Un ejemplo: de una producción salen x productos, que deben permanecer en una ubicación durante un período de tiempo considerable (la ubicación se supone que es un lugar con unas características concretas para que los productos sigan su ciclo de producción; por ejemplo una sala de fermentación/reposo, una cámara frigorífica, etc.). Más tarde esos productos deben moverse a una ubicación de almacenamiento cualquiera, independientemente de cuando o a quien se vendan. Mucho mejor! En ese caso creo que es mejor añadir a las plantillas de producto un par de campos nuevos: - Días reposo después producción: Indica los dias que debe estar el producto fermentando - Ubicación reposo producción: Indica dónde se debe mandar el producto para fermentar. (O los nombres que tu creas convenientes) Así, una vez finalizada la producción si el producto tiene ubicación de reposo, creas los dos albaranes (el de ida y el de vuelta) con las fecha prevista, y conseguirás que el stock previso te aparezca correctamente. En mi opinión es la forma más limpia de hacerlo. Ese cambio de ubicación de los productos es el que quiero simplificar en Albaranes internos. P.D: Si són cervezas que mandas a fermentar, podrías hacerme llegar una caja para probarlas? -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Re: [tryton-es] Consulta descripcion de modulos
Excelente muchas gracias !!, duda resulta !!! El viernes, 4 de julio de 2014 13:12:25 UTC-3, raimonesteve escribió: 2014-07-04 17:32 GMT+02:00 Ale Pari alee@gmail.com javascript:: Buen dia, estoy intentando descubrir para que sirven algunos modulos que no he podido encontrar información de ellos, si alguien tiene alguna idea por favor comentar de los siguientes modulos: los instalas y juegas. o miras el código ;) -) account_invoice_line_standalone para añadir lineas en facturas. por ejemplo, un módulo que genera solamente lineas y tu cuando quieras, las puedes agrupar en una sola factura. -) party_siret http://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27identification_du_r%C3%A9pertoire_des_%C3%A9tablissements -- Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette Please, DO NOT send attachment files with your answers, just copy and paste only the text you need to send into the body of your mails. Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette
[tryton-es] Consulta - Modulo Logistica.
Buenas gente, estoy comenzado a implementar Tryton en una pequeña Pyme y me surgió la siguiente duda: Supongamos que compre algo y cuando me llega cargo el Albaran de Proveedor con sus respectivos productos y cantidades y lo confirmo, hasta aca todo Ok. Ahora la consulta es donde puedo ver el Stock Final de todos los productos q fui cargando con el tiempo, ya que cuando voy a Inventario no me muestra la cantidad y el producto q cargue anteriormente. Desde ya muchas gracias !!!
[tryton-es] Re: Plan de cuentas - niveles
El viernes, 4 de julio de 2014 12:11:43 UTC-3, Fabyc escribió: On Thursday, July 3, 2014 7:11:08 PM UTC-5, Luis Deiana wrote: El miércoles, 2 de julio de 2014 16:18:35 UTC-3, Fabyc escribió: On Wednesday, July 2, 2014 8:30:58 AM UTC-5, Luis Deiana wrote: He creado algunas cuentas con 8 niveles en tryton 3.2 y el problema persiste. Si me mantengo moviendo el puntero del mouse sobre las cuentas del octavo nivel un nucleo del procesador sube al 100% y no baja hasta que no paro de mover el mouse. Hola Luis. Trata de responder siguiendo el hilo de la conversación. Es decir poner tu comentario bajo la línea que quieres responder así como lo estoy haciendo con tu pregunta. Con esto se nos hace más fácil responderte. :-) Hola Fabyc. Gracais por la respuesta y voy a hacerlo entre lineas a partir de ahora. Respecto a tu problema, por favor mira aquí [1] que dan la respuesta al mismo problema (en la lista en inglés). voy a intentar instalar los parches. No me quedo claro si estos parches se van a incorporar a la version 3.2 o si quedara para alguna version posterior. Recién liberaron Tryton 3.2.2 (con fecha 2014-07-02) y vi que no está incorporado el parche que está con fecha anterior (2014-05-23) a dicha liberación. Pueda que ya lo apliquen en la versión siguiente pero de todas formas tienes que estar al pendiente del mismo. Lo que puedes hacer es mantener anotado el parche para que lo apliques en las versiones nuevas que salgan. Por supuesto que esto habría que hacerlo hasta cuando veas que en alguna nueva versión que liberen ya esté aplicado. Aprovecho y te hago otra pregunta. Puedo aplicar los parches en mi servidor si es que lo ejecuto desde las fuentes y no lo tengo instalado ? en caso de que se pueda me podrías guiar un poco de como hacerlo. Gracias -- Saludos Fabyc [1] https://groups.google.com/forum/#!topic/tryton/lzikpHIKmwY -- Saludos Fabyc El sábado, 28 de junio de 2014 12:16:08 UTC-3, Luis Deiana escribió: Al crear ocho niveles en el plan de cuentas se cuelga el sistema. Probé con dos planes de cuentas diferentes y me pasa lo mismo. Utilizo Tryton 3.0 en Debian 8 Alguien me puede ayudar con esto ? Gracias.
[tryton-es] Re: Plan de cuentas - niveles
El viernes, 4 de julio de 2014 20:01:24 UTC-3, Luis Deiana escribió: El viernes, 4 de julio de 2014 12:11:43 UTC-3, Fabyc escribió: On Thursday, July 3, 2014 7:11:08 PM UTC-5, Luis Deiana wrote: El miércoles, 2 de julio de 2014 16:18:35 UTC-3, Fabyc escribió: On Wednesday, July 2, 2014 8:30:58 AM UTC-5, Luis Deiana wrote: He creado algunas cuentas con 8 niveles en tryton 3.2 y el problema persiste. Si me mantengo moviendo el puntero del mouse sobre las cuentas del octavo nivel un nucleo del procesador sube al 100% y no baja hasta que no paro de mover el mouse. Hola Luis. Trata de responder siguiendo el hilo de la conversación. Es decir poner tu comentario bajo la línea que quieres responder así como lo estoy haciendo con tu pregunta. Con esto se nos hace más fácil responderte. :-) Hola Fabyc. Gracais por la respuesta y voy a hacerlo entre lineas a partir de ahora. Respecto a tu problema, por favor mira aquí [1] que dan la respuesta al mismo problema (en la lista en inglés). voy a intentar instalar los parches. No me quedo claro si estos parches se van a incorporar a la version 3.2 o si quedara para alguna version posterior. Recién liberaron Tryton 3.2.2 (con fecha 2014-07-02) y vi que no está incorporado el parche que está con fecha anterior (2014-05-23) a dicha liberación. Pueda que ya lo apliquen en la versión siguiente pero de todas formas tienes que estar al pendiente del mismo. Lo que puedes hacer es mantener anotado el parche para que lo apliques en las versiones nuevas que salgan. Por supuesto que esto habría que hacerlo hasta cuando veas que en alguna nueva versión que liberen ya esté aplicado. Aprovecho y te hago otra pregunta. Puedo aplicar los parches en mi servidor si es que lo ejecuto desde las fuentes y no lo tengo instalado ? en caso de que se pueda me podrías guiar un poco de como hacerlo. Creo que me respondo solo: solo reemplace los archivos que están dentro del cliente con los del parche. Gracias. Gracias -- Saludos Fabyc [1] https://groups.google.com/forum/#!topic/tryton/lzikpHIKmwY -- Saludos Fabyc El sábado, 28 de junio de 2014 12:16:08 UTC-3, Luis Deiana escribió: Al crear ocho niveles en el plan de cuentas se cuelga el sistema. Probé con dos planes de cuentas diferentes y me pasa lo mismo. Utilizo Tryton 3.0 en Debian 8 Alguien me puede ayudar con esto ? Gracias.
Re: [tryton] Help with importing csv data please
On 03 Jul 16:30, Dale Scott wrote: Hi Cédric, thanks for your feedback. On Wednesday, 2 July 2014 07:39:14 UTC-6, Cédric Krier wrote: On 02 Jul 06:05, Dale Scott wrote: snip Problem 1. If I view the detail of a specific product in Tryton (menu Products Products, select a specific product, Switch view to see product detail), and then try to Switch view back to the grid view showing all product, Tryton will warn that the record has been modified and ask if I want to save it - even though I did not knowingly edit it. What can cause this? Some data are not in the right format. So the client after displaying it, re-format it and detect a change in the value. Could you describe in a general way how you would investigate this? I would put a print statement in the client: http://hg.tryton.org/tryton/file/e5604ddea4c4/tryton/gui/window/view_form/model/record.py#l140 I know we should have logging for that. Problem 2. The PV BOM table includes two foreign key constraints to the PV part table. Each row in [3] represents a child part on a BOM, PLListID is the PNID of the parent product in [1], and PLPartID is the PNID of a child product on the BOM. Other fields in [3] give the quantity on BOM, the use-as UOM, the item number on the BOM listing, etc. Can Tryton import multiple BOMs from a single csv file having this structure? Will someone give me a hint as to the field names? I did not look to close to your data structure but any way, csv import only works for very basic/simple cases. Any even a little bit complex import should be done using a proteus script. Python is an the ETL (https://en.wikipedia.org/wiki/Extract,_transform,_load) Is the csv import capable of importing one single-level BOM, but no more complex? Normally it is theoretically possible to import anything but it is much more complex and difficult when it is not simple data than using proteus. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ pgpnIM54OLLKH.pgp Description: PGP signature
Re: [tryton] Can't edit line items in quotation
On 03 Jul 11:55, Axel Braun wrote: Hello, I have created a draft PO and put it in the status 'quote' to send it as RFQ to suppliers. When I now receive a quotation, I'm not able to edit the line in the quote. Is this a bug or a feature? If feature, what is it good for? Nothing new: https://groups.google.com/d/msg/tryton/BZC_qX-iMT8/dVdChwA3RwoJ -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ pgpHkw8k8Q25U.pgp Description: PGP signature
Re: [tryton] Can't edit line items in quotation
Schöne Grüße Axel -- Written from cell phone. Excuses for typos. On 4. Juli 2014 09:04:03 MESZ, Cédric Krier cedric.kr...@b2ck.com wrote: On 03 Jul 11:55, Axel Braun wrote: Hello, I have created a draft PO and put it in the status 'quote' to send it as RFQ to suppliers. When I now receive a quotation, I'm not able to edit the line in the quote. Is this a bug or a feature? If feature, what is it good for? Nothing new: https://groups.google.com/d/msg/tryton/BZC_qX-iMT8/dVdChwA3RwoJ Indeed, some problems last longer
Re: [tryton] Can't edit line items in quotation
Schöne Grüße Axel -- Written from cell phone. Excuses for typos. On 4. Juli 2014 09:40:27 MESZ, Cédric Krier cedric.kr...@b2ck.com wrote: On 04 Jul 09:24, Axel Braun wrote: Nothing new: https://groups.google.com/d/msg/tryton/BZC_qX-iMT8/dVdChwA3RwoJ Indeed, some problems last longer But nothing will change by just talking. Indeed. What do you need to feed it into the development queue?
Re: [tryton] Can't edit line items in quotation
On 04 Jul 10:45, Axel Braun wrote: On 4. Juli 2014 09:40:27 MESZ, Cédric Krier cedric.kr...@b2ck.com wrote: On 04 Jul 09:24, Axel Braun wrote: Nothing new: https://groups.google.com/d/msg/tryton/BZC_qX-iMT8/dVdChwA3RwoJ Indeed, some problems last longer But nothing will change by just talking. Indeed. What do you need to feed it into the development queue? incentive -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ pgpoUChMAyawj.pgp Description: PGP signature
Re: [tryton] Can't edit line items in quotation
Schöne Grüße Axel -- Written from cell phone. Excuses for typos. On 4. Juli 2014 11:47:49 MESZ, Cédric Krier cedric.kr...@b2ck.com wrote: On 04 Jul 10:45, Axel Braun wrote: On 4. Juli 2014 09:40:27 MESZ, Cédric Krier cedric.kr...@b2ck.com wrote: On 04 Jul 09:24, Axel Braun wrote: Nothing new: https://groups.google.com/d/msg/tryton/BZC_qX-iMT8/dVdChwA3RwoJ Indeed, some problems last longer But nothing will change by just talking. Indeed. What do you need to feed it into the development queue? incentive Thought so :-) We'll get you a beer at the TUL, next to all the honor. During the implementation of our Tryton system parts of the development were released as open source, feel free to bring it into the core. This part about RFQ is not covered so far.
Re: [tryton] Can't edit line items in quotation
On 04 Jul 13:31, Axel Braun wrote: On 4. Juli 2014 11:47:49 MESZ, Cédric Krier cedric.kr...@b2ck.com wrote: On 04 Jul 10:45, Axel Braun wrote: On 4. Juli 2014 09:40:27 MESZ, Cédric Krier cedric.kr...@b2ck.com wrote: On 04 Jul 09:24, Axel Braun wrote: Nothing new: https://groups.google.com/d/msg/tryton/BZC_qX-iMT8/dVdChwA3RwoJ Indeed, some problems last longer But nothing will change by just talking. Indeed. What do you need to feed it into the development queue? incentive Thought so :-) We'll get you a beer at the TUL, next to all the honor. During the implementation of our Tryton system parts of the development were released as open source, feel free to bring it into the core. This part about RFQ is not covered so far. Contribution process is clearly defined: https://code.google.com/p/tryton/wiki/HowtoContribute -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ pgp43LCUeCUL6.pgp Description: PGP signature
[tryton] cost price and cost price method
Hi, I'm testing Tryton in a production company and I have a few questions about cost_price and cost_price_method used in product, product_cost_fifo, account_product and account_stock_continental. Cost_price_method could be fixed, average and fifo. Cost_price is a part of a product.template model. First consequence I have noticed is that calculating amount in stock move lines we have always one price for a product in a whole company. Is there a possibility to have different cost prices in different warehouses ? For example I can have 2 warehouses in 2 departments of my company, each of them in different city. If I have the same product in both of them and I make a move from supplier or production to one of them the cost_price is changing in both of them (cost_price_method = average). Accordingly there is a need to have different account_stock value for the same product in different warehouses. Second consequence is that when I make 2 moves from supplier or production to warehouse in different prices (cost_price_method = fifo) cost_price on product form is not displayed properly. Why is there any value ? Could it be a list of a current fifo_quantities like in product.template.get_fifo_move() instead of showing a value. Regards Michal
Re: [tryton] cost price and cost price method
2014-07-04 14:46 GMT+02:00 Michal michal.s...@gmail.com: Accordingly there is a need to have different account_stock value for the same product in different warehouses. do you mean stock value increases when you move a product from location 1 to location 2 and decreases if you move it back ? Are you sure we talk about the save cost ?
Re: [tryton] cost price and cost price method
On 04 Jul 05:46, Michal wrote: Hi, I'm testing Tryton in a production company and I have a few questions about cost_price and cost_price_method used in product, product_cost_fifo, account_product and account_stock_continental. Cost_price_method could be fixed, average and fifo. Cost_price is a part of a product.template model. First consequence I have noticed is that calculating amount in stock move lines we have always one price for a product in a whole company. Is there a possibility to have different cost prices in different warehouses ? For example I can have 2 warehouses in 2 departments of my company, each of them in different city. If I have the same product in both of them and I make a move from supplier or production to one of them the cost_price is changing in both of them (cost_price_method = average). Accordingly there is a need to have different account_stock value for the same product in different warehouses. This is not supported by Tryton for now. But it could be an improvement to add a extra computation of cost price per warehouse. Second consequence is that when I make 2 moves from supplier or production to warehouse in different prices (cost_price_method = fifo) cost_price on product form is not displayed properly. Why is there any value ? Could it be a list of a current fifo_quantities like in product.template.get_fifo_move() instead of showing a value. I don't understand. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ pgp4psmLJy63M.pgp Description: PGP signature
Re: [tryton] cost price and cost price method
On Friday, July 4, 2014 3:42:28 PM UTC+2, Cédric Krier wrote: On 04 Jul 05:46, Michal wrote: Hi, I'm testing Tryton in a production company and I have a few questions about cost_price and cost_price_method used in product, product_cost_fifo, account_product and account_stock_continental. Cost_price_method could be fixed, average and fifo. Cost_price is a part of a product.template model. First consequence I have noticed is that calculating amount in stock move lines we have always one price for a product in a whole company. Is there a possibility to have different cost prices in different warehouses ? For example I can have 2 warehouses in 2 departments of my company, each of them in different city. If I have the same product in both of them and I make a move from supplier or production to one of them the cost_price is changing in both of them (cost_price_method = average). Accordingly there is a need to have different account_stock value for the same product in different warehouses. This is not supported by Tryton for now. But it could be an improvement to add a extra computation of cost price per warehouse. OK Second consequence is that when I make 2 moves from supplier or production to warehouse in different prices (cost_price_method = fifo) cost_price on product form is not displayed properly. Why is there any value ? Could it be a list of a current fifo_quantities like in product.template.get_fifo_move() instead of showing a value. I don't understand. Example with cost price method = fifo: Supplier Shipement Quantity Price Product_15.005.00 Product_15.00 10.00 On Product form you can see: Cost Price 5.00 - what for ? it is misleading Regards Filip -- Cédric Krier - B2CK SPRL Email/Jabber: cedric...@b2ck.com javascript: Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
Re: [tryton] cost price and cost price method
On 04 Jul 16:34, Cédric Krier wrote: On 04 Jul 07:02, Michal wrote: Second consequence is that when I make 2 moves from supplier or production to warehouse in different prices (cost_price_method = fifo) cost_price on product form is not displayed properly. Why is there any value ? Could it be a list of a current fifo_quantities like in product.template.get_fifo_move() instead of showing a value. I don't understand. Example with cost price method = fifo: Supplier Shipement Quantity Price Product_15.005.00 Product_15.00 10.00 On Product form you can see: Cost Price 5.00 - what for ? it is misleading This is the average of the remaining product of the fifo stack. Oops, no it is the next cost price out of the fifo stack. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ pgpBowS1awb9I.pgp Description: PGP signature
[tryton] Attachments to Products vs Product-Variants
Hi, I've been attaching documents (e.g. datasheets, specifications, work instructions, gerber files, schematics...) to all the product I have imported. In the process, I found an attachment to a product is not the same as an attachment to a product variant. Can someone explain the basic concept of products and product variants? Should I be attaching documents to the product, or to product variants? What is the difference? How to the user cases differ? Fwiw, I find the product variant grid convenient because it includes the product code for each product in the kanban view. Dale
Re: [tryton] Attachments to Products vs Product-Variants
On Jul 5, 2014, at 8:59 AM, Dale Scott d...@dalescott.net wrote: Hi, I've been attaching documents (e.g. datasheets, specifications, work instructions, gerber files, schematics...) to all the product I have imported. In the process, I found an attachment to a product is not the same as an attachment to a product variant. Can someone explain the basic concept of products and product variants? Should I be attaching documents to the product, or to product variants? What is the difference? How to the user cases differ? Fwiw, I find the product variant grid convenient because it includes the product code for each product in the kanban view. Explanation by a live example: **Variation on one attribute** Varying Attribute: Platform http://www.amazon.com/Call-Duty-Advanced-Warfare-Xbox-One/dp/B00K308KF4 Here the product is: Call of Duty: Advanced Warfare And the variants are: for PS3, Xbox, PC, PS4 etc **Variation on Two attributes** Varying attributes: Size, Color http://www.amazon.com/Cole-Haan-Lunargrand-Saddle-Oxford/dp/B00HB1PDTE Here the product is: Cole Haan Men's Lunargrand Saddle Oxford And the variants are: 12 sizes X 2 Colors = 24 variants As for your question about attachments: It depends on the nature of the products and variants. For example if you were to use iPhone as a product and the three sizes of 16GB, 32Gb and 64 GB as variants, then the specifications would be different for each variant while the user guide would the same since all of the user instructions for the series is same. Similarly, the images may vary by the iPhone color, but not by the size. So this depends if those documents you attach change by variant or change by product (template). Thanks Regards Sharoon Thomas CEO Chief Software Architect Openlabs Technologies Consulting (P) Limited w: http://www.openlabs.co.in m: +1 813.793.6736 (OPEN) Extn. 200 t: @sharoonthomas - We win when our customers win signature.asc Description: Message signed with OpenPGP using GPGMail