Sunteți pe pagina 1din 4

12/31/2018 How to change the default displayed category in point of sale?

| Odoo

APLICACIONES TOUR TARIFAS COMUNIDAD DOCUMENTOS


INICIAR SESIÓN Pruébalo gratis

Odoo Ayuda
Dismiss 

Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.

Take the tour


0

How to change the default displayed


category in point of sale?
 By Pascal Tremblay on 02/03/15 21:55 • 3.084 vistas default category point_of_sale

Hello all,

When a user enter in his point of sale, he sees 4 catégories of products : AS, ES, DJC and PT.

How could i open a category by default?

User opens the point of sale and he is already in a category, without to click on it.

Idea?

Thanks

 Responder  Comentario  Compartir    


 Ok! Job done! Here is the solution.
2 Pascal Tremblay
 http://odoo.lapagept.com

https://www.odoo.com/es_ES/forum/ayuda-1/question/how-to-change-the-default-displayed-category-in-point-of-sale-81015 1/4
12/31/2018 How to change the default displayed category in point of sale? | Odoo
1849 |  5  3  7
1)Find your category ID you want when starting the point of sale. Here I want to Alma, Canadá
APLICACIONES TOUR TARIFAS COMUNIDAD DOCUMENTOS
INICIAR SESIÓN Pruébalo gratis
open category AS, id 34.

Pascal Tremblay
On 13/03/15 01:13

2) In the file /home/odoo-test/odoo-test/addons/pos_lapagept/static/src/js/widgets_as.js, we replace only the Id 34. All the file is
unchanged for the rest.

set_category : function(category){
var db = this.pos.db;
if(!category){

#this.category = db.get_category_by_id(db.root_category_id);
this.category = db.get_category_by_id(34);
}else{
this.category = category;
}

3) in the file /home/odoo-test/odoo-test/addons/pos_lapagept/lapagept_templates.xml, we have this :

<?xml version="1.0" encoding="utf-8"?>


<openerp>
<data>
<template id="assets_backend" name="point_of_sale assets" inherit_id="point_of_sale.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/pos_lapagept/static/src/js/widgets_as.js"></script>
</xpath>
</template>
</data>
</openerp>

4) And now, the category AS open automaticaly when we start the point of sale. Great!

Just comment if it miss something. Thanks.

   

https://www.odoo.com/es_ES/forum/ayuda-1/question/how-to-change-the-default-displayed-category-in-point-of-sale-81015 2/4
12/31/2018 How to change the default displayed category in point of sale? | Odoo

Is it possible to do the same just by using the developper mode (V8 Saas)? and how if possible 
APLICACIONES TOUR TARIFAS COMUNIDAD DOCUMENTOS
INICIAR SESIÓN Pruébalo gratis

AD LIBITOM, michel Guénard en 13/03/15 01:28 

Sorry, I don't know an other (better) way for the moment. 

Pascal Tremblay en 13/03/15 01:30 

 Comentario


 I found this module which filters the categories by POS Tarek Mohamed Ibrahim
0 On 24/08/17 17:39
 http://www.odoo.com/apps/modules/8.0/pos_product_category_filter/

Comentario    


 I'm looking for the very same option. I Have 12 categories on my POS and all depends from the very FEDERICO LEONI
0 first one. Do I need to edit the POS module? On 03/03/15 02:11

Comentario    

Acerca de esta comunidad


This community is for professionals and enthusiasts of our products and services.  Read Guidelines

Odoo Training Center


Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Herramientas de las preguntas

su correo electrónico... Suscribir

3 seguidor(es)

Estadísticas

Preguntado: 02/03/15 21:55

Visto: 3084 veces

Última actualización: 24/08/17 17:39

Comunidad Servicios Quiénes somos Español

Github Plataforma en la nube Nuestra compañía


Descargar de Odoo Contacto
Odoo es un lote de aplicaciones de código abierto dirigido a
Runbot Ayuda Eventos empresas que cubre todas las necesidades de su negocio: CRM,
Traducciones Actualizar Blog comercio electrónico, contabilidad, inventario, punto de venta,
Clientes
https://www.odoo.com/es_ES/forum/ayuda-1/question/how-to-change-the-default-displayed-category-in-point-of-sale-81015 3/4
12/31/2018 How to change the default displayed category in point of sale? | Odoo

Listas de correos Encuentre socios Empleo gestión de proyectos etc.


APLICACIONES TOUR TARIFAS COMUNIDAD DOCUMENTOS
INICIAR SESIÓN Pruébalo gratis
Foro Hágase socio
Legal | Privacidad
Centro de formación El valor único de Odoo es que es simultáneamente fácil de utilizar y

Educación está totalmente integrado.

Seguridad
   

Website made with

https://www.odoo.com/es_ES/forum/ayuda-1/question/how-to-change-the-default-displayed-category-in-point-of-sale-81015 4/4

S-ar putea să vă placă și