Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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
6223 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.

Inscribirse
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 Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 empresariales de código abierto que cubre 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.

Website made with

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