Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

How to Deactivate POS offline mode?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
odoo8.0
2 Respuestas
6222 Vistas
Avatar
Dan Support

Hi Gurus

Could someone knowledgeable in JavaScript guide me on how to make bolean (check box) to enable or disable Point of sales from operating in offline mode in Odoo 8

Probably like disabling payment validation button if pos connection status is disconnected.

Thank you.

0
Avatar
Descartar
Avatar
Dan Support
Autor Mejor respuesta

Hi Party,

I sincerely appreciate your fast response. Please, where can I do the overidde or how to run the code you gave for the effect to take place?

Thank you again

This module has solved my worries.

https://www.odoo.com/apps/modules/10.0/pos_offline_restrict/

0
Avatar
Descartar
Parth Patel (pat)

Hello, You can create a separate module for this, or if you want to edit the existing code you can do it some what here : https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1265

Actully my code was targeted the v10/v11 but i guess i should also work with 8.0 with some small changes. Thanks!

OdooBot
Hi Parth,
Thank you a lot.

Am having serious issue with pos receipt here. We made a custom code that make duplicate copies of pos receipt but when sent to thermal printer all the three copies comes on page but break into three sections.

My objective is to cut each page break automatically by the printer.

Thanks again

On Mon, Feb 26, 2018 at 8:27 AM, Parth Patel (pat) <pat@odoo.com> wrote:

Hello, You can create a separate module for this, or if you want to edit the existing code you can do it some what here : https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1265

Actully my code was targeted the v10/v11 but i guess i should also work with 8.0 with some small changes. Thanks!



Sent by Tiny ERP Pvt Ltd using Odoo.


OdooBot
Hi Parth,
Thank you a lot.

Am having serious issue with pos receipt here. We made a custom code that make duplicate copies of pos receipt but when sent to thermal printer all the three copies comes on one paper sheet but break into three sections.

My objective is to cut each page break automatically by the printer.

Thanks again

On Mon, Feb 26, 2018 at 9:39 AM, Daniel Attah <netwaytech@gmail.com> wrote:
Hi Parth,
Thank you a lot.

Am having serious issue with pos receipt here. We made a custom code that make duplicate copies of pos receipt but when sent to thermal printer all the three copies comes on page but break into three sections.

My objective is to cut each page break automatically by the printer.

Thanks again

On Mon, Feb 26, 2018 at 8:27 AM, Parth Patel (pat) <pat@odoo.com> wrote:

Hello, You can create a separate module for this, or if you want to edit the existing code you can do it some what here : https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1265

Actully my code was targeted the v10/v11 but i guess i should also work with 8.0 with some small changes. Thanks!



Sent by Tiny ERP Pvt Ltd using Odoo.



Parth Patel (pat)

My suggestion would be to try to put this

https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1346-L1348

code into loop (no of time you want the receipt).

OdooBot

I hope am not bothering you much.
Please help me with sample on what to do because I don't have knowledge of JavaScript. Thank you for your time.

On Feb 26, 2018 11:16 AM, "Parth Patel (pat)" <pat@odoo.com> wrote:

My suggestion would be to try to put this

https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1346-L1348

code into loop (no of time you want the receipt).



Sent by Tiny ERP Pvt Ltd using Odoo.

Avatar
Parth Patel (pat)
Mejor respuesta

Hello, Daniel John

POS Connection Status got refreshes when the order try to save on server. So, just for the first time, you won't be able to know that the connection is alive or not unless you create the method to check the connection with a server. 

For the immediate second order, you can override the order_validate method and check the connection like this :

var screens = require('point_of_sale.screens');

var PaymentScreen = screens.PaymentScreenWidget.include({

validate_order: function(force_validation) {

        if (this.pos.get('synch').state === 'connected') {

            if (this.order_is_valid(force_validation)) {

    this.finalize_validation();

    }

        } else {

            // Throw Error        

        }

});

And yes, we can active/deactivate this condition with an extra field in POS Config.

Hope this helps you. Cheers!

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
{JetBlue^_^REP-Dom}¿Cómo llamar a JetBlue  desde República Dominicana?
odoo8.0
Avatar
0
dic 25
56
whereas I need a new RFQ for each confirmed sales order. I’m currently working with Odoo V18,
odoo8.0
Avatar
0
dic 25
158
how to implement joint piece in odoo 8 in one view
odoo8.0
Avatar
0
abr 24
2804
what is the reason behind extra move? in stock
odoo8.0
Avatar
Avatar
Avatar
Avatar
4
nov 23
6976
How to solve fields.function issue in odoo 8
odoo8.0
Avatar
0
oct 23
2822
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now