Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How to Deactivate POS offline mode?

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo8.0
2 Replies
6220 Views
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
Discard
Avatar
Dan Support
Author Best Answer

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
Discard
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)
Best Answer

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
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
{JetBlue^_^REP-Dom}¿Cómo llamar a JetBlue  desde República Dominicana?
odoo8.0
Avatar
0
Dec 25
56
whereas I need a new RFQ for each confirmed sales order. I’m currently working with Odoo V18,
odoo8.0
Avatar
0
Dec 25
158
how to implement joint piece in odoo 8 in one view
odoo8.0
Avatar
0
Apr 24
2803
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
2821
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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